Changeset View
Changeset View
Standalone View
Standalone View
sys/arm64/arm64/nexus.c
Show First 20 Lines • Show All 157 Lines • ▼ Show 20 Lines | static driver_t nexus_driver = { | ||||
1 /* no softc */ | 1 /* no softc */ | ||||
}; | }; | ||||
static int | static int | ||||
nexus_attach(device_t dev) | nexus_attach(device_t dev) | ||||
{ | { | ||||
mem_rman.rm_start = 0; | mem_rman.rm_start = 0; | ||||
mem_rman.rm_end = BUS_SPACE_MAXADDR; | mem_rman.rm_end = get_physaddr_max(); | ||||
mem_rman.rm_type = RMAN_ARRAY; | mem_rman.rm_type = RMAN_ARRAY; | ||||
mem_rman.rm_descr = "I/O memory addresses"; | mem_rman.rm_descr = "I/O memory addresses"; | ||||
if (rman_init(&mem_rman) || | if (rman_init(&mem_rman) || | ||||
rman_manage_region(&mem_rman, 0, BUS_SPACE_MAXADDR)) | rman_manage_region(&mem_rman, 0, mem_rman.rm_end)) | ||||
panic("nexus_attach mem_rman"); | panic("nexus_attach mem_rman"); | ||||
irq_rman.rm_start = 0; | irq_rman.rm_start = 0; | ||||
irq_rman.rm_end = ~0; | irq_rman.rm_end = ~0; | ||||
irq_rman.rm_type = RMAN_ARRAY; | irq_rman.rm_type = RMAN_ARRAY; | ||||
irq_rman.rm_descr = "Interrupts"; | irq_rman.rm_descr = "Interrupts"; | ||||
if (rman_init(&irq_rman) || rman_manage_region(&irq_rman, 0, ~0)) | if (rman_init(&irq_rman) || rman_manage_region(&irq_rman, 0, ~0)) | ||||
panic("nexus_attach irq_rman"); | panic("nexus_attach irq_rman"); | ||||
▲ Show 20 Lines • Show All 420 Lines • Show Last 20 Lines |