Changeset f834dd81 in mainline for uspace/drv/platform/sun4u/sun4u.c


Ignore:
Timestamp:
2017-10-31T19:24:58Z (8 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
3654684
Parents:
eca820c (diff), 2b11c3c (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge OBIO DDF conversion.

File:
1 edited

Legend:

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

    reca820c rf834dd81  
    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;
     
    8589        .name = NAME,
    8690        .driver_ops = &sun4u_ops
     91};
     92
     93static hw_resource_t obio_res[] = {
     94        {
     95                .type = MEM_RANGE,
     96                .res.mem_range = {
     97                        .address = PBM_BASE + PBM_OBIO_BASE,
     98                        .size = PBM_OBIO_SIZE,
     99                        .relative = false,
     100                        .endianness = LITTLE_ENDIAN
     101                }
     102        }
     103};
     104
     105static sun4u_fun_t obio_data = {
     106        .hw_resources = {
     107                .count = sizeof(obio_res) / sizeof(obio_res[0]),
     108                .resources = obio_res
     109        },
     110        .pio_window = {
     111                .mem = {
     112                        .base = PBM_BASE + PBM_OBIO_BASE,
     113                        .size = PBM_OBIO_SIZE
     114                }
     115        }
    87116};
    88117
     
    201230static bool sun4u_add_functions(ddf_dev_t *dev)
    202231{
     232        if (!sun4u_add_fun(dev, "obio", "ebus/obio", &obio_data))
     233                return false;
     234
    203235        return sun4u_add_fun(dev, "pci0", "intel_pci", &pci_data);
    204236}
Note: See TracChangeset for help on using the changeset viewer.