diff options
author | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2001-06-23 03:30:39 +0000 |
---|---|---|
committer | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2001-06-23 03:30:39 +0000 |
commit | 53429270408e554c3738afc2b6008017e7819e7f (patch) | |
tree | b17749c46c0d58bc4b1347509cc759da31883c04 /sys/arch/powerpc | |
parent | f13e0c71f1aae8d4d488fcfdd478d86e9ce198f1 (diff) |
PCI bus configuration userland access from FreeBSD.
Will be used by XFree86 on powerpc (works on i386 too, but its not currently
used).
Diffstat (limited to 'sys/arch/powerpc')
-rw-r--r-- | sys/arch/powerpc/conf/GENERIC | 4 | ||||
-rw-r--r-- | sys/arch/powerpc/powerpc/conf.c | 12 |
2 files changed, 14 insertions, 2 deletions
diff --git a/sys/arch/powerpc/conf/GENERIC b/sys/arch/powerpc/conf/GENERIC index 417a7dbd4c7..c4a4f11460e 100644 --- a/sys/arch/powerpc/conf/GENERIC +++ b/sys/arch/powerpc/conf/GENERIC @@ -1,4 +1,4 @@ -# $OpenBSD: GENERIC,v 1.35 2001/06/17 03:44:03 drahn Exp $ +# $OpenBSD: GENERIC,v 1.36 2001/06/23 03:30:38 matthieu Exp $ # # PPC GENERIC config file # @@ -18,6 +18,8 @@ option PCIVERBOSE option USBVERBOSE option WSEMUL_NO_DUMB +option USER_PCICONF # user-space PCI configuration + include "../../../conf/GENERIC" config bsd swap generic diff --git a/sys/arch/powerpc/powerpc/conf.c b/sys/arch/powerpc/powerpc/conf.c index eadfd8bad8d..bf20a219bf3 100644 --- a/sys/arch/powerpc/powerpc/conf.c +++ b/sys/arch/powerpc/powerpc/conf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: conf.c,v 1.20 2001/03/29 19:56:33 drahn Exp $ */ +/* $OpenBSD: conf.c,v 1.21 2001/06/23 03:30:38 matthieu Exp $ */ /* * Copyright (c) 1997 Per Fogelstrom @@ -183,6 +183,11 @@ cdev_decl(ucom); #include "wsmux.h" cdev_decl(wsmux); +#ifdef USER_PCICONF +#include "pci.h" +cdev_decl(pci); +#endif + #include "audio.h" cdev_decl(audio); @@ -267,6 +272,11 @@ struct cdevsw cdevsw[] = { cdev_mouse_init(NWSMOUSE, /* 69: mice */ wsmouse), cdev_mouse_init(NWSMUX, wsmux), /* 70: ws multiplexor */ +#ifdef USER_PCICONF + cdev_pci_init(NPCI,pci), /* 71: PCI user */ +#else + cdev_notdef(), +#endif }; int nchrdev = sizeof cdevsw / sizeof cdevsw[0]; |