Changeset ab87db5 in mainline for uspace/drv/char


Ignore:
Timestamp:
2019-02-23T17:16:01Z (7 years ago)
Author:
GitHub <noreply@…>
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)
Message:

Merge pull request #157

Turn some function-like macros into functions

Location:
uspace/drv/char
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/char/i8042/i8042.c

    rbc417660 rab87db5  
    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

    rbc417660 rab87db5  
    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)
     
    156156        return EOK;
    157157error:
    158         if (CAP_HANDLE_VALID(con->irq_handle))
     158        if (cap_handle_valid(con->irq_handle))
    159159                async_irq_unsubscribe(con->irq_handle);
    160160        if (bound)
  • uspace/drv/char/ns8250/ns8250.c

    rbc417660 rab87db5  
    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/pc-lpt/pc-lpt.c

    rbc417660 rab87db5  
    173173        return EOK;
    174174error:
    175         if (CAP_HANDLE_VALID(lpt->irq_handle))
     175        if (cap_handle_valid(lpt->irq_handle))
    176176                async_irq_unsubscribe(lpt->irq_handle);
    177177        if (bound)
  • uspace/drv/char/pl050/pl050.c

    rbc417660 rab87db5  
    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);
Note: See TracChangeset for help on using the changeset viewer.