ofw_pcibus.c (71e3c3083b47ad0f04322c5a1173377433c05a6e) | ofw_pcibus.c (bfed756af67e4b84d61b4b8af4d0a103ddd6f628) |
---|---|
1/*- 2 * SPDX-License-Identifier: BSD-2-Clause-FreeBSD 3 * 4 * Copyright (c) 1997, Stefan Esser <se@freebsd.org> 5 * Copyright (c) 2000, Michael Smith <msmith@freebsd.org> 6 * Copyright (c) 2000, BSDi 7 * Copyright (c) 2003, Thomas Moestl <tmm@FreeBSD.org> 8 * All rights reserved. --- 86 unchanged lines hidden (view full) --- 95 96 DEVMETHOD_END 97}; 98 99static devclass_t pci_devclass; 100 101DEFINE_CLASS_1(pci, ofw_pcibus_driver, ofw_pcibus_methods, 102 sizeof(struct pci_softc), pci_driver); | 1/*- 2 * SPDX-License-Identifier: BSD-2-Clause-FreeBSD 3 * 4 * Copyright (c) 1997, Stefan Esser <se@freebsd.org> 5 * Copyright (c) 2000, Michael Smith <msmith@freebsd.org> 6 * Copyright (c) 2000, BSDi 7 * Copyright (c) 2003, Thomas Moestl <tmm@FreeBSD.org> 8 * All rights reserved. --- 86 unchanged lines hidden (view full) --- 95 96 DEVMETHOD_END 97}; 98 99static devclass_t pci_devclass; 100 101DEFINE_CLASS_1(pci, ofw_pcibus_driver, ofw_pcibus_methods, 102 sizeof(struct pci_softc), pci_driver); |
103DRIVER_MODULE(ofw_pcibus, pcib, ofw_pcibus_driver, pci_devclass, 0, 0); | 103EARLY_DRIVER_MODULE(ofw_pcibus, pcib, ofw_pcibus_driver, pci_devclass, 0, 0, 104 BUS_PASS_BUS); |
104MODULE_VERSION(ofw_pcibus, 1); 105MODULE_DEPEND(ofw_pcibus, pci, 1, 1, 1); 106 107static int ofw_devices_only = 0; 108TUNABLE_INT("hw.pci.ofw_devices_only", &ofw_devices_only); 109 110static int 111ofw_pcibus_probe(device_t dev) --- 272 unchanged lines hidden --- | 105MODULE_VERSION(ofw_pcibus, 1); 106MODULE_DEPEND(ofw_pcibus, pci, 1, 1, 1); 107 108static int ofw_devices_only = 0; 109TUNABLE_INT("hw.pci.ofw_devices_only", &ofw_devices_only); 110 111static int 112ofw_pcibus_probe(device_t dev) --- 272 unchanged lines hidden --- |