Changeset a46e56b in mainline for uspace/drv/intctl/i8259/i8259.c
- Timestamp:
- 2018-03-22T06:49:35Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 77f0a1d
- Parents:
- 3e242d2
- git-author:
- Jakub Jermar <jakub@…> (2018-03-21 23:29:06)
- git-committer:
- Jakub Jermar <jakub@…> (2018-03-22 06:49:35)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/intctl/i8259/i8259.c
r3e242d2 ra46e56b 93 93 * @param arg Local argument. 94 94 */ 95 static void i8259_connection(cap_call_handle_t i id, ipc_call_t *icall, void *arg)96 { 97 cap_call_handle_t c allid;95 static void i8259_connection(cap_call_handle_t icall_handle, ipc_call_t *icall, void *arg) 96 { 97 cap_call_handle_t chandle; 98 98 ipc_call_t call; 99 99 i8259_t *i8259 = NULL /* XXX */; … … 102 102 * Answer the first IPC_M_CONNECT_ME_TO call. 103 103 */ 104 async_answer_0(i id, EOK);104 async_answer_0(icall_handle, EOK); 105 105 106 106 i8259 = (i8259_t *)ddf_dev_data_get(ddf_fun_get_dev((ddf_fun_t *)arg)); 107 107 108 108 while (true) { 109 c allid= async_get_call(&call);109 chandle = async_get_call(&call); 110 110 111 111 if (!IPC_GET_IMETHOD(call)) { 112 112 /* The other side has hung up. */ 113 async_answer_0(c allid, EOK);113 async_answer_0(chandle, EOK); 114 114 return; 115 115 } … … 117 117 switch (IPC_GET_IMETHOD(call)) { 118 118 case IRC_ENABLE_INTERRUPT: 119 async_answer_0(c allid, pic_enable_irq(i8259,119 async_answer_0(chandle, pic_enable_irq(i8259, 120 120 IPC_GET_ARG1(call))); 121 121 break; 122 122 case IRC_DISABLE_INTERRUPT: 123 123 /* XXX TODO */ 124 async_answer_0(c allid, EOK);124 async_answer_0(chandle, EOK); 125 125 break; 126 126 case IRC_CLEAR_INTERRUPT: 127 127 /* Noop */ 128 async_answer_0(c allid, EOK);128 async_answer_0(chandle, EOK); 129 129 break; 130 130 default: 131 async_answer_0(c allid, EINVAL);131 async_answer_0(chandle, EINVAL); 132 132 break; 133 133 }
Note:
See TracChangeset
for help on using the changeset viewer.