diff options
Diffstat (limited to 'sys/dev/pci/if_bgereg.h')
-rw-r--r-- | sys/dev/pci/if_bgereg.h | 37 |
1 files changed, 17 insertions, 20 deletions
diff --git a/sys/dev/pci/if_bgereg.h b/sys/dev/pci/if_bgereg.h index 257a66da0d5..0dbc86b3ae7 100644 --- a/sys/dev/pci/if_bgereg.h +++ b/sys/dev/pci/if_bgereg.h @@ -1,4 +1,4 @@ -/* $OpenBSD: if_bgereg.h,v 1.55 2006/08/28 01:12:17 brad Exp $ */ +/* $OpenBSD: if_bgereg.h,v 1.56 2006/08/28 03:06:47 brad Exp $ */ /* * Copyright (c) 2001 Wind River Systems @@ -1964,14 +1964,10 @@ struct bge_status_block { /* * SysKonnect Subsystem IDs */ +#define SK_SUBSYSID_9D21 0x4421 #define SK_SUBSYSID_9D41 0x4441 /* - * Dell PCI vendor ID - */ -#define DELL_VENDORID 0x1028 - -/* * Offset of MAC address inside EEPROM. */ #define BGE_EE_MAC_OFFSET 0x7C @@ -2331,6 +2327,13 @@ struct txdmamap_pool_entry { SLIST_ENTRY(txdmamap_pool_entry) link; }; +/* + * Flags for bge_flags. + */ +#define BGE_TXRING_VALID 0x0001 +#define BGE_RXRING_VALID 0x0002 +#define BGE_JUMBO_RXRING_VALID 0x0004 + #define ASF_ENABLE 1 #define ASF_NEW_HANDSHAKE 2 #define ASF_STACKUP 4 @@ -2344,21 +2347,15 @@ struct bge_softc { struct pci_attach_args bge_pa; struct mii_data bge_mii; struct ifmedia bge_ifmedia; /* media info */ - u_int32_t bge_flags; -#define BGE_TXRING_VALID 0x00000001 -#define BGE_RXRING_VALID 0x00000002 -#define BGE_JUMBO_RXRING_VALID 0x00000004 -#define BGE_EXTRAM 0x00000008 /* Has external SSRAM. */ -#define BGE_TBI 0x00000010 -#define BGE_RX_ALIGNBUG 0x00000020 -#define BGE_NO3LED 0x00000040 -#define BGE_PCIX 0x00000080 -#define BGE_PCIE 0x00000100 -#define BGE_ASF_MODE 0x00000200 -#define BGE_JUMBO 0x00000400 - + u_int8_t bge_extram; /* has external SSRAM */ + u_int8_t bge_tbi; + u_int8_t bge_rx_alignment_bug; bus_dma_tag_t bge_dmatag; u_int32_t bge_chipid; + u_int8_t bge_no_3_led; + u_int8_t bge_asf_mode; + u_int8_t bge_pcie; + u_int8_t bge_pcix; struct bge_ring_data *bge_rdata; /* rings */ struct bge_chain_data bge_cdata; /* mbufs */ bus_dmamap_t bge_ring_map; @@ -2378,7 +2375,7 @@ struct bge_softc { u_int32_t bge_tx_max_coal_bds; u_int32_t bge_tx_buf_ratio; int bge_if_flags; - int bge_ring_flags; + int bge_flags; int bge_txcnt; int bge_link; /* link state */ int bge_link_evt; /* pending link event */ |