Changeset 48adf0f in mainline
- Timestamp:
- 2017-10-30T18:02:36Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 2b11c3c
- Parents:
- be1b1e68
- Location:
- uspace/drv
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/intctl/obio/obio.c
rbe1b1e68 r48adf0f 119 119 int rc; 120 120 121 base_phys = (uintptr_t) 0x1fe00000000ULL;122 123 121 int flags = AS_AREA_READ | AS_AREA_WRITE; 124 int retval = physmem_map( base_phys,122 int retval = physmem_map(res->base, 125 123 ALIGN_UP(OBIO_SIZE, PAGE_SIZE) >> PAGE_WIDTH, flags, 126 124 (void *) &base_virt); -
uspace/drv/platform/sun4u/sun4u.c
rbe1b1e68 r48adf0f 68 68 #define PBM_PCI_MEM_SIZE UINT64_C(0x00100000000) 69 69 70 #define PBM_OBIO_BASE UINT64_C(0) 71 #define PBM_OBIO_SIZE UINT64_C(0x1898) 72 73 70 74 typedef struct sun4u_fun { 71 75 hw_resource_list_t hw_resources; … … 91 95 .type = MEM_RANGE, 92 96 .res.mem_range = { 93 .address = PBM_BASE + PBM_ PCI_CONFIG_BASE,94 .size = PBM_ PCI_CONFIG_SIZE,97 .address = PBM_BASE + PBM_OBIO_BASE, 98 .size = PBM_OBIO_SIZE, 95 99 .relative = false, 96 100 .endianness = LITTLE_ENDIAN … … 106 110 .pio_window = { 107 111 .mem = { 108 .base = PBM_BASE + PBM_ PCI_MEM_BASE,109 .size = PBM_ PCI_MEM_SIZE112 .base = PBM_BASE + PBM_OBIO_BASE, 113 .size = PBM_OBIO_SIZE 110 114 } 111 115 }
Note:
See TracChangeset
for help on using the changeset viewer.