Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 48adf0f in mainline


Ignore:
Timestamp:
2017-10-30T18:02:36Z (4 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master
Children:
2b11c3c
Parents:
be1b1e68
Message:

OBIO should take base address from platform driver.

Location:
uspace/drv
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/intctl/obio/obio.c

    rbe1b1e68 r48adf0f  
    119119        int rc;
    120120
    121         base_phys = (uintptr_t) 0x1fe00000000ULL;
    122 
    123121        int flags = AS_AREA_READ | AS_AREA_WRITE;
    124         int retval = physmem_map(base_phys,
     122        int retval = physmem_map(res->base,
    125123            ALIGN_UP(OBIO_SIZE, PAGE_SIZE) >> PAGE_WIDTH, flags,
    126124            (void *) &base_virt);
  • uspace/drv/platform/sun4u/sun4u.c

    rbe1b1e68 r48adf0f  
    6868#define PBM_PCI_MEM_SIZE        UINT64_C(0x00100000000)
    6969
     70#define PBM_OBIO_BASE           UINT64_C(0)
     71#define PBM_OBIO_SIZE           UINT64_C(0x1898)
     72
     73
    7074typedef struct sun4u_fun {
    7175        hw_resource_list_t hw_resources;
     
    9195                .type = MEM_RANGE,
    9296                .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,
    9599                        .relative = false,
    96100                        .endianness = LITTLE_ENDIAN
     
    106110        .pio_window = {
    107111                .mem = {
    108                         .base = PBM_BASE + PBM_PCI_MEM_BASE,
    109                         .size = PBM_PCI_MEM_SIZE
     112                        .base = PBM_BASE + PBM_OBIO_BASE,
     113                        .size = PBM_OBIO_SIZE
    110114                }
    111115        }
Note: See TracChangeset for help on using the changeset viewer.