summaryrefslogtreecommitdiffstats
path: root/sys/dev/pci/pci_user.c
diff options
context:
space:
mode:
authorjulian <julian@FreeBSD.org>2001-09-12 08:38:13 +0000
committerjulian <julian@FreeBSD.org>2001-09-12 08:38:13 +0000
commit5596676e6c6c1e81e899cd0531f9b1c28a292669 (patch)
treeb1a19fcdf05759281fab0d89efb13f0fdf42102e /sys/dev/pci/pci_user.c
parent83e00d4274950d2b531c24692cd123538ffbddb9 (diff)
downloadFreeBSD-src-5596676e6c6c1e81e899cd0531f9b1c28a292669.zip
FreeBSD-src-5596676e6c6c1e81e899cd0531f9b1c28a292669.tar.gz
KSE Milestone 2
Note ALL MODULES MUST BE RECOMPILED make the kernel aware that there are smaller units of scheduling than the process. (but only allow one thread per process at this time). This is functionally equivalent to teh previousl -current except that there is a thread associated with each process. Sorry john! (your next MFC will be a doosie!) Reviewed by: peter@freebsd.org, dillon@freebsd.org X-MFC after: ha ha ha ha
Diffstat (limited to 'sys/dev/pci/pci_user.c')
-rw-r--r--sys/dev/pci/pci_user.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/dev/pci/pci_user.c b/sys/dev/pci/pci_user.c
index d8debc3..6968241 100644
--- a/sys/dev/pci/pci_user.c
+++ b/sys/dev/pci/pci_user.c
@@ -60,11 +60,11 @@
* This is the user interface to PCI configuration space.
*/
-static int pci_open(dev_t dev, int oflags, int devtype, struct proc *p);
-static int pci_close(dev_t dev, int flag, int devtype, struct proc *p);
+static d_open_t pci_open;
+static d_close_t pci_close;
static int pci_conf_match(struct pci_match_conf *matches, int num_matches,
struct pci_conf *match_buf);
-static int pci_ioctl(dev_t dev, u_long cmd, caddr_t data, int flag, struct proc *p);
+static d_ioctl_t pci_ioctl;
#define PCI_CDEV 78
@@ -85,7 +85,7 @@ struct cdevsw pcicdev = {
};
static int
-pci_open(dev_t dev, int oflags, int devtype, struct proc *p)
+pci_open(dev_t dev, int oflags, int devtype, struct thread *td)
{
if ((oflags & FWRITE) && securelevel > 0) {
return EPERM;
@@ -94,7 +94,7 @@ pci_open(dev_t dev, int oflags, int devtype, struct proc *p)
}
static int
-pci_close(dev_t dev, int flag, int devtype, struct proc *p)
+pci_close(dev_t dev, int flag, int devtype, struct thread *td)
{
return 0;
}
@@ -167,7 +167,7 @@ pci_conf_match(struct pci_match_conf *matches, int num_matches,
}
static int
-pci_ioctl(dev_t dev, u_long cmd, caddr_t data, int flag, struct proc *p)
+pci_ioctl(dev_t dev, u_long cmd, caddr_t data, int flag, struct thread *td)
{
device_t pci, pcib;
struct pci_io *io;
OpenPOWER on IntegriCloud