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