| 156 | }; |
| 157 | |
| 158 | static int |
| 159 | nexus_attach(device_t dev) |
| 160 | { |
| 161 | |
| 162 | mem_rman.rm_start = 0; |
| 163 | mem_rman.rm_end = BUS_SPACE_MAXADDR; |
| 164 | mem_rman.rm_type = RMAN_ARRAY; |
| 165 | mem_rman.rm_descr = "I/O memory addresses"; |
| 166 | if (rman_init(&mem_rman) || |
| 167 | rman_manage_region(&mem_rman, 0, BUS_SPACE_MAXADDR)) |
| 168 | panic("nexus_attach mem_rman"); |
| 169 | irq_rman.rm_start = 0; |
| 170 | irq_rman.rm_end = ~0; |
| 171 | irq_rman.rm_type = RMAN_ARRAY; |
| 172 | irq_rman.rm_descr = "Interrupts"; |
| 173 | if (rman_init(&irq_rman) || rman_manage_region(&irq_rman, 0, ~0)) |
| 174 | panic("nexus_attach irq_rman"); |
| 175 | |
| 176 | bus_generic_probe(dev); |
| 177 | bus_generic_attach(dev); |
| 178 | |
| 179 | return (0); |
| 180 | } |
| 181 | |
| 182 | static int |
| 183 | nexus_print_child(device_t bus, device_t child) |
no test coverage detected