Changeset a9b6bec in mainline for uspace/lib/drv/generic


Ignore:
Timestamp:
2010-12-14T20:19:41Z (15 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
11658b64
Parents:
37f7cfe (diff), 228e490 (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.
Message:

Merge mainline changes

Extra changes: ipcarg_t is sysarg_t and
IPC_GET_METHOD is IPC_GET_IMETHOD.

Location:
uspace/lib/drv/generic
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/drv/generic/dev_iface.c

    r37f7cfe ra9b6bec  
    5656
    5757remote_iface_func_ptr_t
    58 get_remote_method(remote_iface_t *rem_iface, ipcarg_t iface_method_idx)
     58get_remote_method(remote_iface_t *rem_iface, sysarg_t iface_method_idx)
    5959{
    6060        if (iface_method_idx >= rem_iface->method_count) {
  • uspace/lib/drv/generic/driver.c

    r37f7cfe ra9b6bec  
    8181static void driver_irq_handler(ipc_callid_t iid, ipc_call_t *icall)
    8282{
    83         int id = (int)IPC_GET_METHOD(*icall);
     83        int id = (int)IPC_GET_IMETHOD(*icall);
    8484        interrupt_context_t *ctx;
    8585       
     
    200200                ipc_callid_t callid = async_get_call(&call);
    201201
    202                 switch (IPC_GET_METHOD(call)) {
     202                switch (IPC_GET_IMETHOD(call)) {
    203203                case IPC_M_PHONE_HUNGUP:
    204204                        cont = false;
     
    254254                ipc_call_t call;
    255255                callid = async_get_call(&call);
    256                 ipcarg_t method = IPC_GET_METHOD(call);
     256                sysarg_t method = IPC_GET_IMETHOD(call);
    257257                int iface_idx;
    258258               
     
    308308
    309309                        /* get the method of the remote interface */
    310                         ipcarg_t iface_method_idx = IPC_GET_ARG1(call);
     310                        sysarg_t iface_method_idx = IPC_GET_ARG1(call);
    311311                        remote_iface_func_ptr_t iface_method_ptr =
    312312                            get_remote_method(rem_iface, iface_method_idx);
     
    346346{
    347347        /* Select interface */
    348         switch ((ipcarg_t) (IPC_GET_ARG1(*icall))) {
     348        switch ((sysarg_t) (IPC_GET_ARG1(*icall))) {
    349349        case DRIVER_DEVMAN:
    350350                /* handle PnP events from device manager */
  • uspace/lib/drv/generic/remote_usbhc.c

    r37f7cfe ra9b6bec  
    122122    ipc_callid_t callid, ipc_call_t *call)
    123123{
    124         ipcarg_t buffer_hash = DEV_IPC_GET_ARG1(*call);
     124        sysarg_t buffer_hash = DEV_IPC_GET_ARG1(*call);
    125125        async_transaction_t * trans = (async_transaction_t *)buffer_hash;
    126126        if (trans == NULL) {
     
    197197                ipc_answer_0(callid, rc);
    198198        } else {
    199                 ipc_answer_1(callid, EOK, (ipcarg_t) address);
     199                ipc_answer_1(callid, EOK, (sysarg_t) address);
    200200        }
    201201}
     
    254254
    255255        // FIXME - answer according to outcome
    256         ipc_answer_1(trans->caller, EOK, (ipcarg_t)trans);
     256        ipc_answer_1(trans->caller, EOK, (sysarg_t)trans);
    257257
    258258        trans->size = actual_size;
Note: See TracChangeset for help on using the changeset viewer.