summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorPeter Wemm <peter@FreeBSD.org>1999-07-03 20:17:08 +0000
committerPeter Wemm <peter@FreeBSD.org>1999-07-03 20:17:08 +0000
commit9929d2a04579258af0adcb0b3ca952b9c06f13ad (patch)
treea98bed25eeef8ed0c373e4e285129b7d14937824 /sys/dev
parent279f2101e732045b16d5fa11c0e0f1b6730be6a7 (diff)
Notes
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/advansys/adv_pci.c6
-rw-r--r--sys/dev/advansys/adw_pci.c6
-rw-r--r--sys/dev/aic7xxx/ahc_pci.c6
-rw-r--r--sys/dev/bktr/bktr_core.c7
-rw-r--r--sys/dev/bktr/bktr_i2c.c5
-rw-r--r--sys/dev/buslogic/bt_pci.c6
-rw-r--r--sys/dev/cy/cy_pci.c7
-rw-r--r--sys/dev/de/if_de.c5
-rw-r--r--sys/dev/ed/if_ed_pci.c8
-rw-r--r--sys/dev/en/if_en_pci.c4
-rw-r--r--sys/dev/ida/ida_pci.c7
-rw-r--r--sys/dev/lnc/if_lnc_pci.c8
-rw-r--r--sys/dev/pci/pci.c7
-rw-r--r--sys/dev/sr/if_sr_pci.c7
-rw-r--r--sys/dev/tx/if_tx.c5
-rw-r--r--sys/dev/vx/if_vx_pci.c4
16 files changed, 17 insertions, 81 deletions
diff --git a/sys/dev/advansys/adv_pci.c b/sys/dev/advansys/adv_pci.c
index 73b862232432..4a669d08b517 100644
--- a/sys/dev/advansys/adv_pci.c
+++ b/sys/dev/advansys/adv_pci.c
@@ -47,11 +47,9 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: adv_pci.c,v 1.5 1999/04/24 20:13:58 peter Exp $
+ * $Id: adv_pci.c,v 1.6 1999/05/09 17:06:35 peter Exp $
*/
-#include <pci.h>
-#if NPCI > 0
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/kernel.h>
@@ -274,5 +272,3 @@ advpciattach(pcici_t config_id, int unit)
adv_attach(adv);
}
-
-#endif /* NPCI > 0 */
diff --git a/sys/dev/advansys/adw_pci.c b/sys/dev/advansys/adw_pci.c
index 85e7c927f5aa..8b0b86a10289 100644
--- a/sys/dev/advansys/adw_pci.c
+++ b/sys/dev/advansys/adw_pci.c
@@ -28,11 +28,9 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: adw_pci.c,v 1.4 1999/04/24 20:13:58 peter Exp $
+ * $Id: adw_pci.c,v 1.5 1999/05/09 17:06:36 peter Exp $
*/
-#include <pci.h>
-#if NPCI > 0
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/kernel.h>
@@ -183,5 +181,3 @@ adwpciattach(pcici_t config_id, int unit)
adw_attach(adw);
}
-
-#endif /* NPCI > 0 */
diff --git a/sys/dev/aic7xxx/ahc_pci.c b/sys/dev/aic7xxx/ahc_pci.c
index dc8b7c68635c..bc4fd3f2c7d1 100644
--- a/sys/dev/aic7xxx/ahc_pci.c
+++ b/sys/dev/aic7xxx/ahc_pci.c
@@ -34,11 +34,9 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: ahc_pci.c,v 1.14 1999/05/25 20:12:32 gibbs Exp $
+ * $Id: ahc_pci.c,v 1.15 1999/05/26 16:59:17 gibbs Exp $
*/
-#include <pci.h>
-#if NPCI > 0
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/kernel.h>
@@ -1615,5 +1613,3 @@ ahc_aha398XX_setup(device_t dev, char *channel, ahc_chip *chip,
*flags |= AHC_LARGE_SEEPROM;
return (0);
}
-
-#endif /* NPCI > 0 */
diff --git a/sys/dev/bktr/bktr_core.c b/sys/dev/bktr/bktr_core.c
index 23ccdeaf9d74..1394defe3e34 100644
--- a/sys/dev/bktr/bktr_core.c
+++ b/sys/dev/bktr/bktr_core.c
@@ -1,4 +1,4 @@
-/* $Id: brooktree848.c,v 1.85 1999/06/12 14:54:54 roger Exp $ */
+/* $Id: brooktree848.c,v 1.86 1999/06/13 16:05:00 roger Exp $ */
/* BT848 Driver for Brooktree's Bt848, Bt848A, Bt849A, Bt878, Bt879 based cards.
The Brooktree BT848 Driver driver is based upon Mark Tinguely and
Jim Lowe's driver for the Matrox Meteor PCI card . The
@@ -438,7 +438,6 @@ They are unrelated to Revision Control numbering of FreeBSD or any other system.
#include "bktr.h"
#include "opt_bktr.h"
#include "opt_devfs.h"
-#include "pci.h"
#include "smbus.h"
#endif /* __FreeBSD__ */
@@ -447,7 +446,7 @@ They are unrelated to Revision Control numbering of FreeBSD or any other system.
#define NSMBUS 0
#endif
-#if !defined(__FreeBSD__) || ((NBKTR > 0) && (NPCI > 0))
+#if !defined(__FreeBSD__) || (NBKTR > 0)
#include <sys/param.h>
#include <sys/systm.h>
@@ -7040,7 +7039,7 @@ static void msp_autodetect( bktr_ptr_t bktr ) {
/* msp_write(bktr, 0x12, 0x0014, 0x7f40); */
}
-#endif /* !defined(__FreeBSD__) || (NBKTR > 0 && NPCI > 0) */
+#endif /* !defined(__FreeBSD__) || (NBKTR > 0) */
/* Local Variables: */
/* mode: C */
diff --git a/sys/dev/bktr/bktr_i2c.c b/sys/dev/bktr/bktr_i2c.c
index 8aa2de0cf19b..eec0642de1df 100644
--- a/sys/dev/bktr/bktr_i2c.c
+++ b/sys/dev/bktr/bktr_i2c.c
@@ -23,7 +23,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: bt848_i2c.c,v 1.3 1999/05/08 21:59:38 dfr Exp $
+ * $Id: bt848_i2c.c,v 1.4 1999/05/10 10:08:05 roger Exp $
*
*/
@@ -33,11 +33,10 @@
* From brooktree848.c <fsmp@freefall.org>
*/
-#include "pci.h"
#include "bktr.h"
#include "smbus.h"
-#if (NBKTR > 0 && NPCI > 0 && NSMBUS > 0)
+#if (NBKTR > 0 && NSMBUS > 0)
#include <sys/param.h>
#include <sys/kernel.h>
diff --git a/sys/dev/buslogic/bt_pci.c b/sys/dev/buslogic/bt_pci.c
index b126364d9658..e4f866928e1a 100644
--- a/sys/dev/buslogic/bt_pci.c
+++ b/sys/dev/buslogic/bt_pci.c
@@ -26,11 +26,9 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: bt_pci.c,v 1.6 1999/04/23 23:30:22 gibbs Exp $
+ * $Id: bt_pci.c,v 1.7 1999/05/08 21:59:38 dfr Exp $
*/
-#include "pci.h"
-#if NPCI > 0
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/kernel.h>
@@ -230,5 +228,3 @@ static driver_t bt_pci_driver = {
static devclass_t bt_devclass;
DRIVER_MODULE(bt, pci, bt_pci_driver, bt_devclass, 0, 0);
-
-#endif /* NPCI > 0 */
diff --git a/sys/dev/cy/cy_pci.c b/sys/dev/cy/cy_pci.c
index 3034deefcf86..61848c3213de 100644
--- a/sys/dev/cy/cy_pci.c
+++ b/sys/dev/cy/cy_pci.c
@@ -24,16 +24,13 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: cy_pci.c,v 1.14 1999/05/09 17:06:43 peter Exp $
+ * $Id: cy_pci.c,v 1.15 1999/05/10 10:23:38 bde Exp $
*/
/*
* Cyclades Y PCI serial interface driver
*/
-#include "pci.h"
-#if NPCI > 0
-
#include "opt_cy_pci_fastintr.h"
#include <sys/param.h>
@@ -155,5 +152,3 @@ fail:
/* XXX should release any allocated virtual memory */
return;
}
-
-#endif /* NPCI > 0 */
diff --git a/sys/dev/de/if_de.c b/sys/dev/de/if_de.c
index 3cd9f1d84eca..f988a40c35ca 100644
--- a/sys/dev/de/if_de.c
+++ b/sys/dev/de/if_de.c
@@ -1,5 +1,5 @@
/* $NetBSD: if_de.c,v 1.82 1999/02/28 17:08:51 explorer Exp $ */
-/* $Id: if_de.c,v 1.105 1999/05/09 17:06:49 peter Exp $ */
+/* $Id: if_de.c,v 1.106 1999/05/10 14:12:26 peter Exp $ */
/*-
* Copyright (c) 1994-1997 Matt Thomas (matt@3am-software.com)
@@ -118,12 +118,9 @@
#if defined(__FreeBSD__)
#include <net/if_var.h>
#include <vm/pmap.h>
-#include "pci.h"
-#if NPCI > 0
#include <pci/pcivar.h>
#include <pci/dc21040reg.h>
#define DEVAR_INCLUDE "pci/if_devar.h"
-#endif
#include "opt_bdg.h"
#ifdef BRIDGE
#include <net/bridge.h>
diff --git a/sys/dev/ed/if_ed_pci.c b/sys/dev/ed/if_ed_pci.c
index c96fa25e1918..5f9d2682061a 100644
--- a/sys/dev/ed/if_ed_pci.c
+++ b/sys/dev/ed/if_ed_pci.c
@@ -17,12 +17,9 @@
* 4. Modifications may be freely made to this file if the above conditions
* are met.
*
- * $Id: if_ed_p.c,v 1.15 1999/04/24 20:14:00 peter Exp $
+ * $Id: if_ed_p.c,v 1.16 1999/05/09 17:06:52 peter Exp $
*/
-#include "pci.h"
-#if NPCI > 0
-
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/malloc.h>
@@ -99,6 +96,3 @@ ed_pci_attach(config_id, unit)
return;
}
-
-#endif /* NPCI > 0 */
-
diff --git a/sys/dev/en/if_en_pci.c b/sys/dev/en/if_en_pci.c
index 4b8c8650becd..0f0e3a7d1e2c 100644
--- a/sys/dev/en/if_en_pci.c
+++ b/sys/dev/en/if_en_pci.c
@@ -46,8 +46,6 @@
*/
#include "en.h"
-#include "pci.h"
-#if (NEN > 0) && (NPCI > 0)
#include <sys/param.h>
#include <sys/kernel.h>
@@ -435,5 +433,3 @@ eni_get_macaddr(scp)
}
#endif /* !MIDWAY_ADPONLY */
-
-#endif /* NEN > 0 && NPCI > 0 */
diff --git a/sys/dev/ida/ida_pci.c b/sys/dev/ida/ida_pci.c
index 95af154ecfeb..23446f106f11 100644
--- a/sys/dev/ida/ida_pci.c
+++ b/sys/dev/ida/ida_pci.c
@@ -23,12 +23,9 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id$
+ * $Id: ida_pci.c,v 1.1 1999/06/24 03:32:07 jlemon Exp $
*/
-#include <pci.h>
-#if NPCI > 0
-
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/malloc.h>
@@ -195,5 +192,3 @@ ida_pci_print_child(device_t bus, device_t dev)
}
DRIVER_MODULE(ida, pci, ida_pci_driver, ida_devclass, 0, 0);
-
-#endif /* NPCI > 0 */
diff --git a/sys/dev/lnc/if_lnc_pci.c b/sys/dev/lnc/if_lnc_pci.c
index 0bdedd88df63..4e66bf10b82b 100644
--- a/sys/dev/lnc/if_lnc_pci.c
+++ b/sys/dev/lnc/if_lnc_pci.c
@@ -17,12 +17,9 @@
* 4. Modifications may be freely made to this file if the above conditions
* are met.
*
- * $Id: if_lnc_p.c,v 1.9 1999/05/09 17:06:55 peter Exp $
+ * $Id: if_lnc_p.c,v 1.10 1999/05/10 22:39:37 paul Exp $
*/
-#include "pci.h"
-#if NPCI > 0
-
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/malloc.h>
@@ -97,6 +94,3 @@ lnc_pci_attach(config_id, unit)
return;
}
-
-#endif /* NPCI > 0 */
-
diff --git a/sys/dev/pci/pci.c b/sys/dev/pci/pci.c
index eb6abcc5b4ea..9de789b4ae3b 100644
--- a/sys/dev/pci/pci.c
+++ b/sys/dev/pci/pci.c
@@ -23,15 +23,12 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
- * $Id: pci.c,v 1.108 1999/05/31 22:13:34 roger Exp $
+ * $Id: pci.c,v 1.109 1999/07/01 22:58:03 peter Exp $
*
*/
#include "opt_bus.h"
-#include "pci.h"
-#if NPCI > 0
-
#include "opt_devfs.h"
#include "opt_simos.h"
@@ -1469,5 +1466,3 @@ static driver_t pci_driver = {
};
DRIVER_MODULE(pci, pcib, pci_driver, pci_devclass, pci_modevent, 0);
-
-#endif /* NPCI > 0 */
diff --git a/sys/dev/sr/if_sr_pci.c b/sys/dev/sr/if_sr_pci.c
index a7d34e9baada..260f5ef0c5d0 100644
--- a/sys/dev/sr/if_sr_pci.c
+++ b/sys/dev/sr/if_sr_pci.c
@@ -27,12 +27,9 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: if_sr_p.c,v 1.8 1999/04/24 20:14:01 peter Exp $
+ * $Id: if_sr_p.c,v 1.9 1999/05/09 17:06:59 peter Exp $
*/
-#include "pci.h"
-#if NPCI > 0
-
#include "sr.h"
#include <sys/param.h>
@@ -130,5 +127,3 @@ sr_pci_attach(pcici_t config_id, int unit)
return;
}
}
-
-#endif /* NPCI > 0 */
diff --git a/sys/dev/tx/if_tx.c b/sys/dev/tx/if_tx.c
index c83b91bc0f1b..0b0cec3095a0 100644
--- a/sys/dev/tx/if_tx.c
+++ b/sys/dev/tx/if_tx.c
@@ -1,5 +1,5 @@
/* $OpenBSD: if_tx.c,v 1.3 1998/10/10 04:30:09 jason Exp $ */
-/* $Id: if_tx.c,v 1.26 1999/05/09 17:07:02 peter Exp $ */
+/* $Id: if_tx.c,v 1.27 1999/05/10 00:20:46 peter Exp $ */
/*-
* Copyright (c) 1997 Semen Ustimenko (semen@iclub.nsu.ru)
@@ -68,10 +68,8 @@
}
#include "bpfilter.h"
-#include "pci.h"
#include "opt_bdg.h"
-#if NPCI > 0
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/mbuf.h>
@@ -2040,4 +2038,3 @@ epic_dump_state __P((
);
}
}
-#endif /* NPCI > 0 */
diff --git a/sys/dev/vx/if_vx_pci.c b/sys/dev/vx/if_vx_pci.c
index 1e6aa769d3fd..2bad3b03648b 100644
--- a/sys/dev/vx/if_vx_pci.c
+++ b/sys/dev/vx/if_vx_pci.c
@@ -29,9 +29,6 @@
* $FreeBSD$
*/
-#include "pci.h"
-#if NPCI > 0
-
#include "vx.h"
#if NVX > 0
@@ -141,4 +138,3 @@ static struct pci_device vxdevice = {
COMPAT_PCI_DRIVER (vx, vxdevice);
#endif /* NVX */
-#endif /* NPCI */