From f51370fc86258c3833f6802d2f6a9b299b6b75f5 Mon Sep 17 00:00:00 2001 From: Aaron Campbell Date: Wed, 8 Dec 1999 00:25:55 +0000 Subject: Sync with FreeBSD: - Reset the PHY before selecting a mode. - Program IPG register to match duplex setting in accordance with Adaptec manual recommendations. --- sys/dev/pci/if_sfreg.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'sys/dev/pci/if_sfreg.h') 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 @@ -609,6 +609,14 @@ #define SF_MACCFG1_MIILOOPBK 0x00004000 #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 */ @@ -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 -- cgit v1.2.3