From da7ca2d9bde4ef7ac92e08747c2ff60ad5ccf0aa Mon Sep 17 00:00:00 2001 From: Andrew Gallatin Date: Tue, 12 Oct 1999 22:10:53 +0000 Subject: 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 --- sys/dev/pci/pci.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/dev') diff --git a/sys/dev/pci/pci.c b/sys/dev/pci/pci.c index 4305b6cfd81bc..bfdf9d0452e0a 100644 --- a/sys/dev/pci/pci.c +++ b/sys/dev/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; -- cgit v1.3