Increase the size of the bge_flags field to allow for more flags.
authorbrad <brad@openbsd.org>
Tue, 7 Jan 2014 06:25:33 +0000 (06:25 +0000)
committerbrad <brad@openbsd.org>
Tue, 7 Jan 2014 06:25:33 +0000 (06:25 +0000)
ok mikeb@

sys/dev/pci/if_bgereg.h

index e94921e..0b9cd3a 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: if_bgereg.h,v 1.118 2013/12/30 18:47:45 brad Exp $    */
+/*     $OpenBSD: if_bgereg.h,v 1.119 2014/01/07 06:25:33 brad Exp $    */
 
 /*
  * Copyright (c) 2001 Wind River Systems
@@ -2813,39 +2813,40 @@ struct bge_softc {
        u_int32_t               bge_mps;
        u_int32_t               bge_expmrq;
        u_int32_t               bge_lasttag;
-       u_int32_t               bge_flags;
-#define        BGE_TXRING_VALID        0x00000001
-#define        BGE_RXRING_VALID        0x00000002
-#define        BGE_JUMBO_RXRING_VALID  0x00000004
-#define        BGE_RX_ALIGNBUG         0x00000008
-#define        BGE_NO_3LED             0x00000010
-#define        BGE_PCIX                0x00000020
-#define        BGE_PCIE                0x00000040
-#define        BGE_ASF_MODE            0x00000080
-#define        BGE_NO_EEPROM           0x00000100
-#define        BGE_JUMBO_CAPABLE       0x00000200
-#define        BGE_10_100_ONLY         0x00000400
-#define        BGE_PHY_FIBER_TBI       0x00000800
-#define        BGE_PHY_FIBER_MII       0x00001000
-#define        BGE_PHY_CRC_BUG         0x00002000
-#define        BGE_PHY_ADC_BUG         0x00004000
-#define        BGE_PHY_5704_A0_BUG     0x00008000
-#define        BGE_PHY_JITTER_BUG      0x00010000
-#define        BGE_PHY_BER_BUG         0x00020000
-#define        BGE_PHY_ADJUST_TRIM     0x00040000
-#define        BGE_NO_ETH_WIRE_SPEED   0x00080000
-#define        BGE_IS_5788             0x00100000
-#define        BGE_5705_PLUS           0x00200000
-#define        BGE_575X_PLUS           0x00400000
-#define        BGE_5755_PLUS           0x00800000
-#define        BGE_5714_FAMILY         0x01000000
-#define        BGE_5700_FAMILY         0x02000000
-#define        BGE_5717_PLUS           0x04000000
-#define        BGE_57765_PLUS          0x08000000
-#define        BGE_APE                 0x10000000
-#define        BGE_CPMU_PRESENT        0x20000000
-#define        BGE_TAGGED_STATUS       0x40000000
-#define        BGE_MSI                 0x80000000
+       u_int64_t               bge_flags;
+#define        BGE_TXRING_VALID        0x0000000000000001
+#define        BGE_RXRING_VALID        0x0000000000000002
+#define        BGE_JUMBO_RXRING_VALID  0x0000000000000004
+#define        BGE_RX_ALIGNBUG         0x0000000000000008
+#define        BGE_NO_3LED             0x0000000000000010
+#define        BGE_PCIX                0x0000000000000020
+#define        BGE_PCIE                0x0000000000000040
+#define        BGE_ASF_MODE            0x0000000000000080
+#define        BGE_NO_EEPROM           0x0000000000000100
+#define        BGE_JUMBO_CAPABLE       0x0000000000000200
+#define        BGE_10_100_ONLY         0x0000000000000400
+#define        BGE_PHY_FIBER_TBI       0x0000000000000800
+#define        BGE_PHY_FIBER_MII       0x0000000000001000
+#define        BGE_PHY_CRC_BUG         0x0000000000002000
+#define        BGE_PHY_ADC_BUG         0x0000000000004000
+#define        BGE_PHY_5704_A0_BUG     0x0000000000008000
+#define        BGE_PHY_JITTER_BUG      0x0000000000010000
+#define        BGE_PHY_BER_BUG         0x0000000000020000
+#define        BGE_PHY_ADJUST_TRIM     0x0000000000040000
+#define        BGE_NO_ETH_WIRE_SPEED   0x0000000000080000
+#define        BGE_IS_5788             0x0000000000100000
+#define        BGE_5705_PLUS           0x0000000000200000
+#define        BGE_575X_PLUS           0x0000000000400000
+#define        BGE_5755_PLUS           0x0000000000800000
+#define        BGE_5714_FAMILY         0x0000000001000000
+#define        BGE_5700_FAMILY         0x0000000002000000
+#define        BGE_5717_PLUS           0x0000000004000000
+#define        BGE_57765_PLUS          0x0000000008000000
+#define        BGE_APE                 0x0000000010000000
+#define        BGE_CPMU_PRESENT        0x0000000020000000
+#define        BGE_TAGGED_STATUS       0x0000000040000000
+#define        BGE_MSI                 0x0000000080000000
+#define        BGE_RDMA_BUG            0x0000000100000000
 
        bus_dma_tag_t           bge_dmatag;
        u_int32_t               bge_mfw_flags;  /* Management F/W flags */