Changeset bd5f3b7 in mainline for uspace/srv/bd/ata_bd/ata_bd.c


Ignore:
Timestamp:
2011-08-21T13:07:35Z (13 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
00aece0, f1a9e87
Parents:
86a34d3e (diff), a6480d5 (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

    r86a34d3e rbd5f3b7  
    5757#include <stdint.h>
    5858#include <str.h>
    59 #include <devmap.h>
     59#include <loc.h>
    6060#include <sys/types.h>
    6161#include <inttypes.h>
     
    8080 */
    8181static const size_t identify_data_size = 512;
    82 
    83 /** Size of the communication area. */
    84 static size_t comm_size;
    8582
    8683/** I/O base address of the command registers. */
     
    179176               
    180177                snprintf(name, 16, "%s/ata%udisk%d", NAMESPACE, ctl_num, i);
    181                 rc = devmap_device_register(name, &disk[i].devmap_handle);
     178                rc = loc_service_register(name, &disk[i].service_id);
    182179                if (rc != EOK) {
    183180                        printf(NAME ": Unable to register device %s.\n", name);
     
    247244        int rc;
    248245
    249         rc = devmap_driver_register(NAME, ata_bd_connection);
     246        rc = loc_server_register(NAME, ata_bd_connection);
    250247        if (rc < 0) {
    251248                printf(NAME ": Unable to register driver.\n");
     
    280277        ipc_call_t call;
    281278        sysarg_t method;
    282         devmap_handle_t dh;
     279        service_id_t dsid;
     280        size_t comm_size;       /**< Size of the communication area. */
    283281        unsigned int flags;
    284282        int retval;
     
    287285        int disk_id, i;
    288286
    289         /* Get the device handle. */
    290         dh = IPC_GET_ARG1(*icall);
     287        /* Get the device service ID. */
     288        dsid = IPC_GET_ARG1(*icall);
    291289
    292290        /* Determine which disk device is the client connecting to. */
    293291        disk_id = -1;
    294292        for (i = 0; i < MAX_DISKS; i++)
    295                 if (disk[i].devmap_handle == dh)
     293                if (disk[i].service_id == dsid)
    296294                        disk_id = i;
    297295
Note: See TracChangeset for help on using the changeset viewer.