Changeset 6a44ee4 in mainline for uspace/srv/bd/gxe_bd/gxe_bd.c


Ignore:
Timestamp:
2011-07-20T15:26:21Z (13 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
efcebe1
Parents:
25bef0ff (diff), a701812 (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

    r25bef0ff r6a44ee4  
    9797
    9898static int gxe_bd_init(void);
    99 static void gxe_bd_connection(ipc_callid_t iid, ipc_call_t *icall);
     99static void gxe_bd_connection(ipc_callid_t iid, ipc_call_t *icall, void *);
    100100static int gxe_bd_read_blocks(int disk_id, uint64_t ba, unsigned cnt,
    101101    void *buf);
     
    153153}
    154154
    155 static void gxe_bd_connection(ipc_callid_t iid, ipc_call_t *icall)
     155static void gxe_bd_connection(ipc_callid_t iid, ipc_call_t *icall, void *arg)
    156156{
    157157        void *fs_va = NULL;
     
    201201        (void) async_share_out_finalize(callid, fs_va);
    202202
    203         while (1) {
     203        while (true) {
    204204                callid = async_get_call(&call);
    205205                method = IPC_GET_IMETHOD(call);
    206                 switch (method) {
    207                 case IPC_M_PHONE_HUNGUP:
     206               
     207                if (!method) {
    208208                        /* The other side has hung up. */
    209209                        async_answer_0(callid, EOK);
    210210                        return;
     211                }
     212               
     213                switch (method) {
    211214                case BD_READ_BLOCKS:
    212215                        ba = MERGE_LOUP32(IPC_GET_ARG1(call),
Note: See TracChangeset for help on using the changeset viewer.