Changeset fdbc3ff in mainline for uspace/srv/hw/bus/cuda_adb/cuda_adb.c
- Timestamp:
- 2010-11-19T23:50:06Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 46d4d9f
- Parents:
- b4c9c61 (diff), a9c6b966 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hw/bus/cuda_adb/cuda_adb.c
rb4c9c61 rfdbc3ff 143 143 int main(int argc, char *argv[]) 144 144 { 145 dev _handle_t dev_handle;145 devmap_handle_t devmap_handle; 146 146 int rc; 147 147 int i; … … 151 151 for (i = 0; i < ADB_MAX_ADDR; ++i) { 152 152 adb_dev[i].client_phone = -1; 153 adb_dev[i].dev _handle = 0;153 adb_dev[i].devmap_handle = 0; 154 154 } 155 155 … … 160 160 } 161 161 162 rc = devmap_device_register("adb/kbd", &dev _handle);162 rc = devmap_device_register("adb/kbd", &devmap_handle); 163 163 if (rc != EOK) { 164 164 devmap_hangup_phone(DEVMAP_DRIVER); … … 167 167 } 168 168 169 adb_dev[2].dev _handle = dev_handle;170 adb_dev[8].dev _handle = dev_handle;171 172 rc = devmap_device_register("adb/mouse", &dev _handle);169 adb_dev[2].devmap_handle = devmap_handle; 170 adb_dev[8].devmap_handle = devmap_handle; 171 172 rc = devmap_device_register("adb/mouse", &devmap_handle); 173 173 if (rc != EOK) { 174 174 devmap_hangup_phone(DEVMAP_DRIVER); … … 177 177 } 178 178 179 adb_dev[9].dev _handle = dev_handle;179 adb_dev[9].devmap_handle = devmap_handle; 180 180 181 181 if (cuda_init() < 0) { … … 196 196 ipc_call_t call; 197 197 ipcarg_t method; 198 dev _handle_t dh;198 devmap_handle_t dh; 199 199 int retval; 200 200 int dev_addr, i; … … 206 206 dev_addr = -1; 207 207 for (i = 0; i < ADB_MAX_ADDR; i++) { 208 if (adb_dev[i].dev _handle == dh)208 if (adb_dev[i].devmap_handle == dh) 209 209 dev_addr = i; 210 210 } … … 237 237 */ 238 238 for (i = 0; i < ADB_MAX_ADDR; ++i) { 239 if (adb_dev[i].dev _handle == dh) {239 if (adb_dev[i].devmap_handle == dh) { 240 240 adb_dev[i].client_phone = IPC_GET_ARG5(call); 241 241 }
Note:
See TracChangeset
for help on using the changeset viewer.