Changeset a416d070 in mainline for uspace/drv/platform/icp/icp.c
- Timestamp:
- 2017-10-16T15:50:37Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 95c675b, b446b02
- Parents:
- 1974f56a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/platform/icp/icp.c
r1974f56a ra416d070 54 54 icp_kbd_irq = 3, 55 55 icp_mouse_base = 0x19000000, 56 icp_mouse_irq = 4 56 icp_mouse_irq = 4, 57 icp_ic_base = 0x14000000 57 58 }; 58 59 … … 108 109 }; 109 110 111 static hw_resource_t icp_ic_res[] = { 112 { 113 .type = MEM_RANGE, 114 .res.mem_range = { 115 .address = icp_ic_base, 116 .size = 40, 117 .relative = false, 118 .endianness = LITTLE_ENDIAN 119 } 120 } 121 }; 122 110 123 static pio_window_t icp_pio_window = { 111 124 .mem = { … … 126 139 sizeof(icp_mouse_res) / sizeof(icp_mouse_res[0]), 127 140 icp_mouse_res 141 }, 142 }; 143 144 static icp_fun_t icp_ic_fun_proto = { 145 .hw_resources = { 146 sizeof(icp_ic_res) / sizeof(icp_ic_res[0]), 147 icp_ic_res 128 148 }, 129 149 }; … … 267 287 return rc; 268 288 289 rc = icp_add_fun(dev, "intctl", "integratorcp/intctl", 290 &icp_ic_fun_proto); 291 if (rc != EOK) 292 return rc; 293 269 294 return EOK; 270 295 }
Note:
See TracChangeset
for help on using the changeset viewer.