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


Ignore:
Timestamp:
2017-10-24T10:10:00Z (8 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
48adf0f
Parents:
cc92076
Message:

Enumerate OBIO by DDF.

File:
1 edited

Legend:

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

    rcc92076 rbe1b1e68  
    8585        .name = NAME,
    8686        .driver_ops = &sun4u_ops
     87};
     88
     89static hw_resource_t obio_res[] = {
     90        {
     91                .type = MEM_RANGE,
     92                .res.mem_range = {
     93                        .address = PBM_BASE + PBM_PCI_CONFIG_BASE,
     94                        .size = PBM_PCI_CONFIG_SIZE,
     95                        .relative = false,
     96                        .endianness = LITTLE_ENDIAN
     97                }
     98        }
     99};
     100
     101static sun4u_fun_t obio_data = {
     102        .hw_resources = {
     103                .count = sizeof(obio_res) / sizeof(obio_res[0]),
     104                .resources = obio_res
     105        },
     106        .pio_window = {
     107                .mem = {
     108                        .base = PBM_BASE + PBM_PCI_MEM_BASE,
     109                        .size = PBM_PCI_MEM_SIZE
     110                }
     111        }
    87112};
    88113
     
    201226static bool sun4u_add_functions(ddf_dev_t *dev)
    202227{
     228        if (!sun4u_add_fun(dev, "obio", "ebus/obio", &obio_data))
     229                return false;
     230
    203231        return sun4u_add_fun(dev, "pci0", "intel_pci", &pci_data);
    204232}
Note: See TracChangeset for help on using the changeset viewer.