Changeset 228e490 in mainline for uspace/srv/devman/main.c


Ignore:
Timestamp:
2010-12-14T17:00:02Z (14 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
a9b6bec, eb221e5
Parents:
dd8d5a7
Message:

initial modifications for supporting declarative IPC interfaces

File:
1 edited

Legend:

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

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