Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/devman/main.c

    r398c4d7 r228e490  
    7474       
    7575        iid = async_get_call(&icall);
    76         if (IPC_GET_METHOD(icall) != DEVMAN_DRIVER_REGISTER) {
     76        if (IPC_GET_IMETHOD(icall) != DEVMAN_DRIVER_REGISTER) {
    7777                ipc_answer_0(iid, EREFUSED);
    7878                return NULL;
     
    109109        ipc_call_t call;
    110110        ipc_callid_t callid = async_get_call(&call);
    111         if (IPC_GET_METHOD(call) != IPC_M_CONNECT_TO_ME) {
     111        if (IPC_GET_IMETHOD(call) != IPC_M_CONNECT_TO_ME) {
    112112                ipc_answer_0(callid, ENOTSUP);
    113113                ipc_answer_0(iid, ENOTSUP);
     
    141141       
    142142        callid = async_get_call(&call);
    143         if (DEVMAN_ADD_MATCH_ID != IPC_GET_METHOD(call)) {
     143        if (DEVMAN_ADD_MATCH_ID != IPC_GET_IMETHOD(call)) {
    144144                printf(NAME ": ERROR: devman_receive_match_id - invalid "
    145145                    "protocol.\n");
     
    184184 * @return              Zero on success, negative error code otherwise.
    185185 */
    186 static int devman_receive_match_ids(ipcarg_t match_count,
     186static int devman_receive_match_ids(sysarg_t match_count,
    187187    match_id_list_t *match_ids)
    188188{
     
    211211{
    212212        devman_handle_t parent_handle = IPC_GET_ARG1(*call);
    213         ipcarg_t match_count = IPC_GET_ARG2(*call);
     213        sysarg_t match_count = IPC_GET_ARG2(*call);
    214214        dev_tree_t *tree = &device_tree;
    215215       
     
    246246
    247247        /*
    248          * Try to find suitable driver and assign it to the device.
    249          * We do not want to block current fibril that is used to processing
    250          * incoming calls: we will launch a separate fibril to handle
    251          * the driver assigning. That is because assign_driver can actually
    252          * include task spawning which could take some time.
     248         * Try to find a suitable driver and assign it to the device.  We do
     249         * not want to block the current fibril that is used for processing
     250         * incoming calls: we will launch a separate fibril to handle the
     251         * driver assigning. That is because assign_driver can actually include
     252         * task spawning which could take some time.
    253253         */
    254254        fid_t assign_fibril = fibril_create(assign_driver_fibril, node);
     
    367367                callid = async_get_call(&call);
    368368               
    369                 switch (IPC_GET_METHOD(call)) {
     369                switch (IPC_GET_IMETHOD(call)) {
    370370                case IPC_M_PHONE_HUNGUP:
    371371                        cont = false;
     
    420420                ipc_callid_t callid = async_get_call(&call);
    421421               
    422                 switch (IPC_GET_METHOD(call)) {
     422                switch (IPC_GET_IMETHOD(call)) {
    423423                case IPC_M_PHONE_HUNGUP:
    424424                        cont = false;
     
    486486static void devman_connection_devmapper(ipc_callid_t iid, ipc_call_t *icall)
    487487{
    488         devmap_handle_t devmap_handle = IPC_GET_METHOD(*icall);
     488        devmap_handle_t devmap_handle = IPC_GET_IMETHOD(*icall);
    489489        node_t *dev;
    490490
     
    521521         * passes device handle to the driver as an ipc method.)
    522522         */
    523         if (IPC_GET_METHOD(*icall) != IPC_M_CONNECT_ME_TO)
     523        if (IPC_GET_IMETHOD(*icall) != IPC_M_CONNECT_ME_TO)
    524524                devman_connection_devmapper(iid, icall);
    525525
     
    531531       
    532532        /* Select interface. */
    533         switch ((ipcarg_t) (IPC_GET_ARG1(*icall))) {
     533        switch ((sysarg_t) (IPC_GET_ARG1(*icall))) {
    534534        case DEVMAN_DRIVER:
    535535                devman_connection_driver(iid, icall);
     
    599599
    600600        /* Register device manager at naming service. */
    601         ipcarg_t phonead;
     601        sysarg_t phonead;
    602602        if (ipc_connect_to_me(PHONE_NS, SERVICE_DEVMAN, 0, 0, &phonead) != 0)
    603603                return -1;
Note: See TracChangeset for help on using the changeset viewer.