Changeset View
Changeset View
Standalone View
Standalone View
head/sys/mips/idt/idtpci.c
Show First 20 Lines • Show All 269 Lines • ▼ Show 20 Lines | #endif | ||||
sc->sc_irq_rman.rm_type = RMAN_ARRAY; | sc->sc_irq_rman.rm_type = RMAN_ARRAY; | ||||
sc->sc_irq_rman.rm_descr = "IDTPCI PCI IRQs"; | sc->sc_irq_rman.rm_descr = "IDTPCI PCI IRQs"; | ||||
if (rman_init(&sc->sc_irq_rman) != 0 || | if (rman_init(&sc->sc_irq_rman) != 0 || | ||||
rman_manage_region(&sc->sc_irq_rman, PCI_IRQ_BASE, | rman_manage_region(&sc->sc_irq_rman, PCI_IRQ_BASE, | ||||
PCI_IRQ_END) != 0) | PCI_IRQ_END) != 0) | ||||
panic("idtpci_attach: failed to set up IRQ rman"); | panic("idtpci_attach: failed to set up IRQ rman"); | ||||
device_add_child(dev, "pci", busno); | device_add_child(dev, "pci", -1); | ||||
return (bus_generic_attach(dev)); | return (bus_generic_attach(dev)); | ||||
} | } | ||||
static int | static int | ||||
idtpci_maxslots(device_t dev) | idtpci_maxslots(device_t dev) | ||||
{ | { | ||||
return (PCI_SLOTMAX); | return (PCI_SLOTMAX); | ||||
▲ Show 20 Lines • Show All 271 Lines • Show Last 20 Lines |