Changes in uspace/drv/platform/sun4u/sun4u.c [48adf0f:cccd60c3] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/platform/sun4u/sun4u.c
r48adf0f rcccd60c3 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 74 70 typedef struct sun4u_fun { 75 71 hw_resource_list_t hw_resources; … … 89 85 .name = NAME, 90 86 .driver_ops = &sun4u_ops 91 };92 93 static 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_ENDIAN101 }102 }103 };104 105 static sun4u_fun_t obio_data = {106 .hw_resources = {107 .count = sizeof(obio_res) / sizeof(obio_res[0]),108 .resources = obio_res109 },110 .pio_window = {111 .mem = {112 .base = PBM_BASE + PBM_OBIO_BASE,113 .size = PBM_OBIO_SIZE114 }115 }116 87 }; 117 88 … … 230 201 static bool sun4u_add_functions(ddf_dev_t *dev) 231 202 { 232 if (!sun4u_add_fun(dev, "obio", "ebus/obio", &obio_data))233 return false;234 235 203 return sun4u_add_fun(dev, "pci0", "intel_pci", &pci_data); 236 204 }
Note:
See TracChangeset
for help on using the changeset viewer.