Changeset fafb8e5 in mainline for uspace/drv


Ignore:
Timestamp:
2019-02-06T13:25:12Z (6 years ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
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)
Message:

Mechanically lowercase IPC_SET_*/IPC_GET_*

Location:
uspace/drv
Files:
24 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/audio/hdaudio/hdaudio.c

    reb13ef8 rfafb8e5  
    385385        hda_ctl_interrupt(hda->ctl);
    386386
    387         if (IPC_GET_ARG3(icall) != 0) {
     387        if (ipc_get_arg3(icall) != 0) {
    388388                /* Buffer completed */
    389389                hda_lock(hda);
  • uspace/drv/block/ahci/ahci.c

    reb13ef8 rfafb8e5  
    897897{
    898898        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);
    901901
    902902        if (port >= AHCI_MAX_PORTS)
  • uspace/drv/block/ddisk/ddisk.c

    reb13ef8 rfafb8e5  
    179179{
    180180        ddf_msg(LVL_DEBUG, "ddisk_irq_handler(), status=%" PRIx32,
    181             (uint32_t) IPC_GET_ARG1(icall));
     181            (uint32_t) ipc_get_arg1(icall));
    182182
    183183        ddisk_t *ddisk = (ddisk_t *) ddf_dev_data_get(dev);
  • uspace/drv/bus/adb/cuda_adb/cuda_adb.c

    reb13ef8 rfafb8e5  
    208208        while (true) {
    209209                async_get_call(&call);
    210                 method = IPC_GET_IMETHOD(&call);
     210                method = ipc_get_imethod(&call);
    211211
    212212                if (!method) {
  • uspace/drv/bus/pci/pciintel/ctl.c

    reb13ef8 rfafb8e5  
    6565                async_get_call(&call);
    6666
    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)) {
    7171                case PCI_GET_DEVICES:
    7272                        pci_ctl_get_devices_srv(bus, &call);
     
    140140        errno_t rc;
    141141
    142         dev_handle = IPC_GET_ARG1(icall);
     142        dev_handle = ipc_get_arg1(icall);
    143143        log_msg(LOG_DEFAULT, LVL_DEBUG, "pci_dev_get_info_srv(%zu)",
    144144            dev_handle);
  • uspace/drv/bus/usb/vhc/conndev.c

    reb13ef8 rfafb8e5  
    8383                return;
    8484
    85         size_t len = IPC_GET_ARG2(&data_request_call);
     85        size_t len = ipc_get_arg2(&data_request_call);
    8686        plugged_device_name[len] = 0;
    8787}
  • uspace/drv/char/i8042/i8042.c

    reb13ef8 rfafb8e5  
    132132        errno_t rc;
    133133
    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);
    136136
    137137        i8042_port_t *port = (status & i8042_AUX_DATA) ?
  • uspace/drv/char/msim-con/msim-con.c

    reb13ef8 rfafb8e5  
    7171        fibril_mutex_lock(&con->buf_lock);
    7272
    73         c = IPC_GET_ARG2(call);
     73        c = ipc_get_arg2(call);
    7474        rc = circ_buf_push(&con->cbuf, &c);
    7575        if (rc != EOK)
  • uspace/drv/char/ns8250/ns8250.c

    reb13ef8 rfafb8e5  
    10801080{
    10811081        ns8250_t *ns8250 = srv_ns8250(srv);
    1082         sysarg_t method = IPC_GET_IMETHOD(call);
     1082        sysarg_t method = ipc_get_imethod(call);
    10831083        errno_t ret;
    10841084        unsigned int baud_rate, parity, word_length, stop_bits;
     
    10931093
    10941094        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);
    10991099                ret = ns8250_set_props(ns8250->dev, baud_rate, parity, word_length,
    11001100                    stop_bits);
  • uspace/drv/char/pl050/pl050.c

    reb13ef8 rfafb8e5  
    157157        }
    158158
    159         pl050->buffer[pl050->buf_wp] = IPC_GET_ARG2(call);
     159        pl050->buffer[pl050->buf_wp] = ipc_get_arg2(call);
    160160        pl050->buf_wp = nidx;
    161161        fibril_condvar_broadcast(&pl050->buf_cv);
  • uspace/drv/hid/adb-kbd/adb-kbd.c

    reb13ef8 rfafb8e5  
    141141                errno_t retval = EOK;
    142142
    143                 if (!IPC_GET_IMETHOD(&call)) {
     143                if (!ipc_get_imethod(&call)) {
    144144                        async_answer_0(&call, EOK);
    145145                        return;
    146146                }
    147147
    148                 switch (IPC_GET_IMETHOD(&call)) {
     148                switch (ipc_get_imethod(&call)) {
    149149                case ADB_REG_NOTIF:
    150                         adb_kbd_reg0_data(kbd, IPC_GET_ARG1(&call));
     150                        adb_kbd_reg0_data(kbd, ipc_get_arg1(&call));
    151151                        break;
    152152                default:
     
    205205        while (true) {
    206206                async_get_call(&call);
    207                 method = IPC_GET_IMETHOD(&call);
     207                method = ipc_get_imethod(&call);
    208208
    209209                if (!method) {
  • uspace/drv/hid/adb-mouse/adb-mouse.c

    reb13ef8 rfafb8e5  
    9999                errno_t retval = EOK;
    100100
    101                 if (!IPC_GET_IMETHOD(&call)) {
     101                if (!ipc_get_imethod(&call)) {
    102102                        /* TODO: Handle hangup */
    103103                        return;
    104104                }
    105105
    106                 switch (IPC_GET_IMETHOD(&call)) {
     106                switch (ipc_get_imethod(&call)) {
    107107                case ADB_REG_NOTIF:
    108                         adb_mouse_data(mouse, IPC_GET_ARG1(&call));
     108                        adb_mouse_data(mouse, ipc_get_arg1(&call));
    109109                        break;
    110110                default:
     
    215215        while (true) {
    216216                async_get_call(&call);
    217                 method = IPC_GET_IMETHOD(&call);
     217                method = ipc_get_imethod(&call);
    218218
    219219                if (!method) {
  • uspace/drv/hid/atkbd/atkbd.c

    reb13ef8 rfafb8e5  
    310310static void default_connection_handler(ddf_fun_t *fun, ipc_call_t *icall)
    311311{
    312         const sysarg_t method = IPC_GET_IMETHOD(icall);
     312        const sysarg_t method = ipc_get_imethod(icall);
    313313        at_kbd_t *kbd = ddf_dev_data_get(ddf_fun_get_dev(fun));
    314314        async_sess_t *sess;
  • uspace/drv/hid/ps2mouse/ps2mouse.c

    reb13ef8 rfafb8e5  
    429429void default_connection_handler(ddf_fun_t *fun, ipc_call_t *icall)
    430430{
    431         const sysarg_t method = IPC_GET_IMETHOD(icall);
     431        const sysarg_t method = ipc_get_imethod(icall);
    432432        ps2_mouse_t *mouse = ddf_dev_data_get(ddf_fun_get_dev(fun));
    433433        async_sess_t *sess;
  • uspace/drv/hid/usbhid/kbd/kbddev.c

    reb13ef8 rfafb8e5  
    159159static void default_connection_handler(ddf_fun_t *fun, ipc_call_t *icall)
    160160{
    161         const sysarg_t method = IPC_GET_IMETHOD(icall);
     161        const sysarg_t method = ipc_get_imethod(icall);
    162162        usb_kbd_t *kbd_dev = ddf_fun_data_get(fun);
    163163        async_sess_t *sess;
     
    165165        switch (method) {
    166166        case KBDEV_SET_IND:
    167                 kbd_dev->mods = IPC_GET_ARG1(icall);
     167                kbd_dev->mods = ipc_get_arg1(icall);
    168168                usb_kbd_set_led(kbd_dev->hid_dev, kbd_dev);
    169169                async_answer_0(icall, EOK);
  • uspace/drv/hid/xtkbd/xtkbd.c

    reb13ef8 rfafb8e5  
    344344static void default_connection_handler(ddf_fun_t *fun, ipc_call_t *icall)
    345345{
    346         const sysarg_t method = IPC_GET_IMETHOD(icall);
     346        const sysarg_t method = ipc_get_imethod(icall);
    347347        xt_kbd_t *kbd = ddf_dev_data_get(ddf_fun_get_dev(fun));
    348348        unsigned mods;
     
    355355                 * assume AT keyboard with Scan Code Set 1.
    356356                 */
    357                 mods = IPC_GET_ARG1(icall);
     357                mods = ipc_get_arg1(icall);
    358358                const uint8_t status = 0 |
    359359                    ((mods & KM_CAPS_LOCK) ? LI_CAPS : 0) |
  • uspace/drv/intctl/apic/apic.c

    reb13ef8 rfafb8e5  
    179179                async_get_call(&call);
    180180
    181                 if (!IPC_GET_IMETHOD(&call)) {
     181                if (!ipc_get_imethod(&call)) {
    182182                        /* The other side has hung up. */
    183183                        async_answer_0(&call, EOK);
     
    185185                }
    186186
    187                 switch (IPC_GET_IMETHOD(&call)) {
     187                switch (ipc_get_imethod(&call)) {
    188188                case IRC_ENABLE_INTERRUPT:
    189189                        async_answer_0(&call, apic_enable_irq(apic,
    190                             IPC_GET_ARG1(&call)));
     190                            ipc_get_arg1(&call)));
    191191                        break;
    192192                case IRC_DISABLE_INTERRUPT:
  • uspace/drv/intctl/i8259/i8259.c

    reb13ef8 rfafb8e5  
    108108                async_get_call(&call);
    109109
    110                 if (!IPC_GET_IMETHOD(&call)) {
     110                if (!ipc_get_imethod(&call)) {
    111111                        /* The other side has hung up. */
    112112                        async_answer_0(&call, EOK);
     
    114114                }
    115115
    116                 switch (IPC_GET_IMETHOD(&call)) {
     116                switch (ipc_get_imethod(&call)) {
    117117                case IRC_ENABLE_INTERRUPT:
    118118                        async_answer_0(&call, pic_enable_irq(i8259,
    119                             IPC_GET_ARG1(&call)));
     119                            ipc_get_arg1(&call)));
    120120                        break;
    121121                case IRC_DISABLE_INTERRUPT:
  • uspace/drv/intctl/icp-ic/icp-ic.c

    reb13ef8 rfafb8e5  
    8484                async_get_call(&call);
    8585
    86                 if (!IPC_GET_IMETHOD(&call)) {
     86                if (!ipc_get_imethod(&call)) {
    8787                        /* The other side has hung up. */
    8888                        async_answer_0(&call, EOK);
     
    9090                }
    9191
    92                 switch (IPC_GET_IMETHOD(&call)) {
     92                switch (ipc_get_imethod(&call)) {
    9393                case IRC_ENABLE_INTERRUPT:
    9494                        async_answer_0(&call,
    95                             icpic_enable_irq(icpic, IPC_GET_ARG1(&call)));
     95                            icpic_enable_irq(icpic, ipc_get_arg1(&call)));
    9696                        break;
    9797                case IRC_DISABLE_INTERRUPT:
  • uspace/drv/intctl/obio/obio.c

    reb13ef8 rfafb8e5  
    9090                async_get_call(&call);
    9191
    92                 switch (IPC_GET_IMETHOD(&call)) {
     92                switch (ipc_get_imethod(&call)) {
    9393                case IRC_ENABLE_INTERRUPT:
    94                         inr = IPC_GET_ARG1(&call);
     94                        inr = ipc_get_arg1(&call);
    9595                        pio_set_64(&obio->regs[OBIO_IMR(inr & INO_MASK)],
    9696                            1UL << 31, 0);
     
    102102                        break;
    103103                case IRC_CLEAR_INTERRUPT:
    104                         inr = IPC_GET_ARG1(&call);
     104                        inr = ipc_get_arg1(&call);
    105105                        pio_write_64(&obio->regs[OBIO_CIR(inr & INO_MASK)], 0);
    106106                        async_answer_0(&call, EOK);
  • uspace/drv/nic/e1k/e1k.c

    reb13ef8 rfafb8e5  
    12441244    ddf_dev_t *dev)
    12451245{
    1246         uint32_t icr = (uint32_t) IPC_GET_ARG2(icall);
     1246        uint32_t icr = (uint32_t) ipc_get_arg2(icall);
    12471247        nic_t *nic = NIC_DATA_DEV(dev);
    12481248        e1000_t *e1000 = DRIVER_DATA_NIC(nic);
  • uspace/drv/nic/ne2k/ne2k.c

    reb13ef8 rfafb8e5  
    5252 *
    5353 */
    54 #define IRQ_GET_ISR(call)  ((int) IPC_GET_ARG2(&call))
     54#define IRQ_GET_ISR(call)  ((int) ipc_get_arg2(&call))
    5555
    5656/** Return the TSR from the interrupt call.
     
    5959 *
    6060 */
    61 #define IRQ_GET_TSR(call)  ((int) IPC_GET_ARG3(&call))
     61#define IRQ_GET_TSR(call)  ((int) ipc_get_arg3(&call))
    6262
    6363#define DRIVER_DATA(dev) ((nic_t *) ddf_dev_data_get(dev))
  • uspace/drv/nic/rtl8139/driver.c

    reb13ef8 rfafb8e5  
    827827        assert(icall);
    828828
    829         uint16_t isr = (uint16_t) IPC_GET_ARG2(icall);
     829        uint16_t isr = (uint16_t) ipc_get_arg2(icall);
    830830        nic_t *nic_data = nic_get_from_ddf_dev(dev);
    831831        rtl8139_t *rtl8139 = nic_get_specific(nic_data);
  • uspace/drv/nic/rtl8169/driver.c

    reb13ef8 rfafb8e5  
    10381038        assert(icall);
    10391039
    1040         uint16_t isr = (uint16_t) IPC_GET_ARG2(icall) & INT_KNOWN;
     1040        uint16_t isr = (uint16_t) ipc_get_arg2(icall) & INT_KNOWN;
    10411041        nic_t *nic_data = nic_get_from_ddf_dev(dev);
    10421042        rtl8169_t *rtl8169 = nic_get_specific(nic_data);
Note: See TracChangeset for help on using the changeset viewer.