From 82c03039352997a53fffd345ac2e99e1c4f09e21 Mon Sep 17 00:00:00 2001 From: wpaul Date: Wed, 14 Jul 1999 21:53:11 +0000 Subject: Make a few other cleanups while I'm in the area. Typo in comment, unused structure members, etc. No functional changes. --- sys/pci/if_sk.c | 7 ++----- sys/pci/if_skreg.h | 7 ++----- 2 files changed, 4 insertions(+), 10 deletions(-) (limited to 'sys/pci') diff --git a/sys/pci/if_sk.c b/sys/pci/if_sk.c index 2edca34..c560fe4 100644 --- a/sys/pci/if_sk.c +++ b/sys/pci/if_sk.c @@ -29,7 +29,7 @@ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF * THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: if_sk.c,v 1.2 1999/07/09 17:36:23 wpaul Exp $ + * $Id: if_sk.c,v 1.3 1999/07/14 18:57:32 wpaul Exp $ */ /* @@ -99,7 +99,7 @@ #ifndef lint static const char rcsid[] = - "$Id: if_sk.c,v 1.2 1999/07/09 17:36:23 wpaul Exp $"; + "$Id: if_sk.c,v 1.3 1999/07/14 18:57:32 wpaul Exp $"; #endif static struct sk_type sk_devs[] = { @@ -1221,9 +1221,6 @@ sk_attach(config_id, unit) goto fail; } - /* Save cache line size. */ - sc->sk_cachesize = pci_conf_read(config_id, SK_PCI_CACHELEN) & 0xFF; - /* Reset the adapter. */ sk_reset(sc); diff --git a/sys/pci/if_skreg.h b/sys/pci/if_skreg.h index 34aef2e..8520abf 100644 --- a/sys/pci/if_skreg.h +++ b/sys/pci/if_skreg.h @@ -29,7 +29,7 @@ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF * THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: if_skreg.h,v 1.1 1999/07/09 04:29:51 wpaul Exp $ + * $Id: if_skreg.h,v 1.2 1999/07/09 17:36:23 wpaul Exp $ */ /* @@ -908,7 +908,7 @@ /* * The default FIFO threshold on the XMAC II is 4 bytes. On - * dual port NICs, this often leats to transmit underruns, so we + * dual port NICs, this often leads to transmit underruns, so we * bump the threshold a little. */ #define SK_XM_TX_FIFOTHRESH 512 @@ -935,7 +935,6 @@ /* device specific PCI registers */ #define SK_PCI_OURREG1 0x0040 #define SK_PCI_OURREG2 0x0044 -#define SK_PCI_ #define SK_PCI_CAPID 0x0048 /* 8 bits */ #define SK_PCI_NEXTPTR 0x0049 /* 8 bits */ #define SK_PCI_PWRMGMTCAP 0x004A /* 16 bits */ @@ -1128,10 +1127,8 @@ struct sk_if_softc; struct sk_softc { bus_space_handle_t sk_bhandle; /* bus space handle */ bus_space_tag_t sk_btag; /* bus space tag */ - struct sk_type *sk_info; /* Starfire adapter info */ u_int8_t sk_unit; /* controller number */ u_int8_t sk_type; - u_int8_t sk_cachesize; char *sk_vpd_prodname; char *sk_vpd_readonly; u_int32_t sk_rboff; /* RAMbuffer offset */ -- cgit v1.1