Changeset 17aca1c in mainline for uspace/srv/bd/gxe_bd/gxe_bd.c


Ignore:
Timestamp:
2011-02-04T20:56:52Z (13 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
0397e5a4, e29e09cf
Parents:
e778543 (diff), 0b37882 (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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/bd/gxe_bd/gxe_bd.c

    re778543 r17aca1c  
    3939#include <libarch/ddi.h>
    4040#include <ddi.h>
    41 #include <ipc/ipc.h>
    4241#include <ipc/bd.h>
    4342#include <async.h>
     
    161160        sysarg_t method;
    162161        devmap_handle_t dh;
    163         int flags;
     162        unsigned int flags;
    164163        int retval;
    165164        uint64_t ba;
     
    177176
    178177        if (disk_id < 0) {
    179                 ipc_answer_0(iid, EINVAL);
     178                async_answer_0(iid, EINVAL);
    180179                return;
    181180        }
    182181
    183182        /* Answer the IPC_M_CONNECT_ME_TO call. */
    184         ipc_answer_0(iid, EOK);
     183        async_answer_0(iid, EOK);
    185184
    186185        if (!async_share_out_receive(&callid, &comm_size, &flags)) {
    187                 ipc_answer_0(callid, EHANGUP);
     186                async_answer_0(callid, EHANGUP);
    188187                return;
    189188        }
    190189
    191190        if (comm_size < block_size) {
    192                 ipc_answer_0(callid, EHANGUP);
     191                async_answer_0(callid, EHANGUP);
    193192                return;
    194193        }
     
    196195        fs_va = as_get_mappable_page(comm_size);
    197196        if (fs_va == NULL) {
    198                 ipc_answer_0(callid, EHANGUP);
     197                async_answer_0(callid, EHANGUP);
    199198                return;
    200199        }
     
    208207                case IPC_M_PHONE_HUNGUP:
    209208                        /* The other side has hung up. */
    210                         ipc_answer_0(callid, EOK);
     209                        async_answer_0(callid, EOK);
    211210                        return;
    212211                case BD_READ_BLOCKS:
     
    231230                        break;
    232231                case BD_GET_BLOCK_SIZE:
    233                         ipc_answer_1(callid, EOK, block_size);
     232                        async_answer_1(callid, EOK, block_size);
    234233                        continue;
    235234                case BD_GET_NUM_BLOCKS:
     
    240239                        break;
    241240                }
    242                 ipc_answer_0(callid, retval);
     241                async_answer_0(callid, retval);
    243242        }
    244243}
Note: See TracChangeset for help on using the changeset viewer.