From acabb62791a354df43cf549b5f77374f9db3ff7c Mon Sep 17 00:00:00 2001 From: cgd Date: Mon, 4 Mar 1996 03:29:12 +0000 Subject: [PATCH] the i386 port no longer attaches isa, eisa, and pci at root. --- sys/dev/eisa/files.eisa | 5 ++--- sys/dev/isa/files.isa | 9 ++++----- sys/dev/pci/files.pci | 5 ++--- sys/dev/pci/pci.c | 12 ++++-------- 4 files changed, 12 insertions(+), 19 deletions(-) diff --git a/sys/dev/eisa/files.eisa b/sys/dev/eisa/files.eisa index 0a05c05e1dff..de5e66e755bf 100644 --- a/sys/dev/eisa/files.eisa +++ b/sys/dev/eisa/files.eisa @@ -1,11 +1,10 @@ -# $NetBSD: files.eisa,v 1.5 1996/02/27 22:39:28 cgd Exp $ +# $NetBSD: files.eisa,v 1.6 1996/03/04 03:29:12 cgd Exp $ # # Config.new file and device description for machine-independent EISA code. # Included by ports that need it. Requires that the SCSI files be # defined first. -# XXX should not attach to root -device eisa at eisabus, root {[slot = -1]} +device eisa at eisabus {[slot = -1]} file dev/eisa/eisa.c eisa needs-flag # Adaptec AHA-174x EISA SCSI Host Adapter family diff --git a/sys/dev/isa/files.isa b/sys/dev/isa/files.isa index c595e7564719..4503d626d80d 100644 --- a/sys/dev/isa/files.isa +++ b/sys/dev/isa/files.isa @@ -1,4 +1,4 @@ -# $NetBSD: files.isa,v 1.11 1996/02/28 01:43:45 cgd Exp $ +# $NetBSD: files.isa,v 1.12 1996/03/04 03:29:16 cgd Exp $ # # Config.new file and device description for machine-independent ISA code. # Included by ports that need it. Requires that the SCSI files be @@ -8,10 +8,9 @@ # devices: # mcd, scd, wd, wt -# XXX should not attach to root -device isa at isabus, root {[port = -1], [size = 0], - [iomem = -1], [iosiz = 0], - [irq = -1], [drq = -1]} +device isa at isabus {[port = -1], [size = 0], + [iomem = -1], [iosiz = 0], + [irq = -1], [drq = -1]} file dev/isa/isa.c isa needs-flag # ISA DMA controller diff --git a/sys/dev/pci/files.pci b/sys/dev/pci/files.pci index fe4828bd52fb..b5786cb52fba 100644 --- a/sys/dev/pci/files.pci +++ b/sys/dev/pci/files.pci @@ -1,11 +1,10 @@ -# $NetBSD: files.pci,v 1.11 1996/02/28 01:47:06 cgd Exp $ +# $NetBSD: files.pci,v 1.12 1996/03/04 03:29:19 cgd Exp $ # # Config.new file and device description for machine-independent PCI code. # Included by ports that need it. Requires that the SCSI files be # defined first. -# XXX should not attach to root -device pci at pcibus, root {[dev = -1], [function = -1]} +device pci at pcibus {[dev = -1], [function = -1]} file dev/pci/pci.c pci needs-flag file dev/pci/pci_subr.c pci diff --git a/sys/dev/pci/pci.c b/sys/dev/pci/pci.c index 513d28692a72..e44b9d375756 100644 --- a/sys/dev/pci/pci.c +++ b/sys/dev/pci/pci.c @@ -1,4 +1,4 @@ -/* $NetBSD: pci.c,v 1.11 1996/03/02 02:03:55 cgd Exp $ */ +/* $NetBSD: pci.c,v 1.12 1996/03/04 03:29:20 cgd Exp $ */ /* * Copyright (c) 1995, 1996 Christopher G. Demetriou. All rights reserved. @@ -69,9 +69,6 @@ pcimatch(parent, match, aux) return (0); /* Check the locators */ -#ifdef i386 /* XXX should not be attached at root, but is on i386 */ - if (parent != NULL) -#endif /* i386 XXX */ if (cf->cf_loc[0] != -1 && cf->cf_loc[0] != pba->pba_bus) return (0); @@ -97,10 +94,9 @@ pciattach(parent, self, aux) struct pcibus_attach_args *pba = aux; int maxndevs, device, function, nfunctions; -#ifdef i386 /* XXX should not be attached at root, but is on i386 */ - if (parent == NULL) - printf(": bus %d, configuration mode %d", pba->pba_bus, - pci_mode); +#ifdef i386 /* XXX */ + if (pba->pba_bus == 0) + printf(": configuration mode %d", pci_mode); #endif /* XXX */ printf("\n");