Changeset 5f70118 in mainline for uspace/srv/bd/gxe_bd/gxe_bd.c


Ignore:
Timestamp:
2010-01-10T12:16:59Z (14 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
c77a64f
Parents:
309ede1 (diff), 1ac3a52 (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

    r309ede1 r5f70118  
    4343#include <async.h>
    4444#include <as.h>
    45 #include <fibril_sync.h>
     45#include <fibril_synch.h>
    4646#include <devmap.h>
    4747#include <sys/types.h>
     
    5050#include <task.h>
    5151
    52 #define NAME "gxe_bd"
     52#define NAME       "gxe_bd"
     53#define NAMESPACE  "bd"
    5354
    5455enum {
     
    141142
    142143        for (i = 0; i < MAX_DISKS; i++) {
    143                 snprintf(name, 16, "disk%d", i);
     144                snprintf(name, 16, "%s/disk%d", NAMESPACE, i);
    144145                rc = devmap_device_register(name, &dev_handle[i]);
    145146                if (rc != EOK) {
    146147                        devmap_hangup_phone(DEVMAP_DRIVER);
    147                         printf(NAME ": Unable to register device %s.\n",
    148                                 name);
     148                        printf(NAME ": Unable to register device %s.\n", name);
    149149                        return rc;
    150150                }
     
    185185        ipc_answer_0(iid, EOK);
    186186
    187         if (!ipc_share_out_receive(&callid, &comm_size, &flags)) {
     187        if (!async_share_out_receive(&callid, &comm_size, &flags)) {
    188188                ipc_answer_0(callid, EHANGUP);
    189189                return;
     
    201201        }
    202202
    203         (void) ipc_share_out_finalize(callid, fs_va);
     203        (void) async_share_out_finalize(callid, fs_va);
    204204
    205205        while (1) {
     
    234234                        ipc_answer_1(callid, EOK, block_size);
    235235                        continue;
     236                case BD_GET_NUM_BLOCKS:
     237                        retval = ENOTSUP;
     238                        break;
    236239                default:
    237240                        retval = EINVAL;
Note: See TracChangeset for help on using the changeset viewer.