diff options
author | Aaron Campbell <aaron@cvs.openbsd.org> | 1999-12-08 00:25:55 +0000 |
---|---|---|
committer | Aaron Campbell <aaron@cvs.openbsd.org> | 1999-12-08 00:25:55 +0000 |
commit | f51370fc86258c3833f6802d2f6a9b299b6b75f5 (patch) | |
tree | 5c97e16148693ffdbb086b045e6bc4cdc8a682d8 /sys/dev/pci/if_sfreg.h | |
parent | ecfa7aea870d9dc067cdc38893700d5327b71f82 (diff) |
Sync with FreeBSD:
- Reset the PHY before selecting a mode.
- Program IPG register to match duplex setting in accordance with Adaptec
manual recommendations.
Diffstat (limited to 'sys/dev/pci/if_sfreg.h')
-rw-r--r-- | sys/dev/pci/if_sfreg.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/sys/dev/pci/if_sfreg.h b/sys/dev/pci/if_sfreg.h index b76206cf321..9736dfd456a 100644 --- a/sys/dev/pci/if_sfreg.h +++ b/sys/dev/pci/if_sfreg.h @@ -610,6 +610,14 @@ #define SF_MACCFG1_SOFTRESET 0x00008000 /* + * These are the recommended IPG nibble counter settings + * specified in the Adaptec manual for full duplex and + * half duplex operation. + */ +#define SF_IPGT_FDX 0x15 +#define SF_IPGT_HDX 0x11 + +/* * RX filter registers 0x6000 to 0x6FFF */ #define SF_RXFILT_PERFECT_BASE 0x6000 @@ -1038,6 +1046,8 @@ struct sf_softc { struct sf_list_data *sf_ldata; caddr_t sf_ldata_ptr; int sf_tx_cnt; + u_int8_t sf_link; + int sf_if_flags; }; #define SF_TIMEOUT 1000 |