Changeset a46e56b in mainline for uspace/drv/intctl
- 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)
- Location:
- uspace/drv/intctl
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/intctl/apic/apic.c
r3e242d2 ra46e56b 164 164 * @param arg Local argument. 165 165 */ 166 static void apic_connection(cap_call_handle_t i id, ipc_call_t *icall, void *arg)167 { 168 cap_call_handle_t c allid;166 static void apic_connection(cap_call_handle_t icall_handle, ipc_call_t *icall, void *arg) 167 { 168 cap_call_handle_t chandle; 169 169 ipc_call_t call; 170 170 apic_t *apic; … … 173 173 * Answer the first IPC_M_CONNECT_ME_TO call. 174 174 */ 175 async_answer_0(i id, EOK);175 async_answer_0(icall_handle, EOK); 176 176 177 177 apic = (apic_t *)ddf_dev_data_get(ddf_fun_get_dev((ddf_fun_t *)arg)); 178 178 179 179 while (true) { 180 c allid= async_get_call(&call);180 chandle = async_get_call(&call); 181 181 182 182 if (!IPC_GET_IMETHOD(call)) { 183 183 /* The other side has hung up. */ 184 async_answer_0(c allid, EOK);184 async_answer_0(chandle, EOK); 185 185 return; 186 186 } … … 188 188 switch (IPC_GET_IMETHOD(call)) { 189 189 case IRC_ENABLE_INTERRUPT: 190 async_answer_0(c allid, apic_enable_irq(apic,190 async_answer_0(chandle, apic_enable_irq(apic, 191 191 IPC_GET_ARG1(call))); 192 192 break; 193 193 case IRC_DISABLE_INTERRUPT: 194 194 /* XXX TODO */ 195 async_answer_0(c allid, EOK);195 async_answer_0(chandle, EOK); 196 196 break; 197 197 case IRC_CLEAR_INTERRUPT: 198 198 /* Noop */ 199 async_answer_0(c allid, EOK);199 async_answer_0(chandle, EOK); 200 200 break; 201 201 default: 202 async_answer_0(c allid, EINVAL);202 async_answer_0(chandle, EINVAL); 203 203 break; 204 204 } -
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 } -
uspace/drv/intctl/icp-ic/icp-ic.c
r3e242d2 ra46e56b 69 69 * @param arg Local argument. 70 70 */ 71 static void icpic_connection(cap_call_handle_t i id, ipc_call_t *icall, void *arg)71 static void icpic_connection(cap_call_handle_t icall_handle, ipc_call_t *icall, void *arg) 72 72 { 73 cap_call_handle_t c allid;73 cap_call_handle_t chandle; 74 74 ipc_call_t call; 75 75 icpic_t *icpic; … … 78 78 * Answer the first IPC_M_CONNECT_ME_TO call. 79 79 */ 80 async_answer_0(i id, EOK);80 async_answer_0(icall_handle, EOK); 81 81 82 82 icpic = (icpic_t *)ddf_dev_data_get(ddf_fun_get_dev((ddf_fun_t *)arg)); 83 83 84 84 while (true) { 85 c allid= async_get_call(&call);85 chandle = async_get_call(&call); 86 86 87 87 if (!IPC_GET_IMETHOD(call)) { 88 88 /* The other side has hung up. */ 89 async_answer_0(c allid, EOK);89 async_answer_0(chandle, EOK); 90 90 return; 91 91 } … … 93 93 switch (IPC_GET_IMETHOD(call)) { 94 94 case IRC_ENABLE_INTERRUPT: 95 async_answer_0(c allid,95 async_answer_0(chandle, 96 96 icpic_enable_irq(icpic, IPC_GET_ARG1(call))); 97 97 break; 98 98 case IRC_DISABLE_INTERRUPT: 99 99 /* XXX TODO */ 100 async_answer_0(c allid, EOK);100 async_answer_0(chandle, EOK); 101 101 break; 102 102 case IRC_CLEAR_INTERRUPT: 103 103 /* Noop */ 104 async_answer_0(c allid, EOK);104 async_answer_0(chandle, EOK); 105 105 break; 106 106 default: 107 async_answer_0(c allid, EINVAL);107 async_answer_0(chandle, EINVAL); 108 108 break; 109 109 } -
uspace/drv/intctl/obio/obio.c
r3e242d2 ra46e56b 73 73 * @param arg Local argument. 74 74 */ 75 static void obio_connection(cap_call_handle_t i id, ipc_call_t *icall, void *arg)75 static void obio_connection(cap_call_handle_t icall_handle, ipc_call_t *icall, void *arg) 76 76 { 77 cap_call_handle_t c allid;77 cap_call_handle_t chandle; 78 78 ipc_call_t call; 79 79 obio_t *obio; … … 82 82 * Answer the first IPC_M_CONNECT_ME_TO call. 83 83 */ 84 async_answer_0(i id, EOK);84 async_answer_0(icall_handle, EOK); 85 85 86 86 obio = (obio_t *)ddf_dev_data_get(ddf_fun_get_dev((ddf_fun_t *)arg)); … … 89 89 int inr; 90 90 91 c allid= async_get_call(&call);91 chandle = async_get_call(&call); 92 92 switch (IPC_GET_IMETHOD(call)) { 93 93 case IRC_ENABLE_INTERRUPT: … … 95 95 pio_set_64(&obio->regs[OBIO_IMR(inr & INO_MASK)], 96 96 1UL << 31, 0); 97 async_answer_0(c allid, EOK);97 async_answer_0(chandle, EOK); 98 98 break; 99 99 case IRC_DISABLE_INTERRUPT: 100 100 /* XXX TODO */ 101 async_answer_0(c allid, EOK);101 async_answer_0(chandle, EOK); 102 102 break; 103 103 case IRC_CLEAR_INTERRUPT: 104 104 inr = IPC_GET_ARG1(call); 105 105 pio_write_64(&obio->regs[OBIO_CIR(inr & INO_MASK)], 0); 106 async_answer_0(c allid, EOK);106 async_answer_0(chandle, EOK); 107 107 break; 108 108 default: 109 async_answer_0(c allid, EINVAL);109 async_answer_0(chandle, EINVAL); 110 110 break; 111 111 }
Note:
See TracChangeset
for help on using the changeset viewer.