diff options
author | gallatin <gallatin@FreeBSD.org> | 1999-10-12 22:10:53 +0000 |
---|---|---|
committer | gallatin <gallatin@FreeBSD.org> | 1999-10-12 22:10:53 +0000 |
commit | aaf5afc559ee01cf65d4a7cc2e849052a96534a7 (patch) | |
tree | 1c58bf2d0c15553dbd0c5adecbebbe14db4b5a8e /sys/pci | |
parent | 229cdb91443142db582b7e32098f62f6446c3f3a (diff) | |
download | FreeBSD-src-aaf5afc559ee01cf65d4a7cc2e849052a96534a7.zip FreeBSD-src-aaf5afc559ee01cf65d4a7cc2e849052a96534a7.tar.gz |
allow pci_ioctl to work with multi-hose alphas.
Rather than teaching pci_ioctl about hoses, we just pass down a magic number
& let the platform code figure out what the hose is based on what the bus
number is.
concept approved by dfr
Diffstat (limited to 'sys/pci')
-rw-r--r-- | sys/pci/pci.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/pci/pci.c b/sys/pci/pci.c index 4305b6c..bfdf9d0 100644 --- a/sys/pci/pci.c +++ b/sys/pci/pci.c @@ -845,7 +845,7 @@ pci_ioctl(dev_t dev, u_long cmd, caddr_t data, int flag, struct proc *p) case 4: case 2: case 1: - probe.hose = 0; /* XXXXX */ + probe.hose = -1; probe.bus = io->pi_sel.pc_bus; probe.slot = io->pi_sel.pc_dev; probe.func = io->pi_sel.pc_func; @@ -866,7 +866,7 @@ pci_ioctl(dev_t dev, u_long cmd, caddr_t data, int flag, struct proc *p) case 4: case 2: case 1: - probe.hose = 0; /* XXXXX */ + probe.hose = -1; probe.bus = io->pi_sel.pc_bus; probe.slot = io->pi_sel.pc_dev; probe.func = io->pi_sel.pc_func; |