Changeset View
Changeset View
Standalone View
Standalone View
sys/x86/x86/nexus.c
Show First 20 Lines • Show All 256 Lines • ▼ Show 20 Lines | #endif | ||||
port_rman.rm_end = 0xffff; | port_rman.rm_end = 0xffff; | ||||
port_rman.rm_type = RMAN_ARRAY; | port_rman.rm_type = RMAN_ARRAY; | ||||
port_rman.rm_descr = "I/O ports"; | port_rman.rm_descr = "I/O ports"; | ||||
if (rman_init(&port_rman) | if (rman_init(&port_rman) | ||||
|| rman_manage_region(&port_rman, 0, 0xffff)) | || rman_manage_region(&port_rman, 0, 0xffff)) | ||||
panic("nexus_init_resources port_rman"); | panic("nexus_init_resources port_rman"); | ||||
mem_rman.rm_start = 0; | mem_rman.rm_start = 0; | ||||
mem_rman.rm_end = ~0ul; | #ifndef PAE | ||||
mem_rman.rm_end = BUS_SPACE_MAXADDR; | |||||
#else | |||||
mem_rman.rm_end = ((1ULL << cpu_maxphyaddr) - 1); | |||||
#endif | |||||
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, ~0)) | || rman_manage_region(&mem_rman, 0, mem_rman.rm_end)) | ||||
panic("nexus_init_resources mem_rman"); | panic("nexus_init_resources mem_rman"); | ||||
} | } | ||||
static int | static int | ||||
nexus_attach(device_t dev) | nexus_attach(device_t dev) | ||||
{ | { | ||||
nexus_init_resources(); | nexus_init_resources(); | ||||
▲ Show 20 Lines • Show All 553 Lines • Show Last 20 Lines |