Changeset ab87db5 in mainline for uspace/drv
- Timestamp:
- 2019-02-23T17:16:01Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 8c193d83, ca0e838
- Parents:
- bc417660 (diff), 95a47b0 (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. - git-author:
- Jiří Zárevúcky <zarevucky.jiri@…> (2019-02-23 17:16:01)
- git-committer:
- GitHub <noreply@…> (2019-02-23 17:16:01)
- Location:
- uspace/drv
- Files:
-
- 28 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/audio/hdaudio/hdaudio.c
rbc417660 rab87db5 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
rbc417660 rab87db5 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
rbc417660 rab87db5 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
rbc417660 rab87db5 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
rbc417660 rab87db5 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/ohci/hc.c
rbc417660 rab87db5 514 514 515 515 /* Enable interrupts */ 516 if ( CAP_HANDLE_VALID(instance->base.irq_handle)) {516 if (cap_handle_valid(instance->base.irq_handle)) { 517 517 OHCI_WR(instance->registers->interrupt_enable, 518 518 OHCI_USED_INTERRUPTS); -
uspace/drv/bus/usb/uhci/hc.c
rbc417660 rab87db5 295 295 pio_write_32(®isters->flbaseadd, pa); 296 296 297 if ( CAP_HANDLE_VALID(instance->base.irq_handle)) {297 if (cap_handle_valid(instance->base.irq_handle)) { 298 298 /* Enable all interrupts, but resume interrupt */ 299 299 pio_write_16(&instance->registers->usbintr, -
uspace/drv/bus/usb/vhc/conndev.c
rbc417660 rab87db5 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/bus/usb/xhci/hc.c
rbc417660 rab87db5 494 494 XHCI_REG_WR(intr0, XHCI_INTR_ERSTBA, erstba_phys); 495 495 496 if ( CAP_HANDLE_VALID(hc->base.irq_handle)) {496 if (cap_handle_valid(hc->base.irq_handle)) { 497 497 XHCI_REG_SET(intr0, XHCI_INTR_IE, 1); 498 498 XHCI_REG_SET(hc->op_regs, XHCI_OP_INTE, 1); -
uspace/drv/char/i8042/i8042.c
rbc417660 rab87db5 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
rbc417660 rab87db5 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) … … 156 156 return EOK; 157 157 error: 158 if ( CAP_HANDLE_VALID(con->irq_handle))158 if (cap_handle_valid(con->irq_handle)) 159 159 async_irq_unsubscribe(con->irq_handle); 160 160 if (bound) -
uspace/drv/char/ns8250/ns8250.c
rbc417660 rab87db5 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/pc-lpt/pc-lpt.c
rbc417660 rab87db5 173 173 return EOK; 174 174 error: 175 if ( CAP_HANDLE_VALID(lpt->irq_handle))175 if (cap_handle_valid(lpt->irq_handle)) 176 176 async_irq_unsubscribe(lpt->irq_handle); 177 177 if (bound) -
uspace/drv/char/pl050/pl050.c
rbc417660 rab87db5 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
rbc417660 rab87db5 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
rbc417660 rab87db5 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
rbc417660 rab87db5 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
rbc417660 rab87db5 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
rbc417660 rab87db5 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
rbc417660 rab87db5 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
rbc417660 rab87db5 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
rbc417660 rab87db5 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
rbc417660 rab87db5 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
rbc417660 rab87db5 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
rbc417660 rab87db5 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
rbc417660 rab87db5 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
rbc417660 rab87db5 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
rbc417660 rab87db5 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.