summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorYASUOKA Masahiko <yasuoka@cvs.openbsd.org>2019-11-19 03:33:44 +0000
committerYASUOKA Masahiko <yasuoka@cvs.openbsd.org>2019-11-19 03:33:44 +0000
commitab27e5cc2796d0c131d5f3a51b40e7554bbf7c34 (patch)
treefcd09154855390f8d2c36367a11eb4c100914629 /sys/dev
parente2ce6232d5309b8f9df2cc033ef7380b094ff01c (diff)
Correct the link speed constant variables. From Shoichi Yamaguchi.
ok jmatthew
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/pci/if_ixl.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/sys/dev/pci/if_ixl.c b/sys/dev/pci/if_ixl.c
index 7aeebb96fee..887ffb69220 100644
--- a/sys/dev/pci/if_ixl.c
+++ b/sys/dev/pci/if_ixl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_ixl.c,v 1.45 2019/10/02 04:51:34 yasuoka Exp $ */
+/* $OpenBSD: if_ixl.c,v 1.46 2019/11/19 03:33:43 yasuoka Exp $ */
/*
* Copyright (c) 2013-2015, Intel Corporation
@@ -319,12 +319,12 @@ struct ixl_aq_phy_abilities {
uint32_t phy_type;
uint8_t link_speed;
-#define IXL_AQ_PHY_LINK_SPEED_100MB 0x1
-#define IXL_AQ_PHY_LINK_SPEED_1000MB 0x2
-#define IXL_AQ_PHY_LINK_SPEED_10GB 0x3
-#define IXL_AQ_PHY_LINK_SPEED_40GB 0x4
-#define IXL_AQ_PHY_LINK_SPEED_20GB 0x5
-#define IXL_AQ_PHY_LINK_SPEED_25GB 0x6
+#define IXL_AQ_PHY_LINK_SPEED_100MB (1 << 1)
+#define IXL_AQ_PHY_LINK_SPEED_1000MB (1 << 2)
+#define IXL_AQ_PHY_LINK_SPEED_10GB (1 << 3)
+#define IXL_AQ_PHY_LINK_SPEED_40GB (1 << 4)
+#define IXL_AQ_PHY_LINK_SPEED_20GB (1 << 5)
+#define IXL_AQ_PHY_LINK_SPEED_25GB (1 << 6)
uint8_t abilities;
uint16_t eee_capability;