Changeset eb13ef8 in mainline for uspace/drv/nic


Ignore:
Timestamp:
2019-02-06T13:25:12Z (7 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:
fafb8e5
Parents:
bb97118
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2019-02-02 14:04:02)
git-committer:
Jiří Zárevúcky <zarevucky.jiri@…> (2019-02-06 13:25:12)
Message:

Change IPC_GET_* and IPC_SET_* to accept pointer instead of lvalue

Location:
uspace/drv/nic
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/nic/e1k/e1k.c

    rbb97118 reb13ef8  
    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

    rbb97118 reb13ef8  
    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

    rbb97118 reb13ef8  
    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

    rbb97118 reb13ef8  
    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.