From c269e502aef34c2e68a01e3f92abd54bc96d1ec4 Mon Sep 17 00:00:00 2001 From: Peter Valchev Date: Fri, 14 Jan 2005 01:32:46 +0000 Subject: clean PCI leftovers --- sys/dev/ic/re.c | 28 +--------------------------- 1 file changed, 1 insertion(+), 27 deletions(-) (limited to 'sys/dev/ic') diff --git a/sys/dev/ic/re.c b/sys/dev/ic/re.c index c0b7d17d8b0..c8eb9fc0335 100644 --- a/sys/dev/ic/re.c +++ b/sys/dev/ic/re.c @@ -1,4 +1,4 @@ -/* $OpenBSD: re.c,v 1.1 2005/01/14 01:08:11 pvalchev Exp $ */ +/* $OpenBSD: re.c,v 1.2 2005/01/14 01:32:45 pvalchev Exp $ */ /* $FreeBSD: if_re.c,v 1.31 2004/09/04 07:54:05 ru Exp $ */ /* * Copyright (c) 1997, 1998-2003 @@ -146,29 +146,14 @@ #include #include -#include /*#define RE_CSUM_OFFLOAD */ #include -struct re_pci_softc { - struct rl_softc sc_rl; - - void *sc_ih; - pci_chipset_tag_t sc_pc; - pcitag_t sc_pcitag; -}; - int redebug = 0; #define DPRINTF(x) if (redebug) printf x -const struct pci_matchid re_devices[] = { - { PCI_VENDOR_REALTEK, PCI_PRODUCT_REALTEK_RT8169 }, - { PCI_VENDOR_COREGA, PCI_PRODUCT_COREGA_CGLAPCIGT }, -}; - -int re_probe (struct device *, void *, void *); void re_attach_common (struct rl_softc *); int re_encap (struct rl_softc *, struct mbuf *, int *); @@ -728,17 +713,6 @@ done: return (error); } -/* - * Probe for a RealTek 8139C+/8169/8110 chip. Check the PCI vendor and device - * IDs against our list and return a device name if we find a match. - */ -int -re_probe(struct device *parent, void *match, void *aux) -{ - return (pci_matchbyid((struct pci_attach_args *)aux, re_devices, - sizeof(re_devices)/sizeof(re_devices[0]))); -} - int re_allocmem(struct rl_softc *sc) { -- cgit v1.2.3