Changeset 985e26d2 in mainline for uspace/srv/bd/ata_bd/ata_bd.c


Ignore:
Timestamp:
2010-01-07T19:06:59Z (14 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
8190e63
Parents:
743e17b (diff), eca2435 (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/ata_bd/ata_bd.c

    r743e17b r985e26d2  
    5555#include <async.h>
    5656#include <as.h>
    57 #include <fibril_sync.h>
     57#include <fibril_synch.h>
    5858#include <string.h>
    5959#include <devmap.h>
     
    6666#include "ata_bd.h"
    6767
    68 #define NAME "ata_bd"
     68#define NAME       "ata_bd"
     69#define NAMESPACE  "bd"
    6970
    7071/** Physical block size. Should be always 512. */
     
    135136                if (disk[i].present == false)
    136137                        continue;
    137 
    138                 snprintf(name, 16, "disk%d", i);
     138               
     139                snprintf(name, 16, "%s/disk%d", NAMESPACE, i);
    139140                rc = devmap_device_register(name, &disk[i].dev_handle);
    140141                if (rc != EOK) {
    141142                        devmap_hangup_phone(DEVMAP_DRIVER);
    142                         printf(NAME ": Unable to register device %s.\n",
    143                                 name);
     143                        printf(NAME ": Unable to register device %s.\n", name);
    144144                        return rc;
    145145                }
     
    252252        ipc_answer_0(iid, EOK);
    253253
    254         if (!ipc_share_out_receive(&callid, &comm_size, &flags)) {
     254        if (!async_share_out_receive(&callid, &comm_size, &flags)) {
    255255                ipc_answer_0(callid, EHANGUP);
    256256                return;
     
    263263        }
    264264
    265         (void) ipc_share_out_finalize(callid, fs_va);
     265        (void) async_share_out_finalize(callid, fs_va);
    266266
    267267        while (1) {
Note: See TracChangeset for help on using the changeset viewer.