Changes in uspace/drv/infrastructure/rootpc/rootpc.c [26bc0fd1:3e6a98c5] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/infrastructure/rootpc/rootpc.c
r26bc0fd1 r3e6a98c5 51 51 #include <ops/hw_res.h> 52 52 #include <device/hw_res.h> 53 #include <ops/pio_window.h>54 #include <device/pio_window.h>55 53 56 54 #define NAME "rootpc" … … 58 56 typedef struct rootpc_fun { 59 57 hw_resource_list_t hw_resources; 60 pio_window_t pio_window;61 58 } rootpc_fun_t; 62 59 … … 96 93 static rootpc_fun_t pci_data = { 97 94 .hw_resources = { 98 sizeof(pci_conf_regs) /sizeof(pci_conf_regs[0]),95 sizeof(pci_conf_regs)/sizeof(pci_conf_regs[0]), 99 96 pci_conf_regs 100 },101 .pio_window = {102 .mem = {103 .base = UINT32_C(0),104 .size = UINT32_C(0xffffffff) /* practical maximum */105 },106 .io = {107 .base = UINT32_C(0),108 .size = UINT32_C(0x10000)109 }110 97 } 111 98 }; … … 130 117 131 118 return false; 132 }133 134 static pio_window_t *rootpc_get_pio_window(ddf_fun_t *fnode)135 {136 rootpc_fun_t *fun = rootpc_fun(fnode);137 138 assert(fun != NULL);139 return &fun->pio_window;140 119 } 141 120 … … 143 122 .get_resource_list = &rootpc_get_resources, 144 123 .enable_interrupt = &rootpc_enable_interrupt, 145 };146 147 static pio_window_ops_t fun_pio_window_ops = {148 .get_pio_window = &rootpc_get_pio_window149 124 }; 150 125 … … 222 197 ddf_log_init(NAME); 223 198 rootpc_fun_ops.interfaces[HW_RES_DEV_IFACE] = &fun_hw_res_ops; 224 rootpc_fun_ops.interfaces[PIO_WINDOW_DEV_IFACE] = &fun_pio_window_ops;225 199 } 226 200
Note:
See TracChangeset
for help on using the changeset viewer.