mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-04 05:58:57 +00:00
Ahhrggg. Put the test for the compat shims AFTER the file that includes
them. Pointed out by: bde
This commit is contained in:
parent
b9d308bed2
commit
d0d3b8345b
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=58701
@ -50,10 +50,6 @@
|
||||
/* #define AMD_DEBUG0 */
|
||||
/* #define AMD_DEBUG_SCSI_PHASE */
|
||||
|
||||
#ifndef COMPAT_OLDPCI
|
||||
#error "The amd device requires the old pci compatibility shims"
|
||||
#endif
|
||||
|
||||
#include <sys/param.h>
|
||||
|
||||
#include <sys/systm.h>
|
||||
@ -83,6 +79,10 @@
|
||||
|
||||
#include <pci/amd.h>
|
||||
|
||||
#ifndef COMPAT_OLDPCI
|
||||
#error "The amd device requires the old pci compatibility shims"
|
||||
#endif
|
||||
|
||||
#define PCI_DEVICE_ID_AMD53C974 0x20201022ul
|
||||
#define PCI_BASE_ADDR0 0x10
|
||||
|
||||
|
@ -29,10 +29,6 @@
|
||||
* $FreeBSD$
|
||||
*/
|
||||
|
||||
#ifndef COMPAT_OLDPCI
|
||||
#error "The ar device requires the old pci compatibility shims"
|
||||
#endif
|
||||
|
||||
#include "ar.h"
|
||||
|
||||
#include <sys/param.h>
|
||||
@ -42,6 +38,10 @@
|
||||
|
||||
#include <pci/pcivar.h>
|
||||
|
||||
#ifndef COMPAT_OLDPCI
|
||||
#error "The ar device requires the old pci compatibility shims"
|
||||
#endif
|
||||
|
||||
/*
|
||||
* The must match with the real functions in if_ar.c
|
||||
*/
|
||||
|
@ -33,10 +33,6 @@
|
||||
|
||||
#include "opt_cy_pci_fastintr.h"
|
||||
|
||||
#ifndef COMPAT_OLDPCI
|
||||
#error "The cy device requires the old pci compatibility shims"
|
||||
#endif
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
#include <sys/kernel.h>
|
||||
@ -51,6 +47,10 @@
|
||||
#include <i386/isa/intr_machdep.h>
|
||||
#endif
|
||||
|
||||
#ifndef COMPAT_OLDPCI
|
||||
#error "The cy device requires the old pci compatibility shims"
|
||||
#endif
|
||||
|
||||
static const char *cy_probe __P((pcici_t, pcidi_t));
|
||||
static void cy_attach __P((pcici_t, int));
|
||||
|
||||
|
@ -45,10 +45,6 @@
|
||||
* thanks to Matt Thomas for figuring out FreeBSD vs NetBSD vs etc.. diffs.
|
||||
*/
|
||||
|
||||
#ifndef COMPAT_OLDPCI
|
||||
#error "The en device requires the old pci compatibility shims"
|
||||
#endif
|
||||
|
||||
#include "en.h"
|
||||
|
||||
#include <sys/param.h>
|
||||
@ -70,6 +66,10 @@
|
||||
#include <dev/en/midwayreg.h>
|
||||
#include <dev/en/midwayvar.h>
|
||||
|
||||
#ifndef COMPAT_OLDPCI
|
||||
#error "The en device requires the old pci compatibility shims"
|
||||
#endif
|
||||
|
||||
|
||||
/*
|
||||
* prototypes
|
||||
|
@ -20,10 +20,6 @@
|
||||
* $FreeBSD$
|
||||
*/
|
||||
|
||||
#ifndef COMPAT_OLDPCI
|
||||
#error "The lnc device requires the old pci compatibility shims"
|
||||
#endif
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
#include <sys/malloc.h>
|
||||
@ -33,6 +29,10 @@
|
||||
|
||||
#include "lnc.h"
|
||||
|
||||
#ifndef COMPAT_OLDPCI
|
||||
#error "The lnc device requires the old pci compatibility shims"
|
||||
#endif
|
||||
|
||||
#define PCI_DEVICE_ID_PCNet_PCI 0x20001022
|
||||
#define PCI_DEVICE_ID_PCHome_PCI 0x20011022
|
||||
|
||||
|
@ -30,10 +30,6 @@
|
||||
* $FreeBSD$
|
||||
*/
|
||||
|
||||
#ifndef COMPAT_OLDPCI
|
||||
#error "The sr device requires the old pci compatibility shims"
|
||||
#endif
|
||||
|
||||
#include "sr.h"
|
||||
|
||||
#include <sys/param.h>
|
||||
@ -43,6 +39,10 @@
|
||||
|
||||
#include <pci/pcivar.h>
|
||||
|
||||
#ifndef COMPAT_OLDPCI
|
||||
#error "The sr device requires the old pci compatibility shims"
|
||||
#endif
|
||||
|
||||
#ifndef BUGGY
|
||||
#define BUGGY 0
|
||||
#endif
|
||||
|
@ -27,10 +27,6 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef COMPAT_OLDPCI
|
||||
#error "The alpm device requires the old pci compatibility shims"
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Power Management support for the Acer M15x3 chipsets
|
||||
*/
|
||||
@ -59,6 +55,10 @@
|
||||
|
||||
#include "alpm.h"
|
||||
|
||||
#ifndef COMPAT_OLDPCI
|
||||
#error "The alpm device requires the old pci compatibility shims"
|
||||
#endif
|
||||
|
||||
#define ALPM_DEBUG(x) if (alpm_debug) (x)
|
||||
|
||||
#ifdef DEBUG
|
||||
|
@ -50,10 +50,6 @@
|
||||
/* #define AMD_DEBUG0 */
|
||||
/* #define AMD_DEBUG_SCSI_PHASE */
|
||||
|
||||
#ifndef COMPAT_OLDPCI
|
||||
#error "The amd device requires the old pci compatibility shims"
|
||||
#endif
|
||||
|
||||
#include <sys/param.h>
|
||||
|
||||
#include <sys/systm.h>
|
||||
@ -83,6 +79,10 @@
|
||||
|
||||
#include <pci/amd.h>
|
||||
|
||||
#ifndef COMPAT_OLDPCI
|
||||
#error "The amd device requires the old pci compatibility shims"
|
||||
#endif
|
||||
|
||||
#define PCI_DEVICE_ID_AMD53C974 0x20201022ul
|
||||
#define PCI_BASE_ADDR0 0x10
|
||||
|
||||
|
@ -33,10 +33,6 @@
|
||||
|
||||
#include "opt_cy_pci_fastintr.h"
|
||||
|
||||
#ifndef COMPAT_OLDPCI
|
||||
#error "The cy device requires the old pci compatibility shims"
|
||||
#endif
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
#include <sys/kernel.h>
|
||||
@ -51,6 +47,10 @@
|
||||
#include <i386/isa/intr_machdep.h>
|
||||
#endif
|
||||
|
||||
#ifndef COMPAT_OLDPCI
|
||||
#error "The cy device requires the old pci compatibility shims"
|
||||
#endif
|
||||
|
||||
static const char *cy_probe __P((pcici_t, pcidi_t));
|
||||
static void cy_attach __P((pcici_t, int));
|
||||
|
||||
|
@ -29,10 +29,6 @@
|
||||
* $FreeBSD$
|
||||
*/
|
||||
|
||||
#ifndef COMPAT_OLDPCI
|
||||
#error "The ar device requires the old pci compatibility shims"
|
||||
#endif
|
||||
|
||||
#include "ar.h"
|
||||
|
||||
#include <sys/param.h>
|
||||
@ -42,6 +38,10 @@
|
||||
|
||||
#include <pci/pcivar.h>
|
||||
|
||||
#ifndef COMPAT_OLDPCI
|
||||
#error "The ar device requires the old pci compatibility shims"
|
||||
#endif
|
||||
|
||||
/*
|
||||
* The must match with the real functions in if_ar.c
|
||||
*/
|
||||
|
@ -45,10 +45,6 @@
|
||||
* thanks to Matt Thomas for figuring out FreeBSD vs NetBSD vs etc.. diffs.
|
||||
*/
|
||||
|
||||
#ifndef COMPAT_OLDPCI
|
||||
#error "The en device requires the old pci compatibility shims"
|
||||
#endif
|
||||
|
||||
#include "en.h"
|
||||
|
||||
#include <sys/param.h>
|
||||
@ -70,6 +66,10 @@
|
||||
#include <dev/en/midwayreg.h>
|
||||
#include <dev/en/midwayvar.h>
|
||||
|
||||
#ifndef COMPAT_OLDPCI
|
||||
#error "The en device requires the old pci compatibility shims"
|
||||
#endif
|
||||
|
||||
|
||||
/*
|
||||
* prototypes
|
||||
|
@ -20,10 +20,6 @@
|
||||
* $FreeBSD$
|
||||
*/
|
||||
|
||||
#ifndef COMPAT_OLDPCI
|
||||
#error "The lnc device requires the old pci compatibility shims"
|
||||
#endif
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
#include <sys/malloc.h>
|
||||
@ -33,6 +29,10 @@
|
||||
|
||||
#include "lnc.h"
|
||||
|
||||
#ifndef COMPAT_OLDPCI
|
||||
#error "The lnc device requires the old pci compatibility shims"
|
||||
#endif
|
||||
|
||||
#define PCI_DEVICE_ID_PCNet_PCI 0x20001022
|
||||
#define PCI_DEVICE_ID_PCHome_PCI 0x20011022
|
||||
|
||||
|
@ -24,10 +24,6 @@
|
||||
* $FreeBSD$
|
||||
*/
|
||||
|
||||
#ifndef COMPAT_OLDPCI
|
||||
#error "The mn device requires the old pci compatibility shims"
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Stuff to describe the MUNIC32X and FALC54 chips.
|
||||
*/
|
||||
@ -59,6 +55,10 @@
|
||||
#include <netgraph/ng_sample.h>
|
||||
#include <netgraph/netgraph.h>
|
||||
|
||||
#ifndef COMPAT_OLDPCI
|
||||
#error "The mn device requires the old pci compatibility shims"
|
||||
#endif
|
||||
|
||||
static int mn_maxlatency = 1000;
|
||||
SYSCTL_INT(_debug, OID_AUTO, mn_maxlatency, CTLFLAG_RW,
|
||||
&mn_maxlatency, 0,
|
||||
|
@ -30,10 +30,6 @@
|
||||
* $FreeBSD$
|
||||
*/
|
||||
|
||||
#ifndef COMPAT_OLDPCI
|
||||
#error "The sr device requires the old pci compatibility shims"
|
||||
#endif
|
||||
|
||||
#include "sr.h"
|
||||
|
||||
#include <sys/param.h>
|
||||
@ -43,6 +39,10 @@
|
||||
|
||||
#include <pci/pcivar.h>
|
||||
|
||||
#ifndef COMPAT_OLDPCI
|
||||
#error "The sr device requires the old pci compatibility shims"
|
||||
#endif
|
||||
|
||||
#ifndef BUGGY
|
||||
#define BUGGY 0
|
||||
#endif
|
||||
|
@ -145,10 +145,6 @@
|
||||
future version of this driver.
|
||||
*/
|
||||
|
||||
#ifndef COMPAT_OLDPCI
|
||||
#error "The meteor device requires the old pci compatibility shims"
|
||||
#endif
|
||||
|
||||
#include "meteor.h"
|
||||
|
||||
#include "opt_meteor.h"
|
||||
@ -175,6 +171,9 @@
|
||||
#include <machine/ioctl_meteor.h>
|
||||
#include <pci/meteor_reg.h>
|
||||
|
||||
#ifndef COMPAT_OLDPCI
|
||||
#error "The meteor device requires the old pci compatibility shims"
|
||||
#endif
|
||||
|
||||
static void meteor_intr __P((void *arg));
|
||||
|
||||
|
@ -39,10 +39,6 @@
|
||||
***************************************************************************
|
||||
*/
|
||||
|
||||
#ifndef COMPAT_OLDPCI
|
||||
#error "The ncr device requires the old pci compatibility shims"
|
||||
#endif
|
||||
|
||||
#define NCR_DATE "pl30 98/1/1"
|
||||
|
||||
#define NCR_VERSION (2)
|
||||
@ -205,6 +201,10 @@
|
||||
#include <cam/scsi/scsi_all.h>
|
||||
#include <cam/scsi/scsi_message.h>
|
||||
|
||||
#ifndef COMPAT_OLDPCI
|
||||
#error "The ncr device requires the old pci compatibility shims"
|
||||
#endif
|
||||
|
||||
/*==========================================================
|
||||
**
|
||||
** Debugging tags
|
||||
|
@ -26,10 +26,6 @@
|
||||
* $FreeBSD$
|
||||
*/
|
||||
|
||||
#ifndef COMPAT_OLDPCI
|
||||
#error "The simos device requires the old pci compatibility shims"
|
||||
#endif
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
#include <sys/malloc.h>
|
||||
@ -56,6 +52,10 @@
|
||||
#include <pci/pcireg.h>
|
||||
#include <pci/pcivar.h>
|
||||
|
||||
#ifndef COMPAT_OLDPCI
|
||||
#error "The simos device requires the old pci compatibility shims"
|
||||
#endif
|
||||
|
||||
#include <machine/alpha_cpu.h>
|
||||
|
||||
struct simos_softc {
|
||||
|
Loading…
Reference in New Issue
Block a user