aboutsummaryrefslogtreecommitdiff
path: root/sys/pci
diff options
context:
space:
mode:
authorGleb Smirnoff <glebius@FreeBSD.org>2005-10-05 10:09:17 +0000
committerGleb Smirnoff <glebius@FreeBSD.org>2005-10-05 10:09:17 +0000
commitf0796cd26c51af84618836d41f9e37a310323c6e (patch)
tree4da500a63f4294917b4cd16805f3184b105af0b7 /sys/pci
parent2afb277f09e70f6f520d54a538a1459bcb8d16e4 (diff)
downloadsrc-f0796cd26c51af84618836d41f9e37a310323c6e.tar.gz
src-f0796cd26c51af84618836d41f9e37a310323c6e.zip
- Don't pollute opt_global.h with DEVICE_POLLING and introduce
opt_device_polling.h - Include opt_device_polling.h into appropriate files. - Embrace with HAVE_KERNEL_OPTION_HEADERS the include in the files that can be compiled as loadable modules. Reviewed by: bde
Notes
Notes: svn path=/head/; revision=150968
Diffstat (limited to 'sys/pci')
-rw-r--r--sys/pci/if_dc.c4
-rw-r--r--sys/pci/if_rl.c4
-rw-r--r--sys/pci/if_sf.c4
-rw-r--r--sys/pci/if_sis.c4
-rw-r--r--sys/pci/if_ste.c4
-rw-r--r--sys/pci/if_vr.c4
-rw-r--r--sys/pci/if_xl.c4
7 files changed, 28 insertions, 0 deletions
diff --git a/sys/pci/if_dc.c b/sys/pci/if_dc.c
index a6f4304ae662..d4322d528a11 100644
--- a/sys/pci/if_dc.c
+++ b/sys/pci/if_dc.c
@@ -91,6 +91,10 @@ __FBSDID("$FreeBSD$");
* AX88140A doesn't support internal NWAY.
*/
+#ifdef HAVE_KERNEL_OPTION_HEADERS
+#include "opt_device_polling.h"
+#endif
+
#include <sys/param.h>
#include <sys/endian.h>
#include <sys/systm.h>
diff --git a/sys/pci/if_rl.c b/sys/pci/if_rl.c
index a35e999aa509..eae31bc55a4c 100644
--- a/sys/pci/if_rl.c
+++ b/sys/pci/if_rl.c
@@ -83,6 +83,10 @@ __FBSDID("$FreeBSD$");
* to select which interface to use depending on the chip type.
*/
+#ifdef HAVE_KERNEL_OPTION_HEADERS
+#include "opt_device_polling.h"
+#endif
+
#include <sys/param.h>
#include <sys/endian.h>
#include <sys/systm.h>
diff --git a/sys/pci/if_sf.c b/sys/pci/if_sf.c
index 691a0f665006..7b2538bd8d12 100644
--- a/sys/pci/if_sf.c
+++ b/sys/pci/if_sf.c
@@ -79,6 +79,10 @@ __FBSDID("$FreeBSD$");
* registers inside the 256-byte I/O window.
*/
+#ifdef HAVE_KERNEL_OPTION_HEADERS
+#include "opt_device_polling.h"
+#endif
+
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/sockio.h>
diff --git a/sys/pci/if_sis.c b/sys/pci/if_sis.c
index c0417bef2b48..006803963fe9 100644
--- a/sys/pci/if_sis.c
+++ b/sys/pci/if_sis.c
@@ -58,6 +58,10 @@ __FBSDID("$FreeBSD$");
* longword aligned.
*/
+#ifdef HAVE_KERNEL_OPTION_HEADERS
+#include "opt_device_polling.h"
+#endif
+
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/sockio.h>
diff --git a/sys/pci/if_ste.c b/sys/pci/if_ste.c
index f80e676df30e..02815b9df73b 100644
--- a/sys/pci/if_ste.c
+++ b/sys/pci/if_ste.c
@@ -33,6 +33,10 @@
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
+#ifdef HAVE_KERNEL_OPTION_HEADERS
+#include "opt_device_polling.h"
+#endif
+
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/sockio.h>
diff --git a/sys/pci/if_vr.c b/sys/pci/if_vr.c
index b3c92eae4f75..8f15b84404e2 100644
--- a/sys/pci/if_vr.c
+++ b/sys/pci/if_vr.c
@@ -60,6 +60,10 @@ __FBSDID("$FreeBSD$");
* transmission.
*/
+#ifdef HAVE_KERNEL_OPTION_HEADERS
+#include "opt_device_polling.h"
+#endif
+
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/sockio.h>
diff --git a/sys/pci/if_xl.c b/sys/pci/if_xl.c
index e49997aa13d9..91ff05e57e58 100644
--- a/sys/pci/if_xl.c
+++ b/sys/pci/if_xl.c
@@ -101,6 +101,10 @@ __FBSDID("$FreeBSD$");
* PCI-based NICs.
*/
+#ifdef HAVE_KERNEL_OPTION_HEADERS
+#include "opt_device_polling.h"
+#endif
+
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/sockio.h>