summaryrefslogtreecommitdiffstats
path: root/sys/pci
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2004-02-21 21:10:55 +0000
committerphk <phk@FreeBSD.org>2004-02-21 21:10:55 +0000
commitad925439e08646e188eb1c0e0be355f0685c8739 (patch)
tree0896a7d99c90ad922a1e4b41f052d155256cb97e /sys/pci
parentd68e8ba04cb070f349043edccaafae5facffab48 (diff)
downloadFreeBSD-src-ad925439e08646e188eb1c0e0be355f0685c8739.zip
FreeBSD-src-ad925439e08646e188eb1c0e0be355f0685c8739.tar.gz
Device megapatch 4/6:
Introduce d_version field in struct cdevsw, this must always be initialized to D_VERSION. Flip sense of D_NOGIANT flag to D_NEEDGIANT, this involves removing four D_NOGIANT flags and adding 145 D_NEEDGIANT flags.
Diffstat (limited to 'sys/pci')
-rw-r--r--sys/pci/agp.c2
-rw-r--r--sys/pci/if_ti.c2
-rw-r--r--sys/pci/xrpu.c2
3 files changed, 6 insertions, 0 deletions
diff --git a/sys/pci/agp.c b/sys/pci/agp.c
index 6f09660..6a01e20 100644
--- a/sys/pci/agp.c
+++ b/sys/pci/agp.c
@@ -70,6 +70,8 @@ static d_ioctl_t agp_ioctl;
static d_mmap_t agp_mmap;
static struct cdevsw agp_cdevsw = {
+ .d_version = D_VERSION,
+ .d_flags = D_NEEDGIANT,
.d_open = agp_open,
.d_close = agp_close,
.d_ioctl = agp_ioctl,
diff --git a/sys/pci/if_ti.c b/sys/pci/if_ti.c
index 9e8c8f1..b0118d6 100644
--- a/sys/pci/if_ti.c
+++ b/sys/pci/if_ti.c
@@ -186,6 +186,8 @@ static d_close_t ti_close;
static d_ioctl_t ti_ioctl2;
static struct cdevsw ti_cdevsw = {
+ .d_version = D_VERSION,
+ .d_flags = D_NEEDGIANT,
.d_open = ti_open,
.d_close = ti_close,
.d_ioctl = ti_ioctl2,
diff --git a/sys/pci/xrpu.c b/sys/pci/xrpu.c
index d6c6cd3..6c1d8fd 100644
--- a/sys/pci/xrpu.c
+++ b/sys/pci/xrpu.c
@@ -43,6 +43,8 @@ static d_ioctl_t xrpu_ioctl;
static d_mmap_t xrpu_mmap;
static struct cdevsw xrpu_cdevsw = {
+ .d_version = D_VERSION,
+ .d_flags = D_NEEDGIANT,
.d_open = xrpu_open,
.d_close = xrpu_close,
.d_ioctl = xrpu_ioctl,
OpenPOWER on IntegriCloud