summaryrefslogtreecommitdiffstats
path: root/sys/dev/ed/if_edvar.h
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2005-02-14 06:25:06 +0000
committerimp <imp@FreeBSD.org>2005-02-14 06:25:06 +0000
commitb04bebb194bc6a8331b175c88c0b96dd1e8bbbe8 (patch)
tree52f41ffaab3a1b9d82db46c534e54a9fcf79e2e2 /sys/dev/ed/if_edvar.h
parentf7ee8e33497a9260eb2a28732d3b3f21a1d51a62 (diff)
downloadFreeBSD-src-b04bebb194bc6a8331b175c88c0b96dd1e8bbbe8.zip
FreeBSD-src-b04bebb194bc6a8331b175c88c0b96dd1e8bbbe8.tar.gz
MFP4: Optimize the layout of softc somewhat. This groups the u_chars
into larger sections. I'd like to move to having a flags word, but I need to make sure that there's no adverse locking problems.
Diffstat (limited to 'sys/dev/ed/if_edvar.h')
-rw-r--r--sys/dev/ed/if_edvar.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/ed/if_edvar.h b/sys/dev/ed/if_edvar.h
index b0489f0..20fce19 100644
--- a/sys/dev/ed/if_edvar.h
+++ b/sys/dev/ed/if_edvar.h
@@ -38,7 +38,11 @@ struct ed_softc {
char *type_str; /* pointer to type string */
u_char vendor; /* interface vendor */
u_char type; /* interface type code */
+ u_char chip_type; /* the type of chip (one of ED_CHIP_TYPE_*) */
u_char gone; /* HW missing, presumed having a good time */
+ u_char isa16bit; /* width of access to card 0=8 or 1=16 */
+ u_char mem_shared; /* NIC memory is shared with host */
+ u_char xmit_busy; /* transmitter is busy */
int port_rid; /* resource id for port range */
int port_used; /* nonzero if ports used */
@@ -63,8 +67,6 @@ struct ed_softc {
*/
u_char wd_laar_proto;
u_char cr_proto;
- u_char isa16bit; /* width of access to card 0=8 or 1=16 */
- int chip_type; /* the type of chip (one of ED_CHIP_TYPE_*) */
/*
* HP PC LAN PLUS card support.
@@ -79,8 +81,6 @@ struct ed_softc {
uint32_t mem_size; /* total NIC memory size */
caddr_t mem_ring; /* start of RX ring-buffer (in NIC mem) */
- u_char mem_shared; /* NIC memory is shared with host */
- u_char xmit_busy; /* transmitter is busy */
u_char txb_cnt; /* number of transmit buffers */
u_char txb_inuse; /* number of TX buffers currently in-use */
OpenPOWER on IntegriCloud