Changeset 132ab5d1 in mainline for uspace/drv/bus/adb/cuda_adb/cuda_adb.c
- Timestamp:
- 2018-01-30T03:20:45Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 5a6cc679
- Parents:
- 8bfb163 (diff), 6a5d05b (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
-
uspace/drv/bus/adb/cuda_adb/cuda_adb.c (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/adb/cuda_adb/cuda_adb.c
r8bfb163 r132ab5d1 46 46 #include <stdbool.h> 47 47 #include <stddef.h> 48 #include <sysinfo.h>49 48 #include <stdint.h> 50 49 #include <stdio.h> … … 58 57 static void cuda_dev_connection(ipc_callid_t, ipc_call_t *, void *); 59 58 static int cuda_init(cuda_t *); 60 static void cuda_irq_handler(ipc_call id_t, ipc_call_t *, void *);59 static void cuda_irq_handler(ipc_call_t *, void *); 61 60 62 61 static void cuda_irq_listen(cuda_t *); … … 109 108 }; 110 109 111 static int cuda_dev_create(cuda_t *cuda, const char *name, adb_dev_t **rdev) 110 static int cuda_dev_create(cuda_t *cuda, const char *name, const char *id, 111 adb_dev_t **rdev) 112 112 { 113 113 adb_dev_t *dev = NULL; … … 115 115 int rc; 116 116 117 fun = ddf_fun_create(cuda->dev, fun_ exposed, name);117 fun = ddf_fun_create(cuda->dev, fun_inner, name); 118 118 if (fun == NULL) { 119 119 ddf_msg(LVL_ERROR, "Failed creating function '%s'.", name); 120 rc = ENOMEM; 121 goto error; 122 } 123 124 rc = ddf_fun_add_match_id(fun, id, 10); 125 if (rc != EOK) { 126 ddf_msg(LVL_ERROR, "Failed adding match ID."); 120 127 rc = ENOMEM; 121 128 goto error; … … 156 163 cuda->phys_base = res->base; 157 164 158 rc = cuda_dev_create(cuda, "kbd", &kbd);165 rc = cuda_dev_create(cuda, "kbd", "adb/keyboard", &kbd); 159 166 if (rc != EOK) 160 167 goto error; 161 168 162 rc = cuda_dev_create(cuda, "mouse", &mouse);169 rc = cuda_dev_create(cuda, "mouse", "adb/mouse", &mouse); 163 170 if (rc != EOK) 164 171 goto error; … … 245 252 cuda_irq_code.cmds[0].addr = (void *) &((cuda_regs_t *) 246 253 cuda->phys_base)->ifr; 247 async_irq_subscribe(10, cuda_irq_handler, cuda, &cuda_irq_code );254 async_irq_subscribe(10, cuda_irq_handler, cuda, &cuda_irq_code, NULL); 248 255 249 256 /* Enable SR interrupt. */ … … 257 264 } 258 265 259 static void cuda_irq_handler(ipc_call id_t iid, ipc_call_t *call, void *arg)266 static void cuda_irq_handler(ipc_call_t *call, void *arg) 260 267 { 261 268 uint8_t rbuf[CUDA_RCV_BUF_SIZE];
Note:
See TracChangeset
for help on using the changeset viewer.
