Changeset cd50486 in mainline for uspace/srv/hw/char/i8042/i8042.c
- Timestamp:
- 2011-02-06T22:03:55Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 25971d2
- Parents:
- 1110ebd (diff), 960ff451 (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/char/i8042/i8042.c
r1110ebd rcd50486 40 40 #include <libarch/ddi.h> 41 41 #include <devmap.h> 42 #include <ipc/ipc.h>43 42 #include <async.h> 44 43 #include <unistd.h> … … 199 198 i8042_kbd.cmds[0].addr = (void *) &((i8042_t *) i8042_kernel)->status; 200 199 i8042_kbd.cmds[3].addr = (void *) &((i8042_t *) i8042_kernel)->data; 201 ipc_register_irq(inr_a, device_assign_devno(), 0, &i8042_kbd);202 ipc_register_irq(inr_b, device_assign_devno(), 0, &i8042_kbd);200 register_irq(inr_a, device_assign_devno(), 0, &i8042_kbd); 201 register_irq(inr_b, device_assign_devno(), 0, &i8042_kbd); 203 202 printf("%s: registered for interrupts %" PRIun " and %" PRIun "\n", 204 203 NAME, inr_a, inr_b); … … 236 235 237 236 if (dev_id < 0) { 238 ipc_answer_0(iid, EINVAL);237 async_answer_0(iid, EINVAL); 239 238 return; 240 239 } 241 240 242 241 /* Answer the IPC_M_CONNECT_ME_TO call. */ 243 ipc_answer_0(iid, EOK);242 async_answer_0(iid, EOK); 244 243 245 244 printf(NAME ": accepted connection\n"); … … 251 250 case IPC_M_PHONE_HUNGUP: 252 251 /* The other side has hung up. */ 253 ipc_answer_0(callid, EOK);252 async_answer_0(callid, EOK); 254 253 return; 255 254 case IPC_M_CONNECT_TO_ME: … … 272 271 break; 273 272 } 274 ipc_answer_0(callid, retval);273 async_answer_0(callid, retval); 275 274 } 276 275 }
Note:
See TracChangeset
for help on using the changeset viewer.