1/* 2 * Copyright (c) 1995, David Greenman 3 * All rights reserved. 4 * 5 * Modifications to support NetBSD: 6 * Copyright (c) 1997 Jason R. Thorpe. All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 13 unchanged lines hidden (view full) --- 22 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 23 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 24 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 25 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 26 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 27 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 28 * SUCH DAMAGE. 29 * |
30 * $FreeBSD: head/sys/dev/fxp/if_fxpvar.h 66007 2000-09-17 22:12:12Z dg $ |
31 */ 32 33/* 34 * Misc. defintions for the Intel EtherExpress Pro/100B PCI Fast 35 * Ethernet driver 36 */ 37/* 38 * NOTE: Elements are ordered for optimal cacheline behavior, and NOT --- 25 unchanged lines hidden (view full) --- 64 struct fxp_cb_tx *cbl_base; /* base of TxCB list */ 65 struct fxp_cb_mcs *mcsp; /* Pointer to mcast setup descriptor */ 66 int all_mcasts; /* receive all multicasts */ 67 struct ifmedia sc_media; /* media information */ 68 int phy_primary_addr; /* address of primary PHY */ 69 int phy_primary_device; /* device type of primary PHY */ 70 int phy_10Mbps_only; /* PHY is 10Mbps-only device */ 71 int eeprom_size; /* size of serial EEPROM */ |
72 int suspended; /* 0 = normal 1 = suspended (APM) */ 73 u_int32_t saved_maps[5]; /* pci data */ 74 u_int32_t saved_biosaddr; 75 u_int8_t saved_intline; 76 u_int8_t saved_cachelnsz; 77 u_int8_t saved_lattimer; |
78}; 79 80/* Macros to ease CSR access. */ 81#define CSR_READ_1(sc, reg) \ 82 bus_space_read_1((sc)->sc_st, (sc)->sc_sh, (reg)) 83#define CSR_READ_2(sc, reg) \ 84 bus_space_read_2((sc)->sc_st, (sc)->sc_sh, (reg)) 85#define CSR_READ_4(sc, reg) \ --- 30 unchanged lines hidden --- |