Changes in uspace/srv/hw/char/i8042/i8042.c [ffa2c8ef:7ea7db31] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hw/char/i8042/i8042.c
rffa2c8ef r7ea7db31 40 40 #include <libarch/ddi.h> 41 41 #include <devmap.h> 42 #include <ipc/ipc.h> 42 43 #include <async.h> 43 44 #include <unistd.h> … … 198 199 i8042_kbd.cmds[0].addr = (void *) &((i8042_t *) i8042_kernel)->status; 199 200 i8042_kbd.cmds[3].addr = (void *) &((i8042_t *) i8042_kernel)->data; 200 register_irq(inr_a, device_assign_devno(), 0, &i8042_kbd);201 register_irq(inr_b, device_assign_devno(), 0, &i8042_kbd);201 ipc_register_irq(inr_a, device_assign_devno(), 0, &i8042_kbd); 202 ipc_register_irq(inr_b, device_assign_devno(), 0, &i8042_kbd); 202 203 printf("%s: registered for interrupts %" PRIun " and %" PRIun "\n", 203 204 NAME, inr_a, inr_b); … … 235 236 236 237 if (dev_id < 0) { 237 async_answer_0(iid, EINVAL);238 ipc_answer_0(iid, EINVAL); 238 239 return; 239 240 } 240 241 241 242 /* Answer the IPC_M_CONNECT_ME_TO call. */ 242 async_answer_0(iid, EOK);243 ipc_answer_0(iid, EOK); 243 244 244 245 printf(NAME ": accepted connection\n"); … … 250 251 case IPC_M_PHONE_HUNGUP: 251 252 /* The other side has hung up. */ 252 async_answer_0(callid, EOK);253 ipc_answer_0(callid, EOK); 253 254 return; 254 255 case IPC_M_CONNECT_TO_ME: … … 271 272 break; 272 273 } 273 async_answer_0(callid, retval);274 ipc_answer_0(callid, retval); 274 275 } 275 276 }
Note:
See TracChangeset
for help on using the changeset viewer.