Changeset 54861ca in mainline


Ignore:
Timestamp:
2016-10-31T23:16:37Z (7 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
340513c
Parents:
6c34be69
Message:

Define sun4u's pci_conf_regs absolute

We need to pass precise PCI memory and IO ranges to the pci driver,
so pci_conf_regs cannot be relative.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/platform/sun4u/sun4u.c

    r6c34be69 r54861ca  
    5959#define PBM_SIZE                UINT64_C(0x00200000000)
    6060
    61 #define PBM_PCI_CONFIG_OFFSET   UINT64_C(0x00001000000)
     61#define PBM_PCI_CONFIG_BASE     UINT64_C(0x00001000000)
    6262#define PBM_PCI_CONFIG_SIZE     UINT64_C(0x00001000000)
     63
     64#define PBM_PCI_IO_BASE         UINT64_C(0x00002000000)
     65#define PBM_PCI_IO_SIZE         UINT64_C(0x00001000000)
     66
     67#define PBM_PCI_MEM_BASE        UINT64_C(0x00100000000)
     68#define PBM_PCI_MEM_SIZE        UINT64_C(0x00100000000)
    6369
    6470typedef struct sun4u_fun {
     
    8591                .type = MEM_RANGE,
    8692                .res.mem_range = {
    87                         .address = PBM_PCI_CONFIG_OFFSET,
     93                        .address = PBM_BASE + PBM_PCI_CONFIG_BASE,
    8894                        .size = PBM_PCI_CONFIG_SIZE,
    89                         .relative = true,
     95                        .relative = false,
    9096                        .endianness = LITTLE_ENDIAN
    9197                }
     
    100106        .pio_window = {
    101107                .mem = {
    102                         .base = PBM_BASE,
    103                         .size = PBM_SIZE
     108                        .base = PBM_BASE + PBM_PCI_MEM_BASE,
     109                        .size = PBM_PCI_MEM_SIZE
    104110                },
    105111                .io = {
    106                         .base = PBM_BASE,
    107                         .size = PBM_SIZE
     112                        .base = PBM_BASE + PBM_PCI_IO_BASE,
     113                        .size = PBM_PCI_IO_SIZE
    108114                }
    109115        }
Note: See TracChangeset for help on using the changeset viewer.