MCPcopy Create free account
hub / github.com/F-Stack/f-stack / nexus_attach

Function nexus_attach

freebsd/arm64/arm64/nexus.c:158–180  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

156};
157
158static int
159nexus_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
182static int
183nexus_print_child(device_t bus, device_t child)

Callers 2

nexus_fdt_attachFunction · 0.70
nexus_acpi_attachFunction · 0.70

Calls 5

rman_initFunction · 0.85
rman_manage_regionFunction · 0.85
bus_generic_probeFunction · 0.85
bus_generic_attachFunction · 0.85
panicFunction · 0.50

Tested by

no test coverage detected