summaryrefslogtreecommitdiffstats
path: root/sys/dev/fxp/if_fxpvar.h
diff options
context:
space:
mode:
authorjlemon <jlemon@FreeBSD.org>2001-03-14 19:50:35 +0000
committerjlemon <jlemon@FreeBSD.org>2001-03-14 19:50:35 +0000
commit71a0040fe08bf4a0d07d5d4c75094e94b5715b58 (patch)
tree6cfc20a448ccddec1855373ec4db8439e59b4ce3 /sys/dev/fxp/if_fxpvar.h
parentdb4760d36b7961c113a683d669802cb03d229ac2 (diff)
downloadFreeBSD-src-71a0040fe08bf4a0d07d5d4c75094e94b5715b58.zip
FreeBSD-src-71a0040fe08bf4a0d07d5d4c75094e94b5715b58.tar.gz
Add some performance features to the fxp driver. If the chip is not
a 82557 (e.g.: a newer chip) then: + enable MWI, if the PCI configuration indicates the system supports it + enable usage of extended TxCB, for better performance + enable hardware flow control. FC frames will be passed up to the host only if promiscuous mode is enabled.
Diffstat (limited to 'sys/dev/fxp/if_fxpvar.h')
-rw-r--r--sys/dev/fxp/if_fxpvar.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/dev/fxp/if_fxpvar.h b/sys/dev/fxp/if_fxpvar.h
index 244c447..d993888 100644
--- a/sys/dev/fxp/if_fxpvar.h
+++ b/sys/dev/fxp/if_fxpvar.h
@@ -113,6 +113,7 @@ struct fxp_softc {
device_t dev;
int eeprom_size; /* size of serial EEPROM */
int suspended; /* 0 = normal 1 = suspended (APM) */
+ int chip;
int flags;
u_int32_t saved_maps[5]; /* pci data */
u_int32_t saved_biosaddr;
@@ -121,6 +122,8 @@ struct fxp_softc {
u_int8_t saved_lattimer;
};
+#define FXP_CHIP_82557 1 /* 82557 chip type */
+
#define FXP_FLAG_MWI_ENABLE 0x0001 /* MWI enable */
#define FXP_FLAG_READ_ALIGN 0x0002 /* align read access with cacheline */
#define FXP_FLAG_WRITE_ALIGN 0x0004 /* end write on cacheline */
OpenPOWER on IntegriCloud