Changeset fafb8e5 in mainline for uspace/drv
- Timestamp:
- 2019-02-06T13:25:12Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 95a47b0
- Parents:
- eb13ef8
- git-author:
- Jiří Zárevúcky <zarevucky.jiri@…> (2019-02-02 14:10:59)
- git-committer:
- Jiří Zárevúcky <zarevucky.jiri@…> (2019-02-06 13:25:12)
- Location:
- uspace/drv
- Files:
-
- 24 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/audio/hdaudio/hdaudio.c
reb13ef8 rfafb8e5 385 385 hda_ctl_interrupt(hda->ctl); 386 386 387 if ( IPC_GET_ARG3(icall) != 0) {387 if (ipc_get_arg3(icall) != 0) { 388 388 /* Buffer completed */ 389 389 hda_lock(hda); -
uspace/drv/block/ahci/ahci.c
reb13ef8 rfafb8e5 897 897 { 898 898 ahci_dev_t *ahci = dev_ahci_dev(dev); 899 unsigned int port = IPC_GET_ARG1(icall);900 ahci_port_is_t pxis = IPC_GET_ARG2(icall);899 unsigned int port = ipc_get_arg1(icall); 900 ahci_port_is_t pxis = ipc_get_arg2(icall); 901 901 902 902 if (port >= AHCI_MAX_PORTS) -
uspace/drv/block/ddisk/ddisk.c
reb13ef8 rfafb8e5 179 179 { 180 180 ddf_msg(LVL_DEBUG, "ddisk_irq_handler(), status=%" PRIx32, 181 (uint32_t) IPC_GET_ARG1(icall));181 (uint32_t) ipc_get_arg1(icall)); 182 182 183 183 ddisk_t *ddisk = (ddisk_t *) ddf_dev_data_get(dev); -
uspace/drv/bus/adb/cuda_adb/cuda_adb.c
reb13ef8 rfafb8e5 208 208 while (true) { 209 209 async_get_call(&call); 210 method = IPC_GET_IMETHOD(&call);210 method = ipc_get_imethod(&call); 211 211 212 212 if (!method) { -
uspace/drv/bus/pci/pciintel/ctl.c
reb13ef8 rfafb8e5 65 65 async_get_call(&call); 66 66 67 if (! IPC_GET_IMETHOD(&call))68 break; 69 70 switch ( IPC_GET_IMETHOD(&call)) {67 if (!ipc_get_imethod(&call)) 68 break; 69 70 switch (ipc_get_imethod(&call)) { 71 71 case PCI_GET_DEVICES: 72 72 pci_ctl_get_devices_srv(bus, &call); … … 140 140 errno_t rc; 141 141 142 dev_handle = IPC_GET_ARG1(icall);142 dev_handle = ipc_get_arg1(icall); 143 143 log_msg(LOG_DEFAULT, LVL_DEBUG, "pci_dev_get_info_srv(%zu)", 144 144 dev_handle); -
uspace/drv/bus/usb/vhc/conndev.c
reb13ef8 rfafb8e5 83 83 return; 84 84 85 size_t len = IPC_GET_ARG2(&data_request_call);85 size_t len = ipc_get_arg2(&data_request_call); 86 86 plugged_device_name[len] = 0; 87 87 } -
uspace/drv/char/i8042/i8042.c
reb13ef8 rfafb8e5 132 132 errno_t rc; 133 133 134 const uint8_t status = IPC_GET_ARG1(call);135 const uint8_t data = IPC_GET_ARG2(call);134 const uint8_t status = ipc_get_arg1(call); 135 const uint8_t data = ipc_get_arg2(call); 136 136 137 137 i8042_port_t *port = (status & i8042_AUX_DATA) ? -
uspace/drv/char/msim-con/msim-con.c
reb13ef8 rfafb8e5 71 71 fibril_mutex_lock(&con->buf_lock); 72 72 73 c = IPC_GET_ARG2(call);73 c = ipc_get_arg2(call); 74 74 rc = circ_buf_push(&con->cbuf, &c); 75 75 if (rc != EOK) -
uspace/drv/char/ns8250/ns8250.c
reb13ef8 rfafb8e5 1080 1080 { 1081 1081 ns8250_t *ns8250 = srv_ns8250(srv); 1082 sysarg_t method = IPC_GET_IMETHOD(call);1082 sysarg_t method = ipc_get_imethod(call); 1083 1083 errno_t ret; 1084 1084 unsigned int baud_rate, parity, word_length, stop_bits; … … 1093 1093 1094 1094 case SERIAL_SET_COM_PROPS: 1095 baud_rate = IPC_GET_ARG1(call);1096 parity = IPC_GET_ARG2(call);1097 word_length = IPC_GET_ARG3(call);1098 stop_bits = IPC_GET_ARG4(call);1095 baud_rate = ipc_get_arg1(call); 1096 parity = ipc_get_arg2(call); 1097 word_length = ipc_get_arg3(call); 1098 stop_bits = ipc_get_arg4(call); 1099 1099 ret = ns8250_set_props(ns8250->dev, baud_rate, parity, word_length, 1100 1100 stop_bits); -
uspace/drv/char/pl050/pl050.c
reb13ef8 rfafb8e5 157 157 } 158 158 159 pl050->buffer[pl050->buf_wp] = IPC_GET_ARG2(call);159 pl050->buffer[pl050->buf_wp] = ipc_get_arg2(call); 160 160 pl050->buf_wp = nidx; 161 161 fibril_condvar_broadcast(&pl050->buf_cv); -
uspace/drv/hid/adb-kbd/adb-kbd.c
reb13ef8 rfafb8e5 141 141 errno_t retval = EOK; 142 142 143 if (! IPC_GET_IMETHOD(&call)) {143 if (!ipc_get_imethod(&call)) { 144 144 async_answer_0(&call, EOK); 145 145 return; 146 146 } 147 147 148 switch ( IPC_GET_IMETHOD(&call)) {148 switch (ipc_get_imethod(&call)) { 149 149 case ADB_REG_NOTIF: 150 adb_kbd_reg0_data(kbd, IPC_GET_ARG1(&call));150 adb_kbd_reg0_data(kbd, ipc_get_arg1(&call)); 151 151 break; 152 152 default: … … 205 205 while (true) { 206 206 async_get_call(&call); 207 method = IPC_GET_IMETHOD(&call);207 method = ipc_get_imethod(&call); 208 208 209 209 if (!method) { -
uspace/drv/hid/adb-mouse/adb-mouse.c
reb13ef8 rfafb8e5 99 99 errno_t retval = EOK; 100 100 101 if (! IPC_GET_IMETHOD(&call)) {101 if (!ipc_get_imethod(&call)) { 102 102 /* TODO: Handle hangup */ 103 103 return; 104 104 } 105 105 106 switch ( IPC_GET_IMETHOD(&call)) {106 switch (ipc_get_imethod(&call)) { 107 107 case ADB_REG_NOTIF: 108 adb_mouse_data(mouse, IPC_GET_ARG1(&call));108 adb_mouse_data(mouse, ipc_get_arg1(&call)); 109 109 break; 110 110 default: … … 215 215 while (true) { 216 216 async_get_call(&call); 217 method = IPC_GET_IMETHOD(&call);217 method = ipc_get_imethod(&call); 218 218 219 219 if (!method) { -
uspace/drv/hid/atkbd/atkbd.c
reb13ef8 rfafb8e5 310 310 static void default_connection_handler(ddf_fun_t *fun, ipc_call_t *icall) 311 311 { 312 const sysarg_t method = IPC_GET_IMETHOD(icall);312 const sysarg_t method = ipc_get_imethod(icall); 313 313 at_kbd_t *kbd = ddf_dev_data_get(ddf_fun_get_dev(fun)); 314 314 async_sess_t *sess; -
uspace/drv/hid/ps2mouse/ps2mouse.c
reb13ef8 rfafb8e5 429 429 void default_connection_handler(ddf_fun_t *fun, ipc_call_t *icall) 430 430 { 431 const sysarg_t method = IPC_GET_IMETHOD(icall);431 const sysarg_t method = ipc_get_imethod(icall); 432 432 ps2_mouse_t *mouse = ddf_dev_data_get(ddf_fun_get_dev(fun)); 433 433 async_sess_t *sess; -
uspace/drv/hid/usbhid/kbd/kbddev.c
reb13ef8 rfafb8e5 159 159 static void default_connection_handler(ddf_fun_t *fun, ipc_call_t *icall) 160 160 { 161 const sysarg_t method = IPC_GET_IMETHOD(icall);161 const sysarg_t method = ipc_get_imethod(icall); 162 162 usb_kbd_t *kbd_dev = ddf_fun_data_get(fun); 163 163 async_sess_t *sess; … … 165 165 switch (method) { 166 166 case KBDEV_SET_IND: 167 kbd_dev->mods = IPC_GET_ARG1(icall);167 kbd_dev->mods = ipc_get_arg1(icall); 168 168 usb_kbd_set_led(kbd_dev->hid_dev, kbd_dev); 169 169 async_answer_0(icall, EOK); -
uspace/drv/hid/xtkbd/xtkbd.c
reb13ef8 rfafb8e5 344 344 static void default_connection_handler(ddf_fun_t *fun, ipc_call_t *icall) 345 345 { 346 const sysarg_t method = IPC_GET_IMETHOD(icall);346 const sysarg_t method = ipc_get_imethod(icall); 347 347 xt_kbd_t *kbd = ddf_dev_data_get(ddf_fun_get_dev(fun)); 348 348 unsigned mods; … … 355 355 * assume AT keyboard with Scan Code Set 1. 356 356 */ 357 mods = IPC_GET_ARG1(icall);357 mods = ipc_get_arg1(icall); 358 358 const uint8_t status = 0 | 359 359 ((mods & KM_CAPS_LOCK) ? LI_CAPS : 0) | -
uspace/drv/intctl/apic/apic.c
reb13ef8 rfafb8e5 179 179 async_get_call(&call); 180 180 181 if (! IPC_GET_IMETHOD(&call)) {181 if (!ipc_get_imethod(&call)) { 182 182 /* The other side has hung up. */ 183 183 async_answer_0(&call, EOK); … … 185 185 } 186 186 187 switch ( IPC_GET_IMETHOD(&call)) {187 switch (ipc_get_imethod(&call)) { 188 188 case IRC_ENABLE_INTERRUPT: 189 189 async_answer_0(&call, apic_enable_irq(apic, 190 IPC_GET_ARG1(&call)));190 ipc_get_arg1(&call))); 191 191 break; 192 192 case IRC_DISABLE_INTERRUPT: -
uspace/drv/intctl/i8259/i8259.c
reb13ef8 rfafb8e5 108 108 async_get_call(&call); 109 109 110 if (! IPC_GET_IMETHOD(&call)) {110 if (!ipc_get_imethod(&call)) { 111 111 /* The other side has hung up. */ 112 112 async_answer_0(&call, EOK); … … 114 114 } 115 115 116 switch ( IPC_GET_IMETHOD(&call)) {116 switch (ipc_get_imethod(&call)) { 117 117 case IRC_ENABLE_INTERRUPT: 118 118 async_answer_0(&call, pic_enable_irq(i8259, 119 IPC_GET_ARG1(&call)));119 ipc_get_arg1(&call))); 120 120 break; 121 121 case IRC_DISABLE_INTERRUPT: -
uspace/drv/intctl/icp-ic/icp-ic.c
reb13ef8 rfafb8e5 84 84 async_get_call(&call); 85 85 86 if (! IPC_GET_IMETHOD(&call)) {86 if (!ipc_get_imethod(&call)) { 87 87 /* The other side has hung up. */ 88 88 async_answer_0(&call, EOK); … … 90 90 } 91 91 92 switch ( IPC_GET_IMETHOD(&call)) {92 switch (ipc_get_imethod(&call)) { 93 93 case IRC_ENABLE_INTERRUPT: 94 94 async_answer_0(&call, 95 icpic_enable_irq(icpic, IPC_GET_ARG1(&call)));95 icpic_enable_irq(icpic, ipc_get_arg1(&call))); 96 96 break; 97 97 case IRC_DISABLE_INTERRUPT: -
uspace/drv/intctl/obio/obio.c
reb13ef8 rfafb8e5 90 90 async_get_call(&call); 91 91 92 switch ( IPC_GET_IMETHOD(&call)) {92 switch (ipc_get_imethod(&call)) { 93 93 case IRC_ENABLE_INTERRUPT: 94 inr = IPC_GET_ARG1(&call);94 inr = ipc_get_arg1(&call); 95 95 pio_set_64(&obio->regs[OBIO_IMR(inr & INO_MASK)], 96 96 1UL << 31, 0); … … 102 102 break; 103 103 case IRC_CLEAR_INTERRUPT: 104 inr = IPC_GET_ARG1(&call);104 inr = ipc_get_arg1(&call); 105 105 pio_write_64(&obio->regs[OBIO_CIR(inr & INO_MASK)], 0); 106 106 async_answer_0(&call, EOK); -
uspace/drv/nic/e1k/e1k.c
reb13ef8 rfafb8e5 1244 1244 ddf_dev_t *dev) 1245 1245 { 1246 uint32_t icr = (uint32_t) IPC_GET_ARG2(icall);1246 uint32_t icr = (uint32_t) ipc_get_arg2(icall); 1247 1247 nic_t *nic = NIC_DATA_DEV(dev); 1248 1248 e1000_t *e1000 = DRIVER_DATA_NIC(nic); -
uspace/drv/nic/ne2k/ne2k.c
reb13ef8 rfafb8e5 52 52 * 53 53 */ 54 #define IRQ_GET_ISR(call) ((int) IPC_GET_ARG2(&call))54 #define IRQ_GET_ISR(call) ((int) ipc_get_arg2(&call)) 55 55 56 56 /** Return the TSR from the interrupt call. … … 59 59 * 60 60 */ 61 #define IRQ_GET_TSR(call) ((int) IPC_GET_ARG3(&call))61 #define IRQ_GET_TSR(call) ((int) ipc_get_arg3(&call)) 62 62 63 63 #define DRIVER_DATA(dev) ((nic_t *) ddf_dev_data_get(dev)) -
uspace/drv/nic/rtl8139/driver.c
reb13ef8 rfafb8e5 827 827 assert(icall); 828 828 829 uint16_t isr = (uint16_t) IPC_GET_ARG2(icall);829 uint16_t isr = (uint16_t) ipc_get_arg2(icall); 830 830 nic_t *nic_data = nic_get_from_ddf_dev(dev); 831 831 rtl8139_t *rtl8139 = nic_get_specific(nic_data); -
uspace/drv/nic/rtl8169/driver.c
reb13ef8 rfafb8e5 1038 1038 assert(icall); 1039 1039 1040 uint16_t isr = (uint16_t) IPC_GET_ARG2(icall) & INT_KNOWN;1040 uint16_t isr = (uint16_t) ipc_get_arg2(icall) & INT_KNOWN; 1041 1041 nic_t *nic_data = nic_get_from_ddf_dev(dev); 1042 1042 rtl8169_t *rtl8169 = nic_get_specific(nic_data);
Note:
See TracChangeset
for help on using the changeset viewer.