Changeset 991f645 in mainline for uspace/srv/bd


Ignore:
Timestamp:
2010-11-18T17:39:28Z (15 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
0b5a4131
Parents:
51a268f
Message:

Rename dev_handle_t to devmap_handle_t and make it explicitly clear that
dev_handle_t is a handle understood by devmap.

Location:
uspace/srv/bd
Files:
7 edited

Legend:

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

    r51a268f r991f645  
    139139               
    140140                snprintf(name, 16, "%s/disk%d", NAMESPACE, i);
    141                 rc = devmap_device_register(name, &disk[i].dev_handle);
     141                rc = devmap_device_register(name, &disk[i].devmap_handle);
    142142                if (rc != EOK) {
    143143                        devmap_hangup_phone(DEVMAP_DRIVER);
     
    229229        ipc_call_t call;
    230230        ipcarg_t method;
    231         dev_handle_t dh;
     231        devmap_handle_t dh;
    232232        int flags;
    233233        int retval;
     
    242242        disk_id = -1;
    243243        for (i = 0; i < MAX_DISKS; i++)
    244                 if (disk[i].dev_handle == dh)
     244                if (disk[i].devmap_handle == dh)
    245245                        disk_id = i;
    246246
  • uspace/srv/bd/ata_bd/ata_bd.h

    r51a268f r991f645  
    287287
    288288        fibril_mutex_t lock;
    289         dev_handle_t dev_handle;
     289        devmap_handle_t devmap_handle;
    290290} disk_t;
    291291
  • uspace/srv/bd/file_bd/file_bd.c

    r51a268f r991f645  
    6060static FILE *img;
    6161
    62 static dev_handle_t dev_handle;
     62static devmap_handle_t devmap_handle;
    6363static fibril_mutex_t dev_lock;
    6464
     
    8282                return -1;
    8383
    84         rc = devmap_device_register(argv[2], &dev_handle);
     84        rc = devmap_device_register(argv[2], &devmap_handle);
    8585        if (rc != EOK) {
    8686                devmap_hangup_phone(DEVMAP_DRIVER);
  • uspace/srv/bd/gxe_bd/gxe_bd.c

    r51a268f r991f645  
    9393static gxe_bd_t *dev;
    9494
    95 static dev_handle_t dev_handle[MAX_DISKS];
     95static devmap_handle_t devmap_handle[MAX_DISKS];
    9696
    9797static fibril_mutex_t dev_lock[MAX_DISKS];
     
    143143        for (i = 0; i < MAX_DISKS; i++) {
    144144                snprintf(name, 16, "%s/disk%d", NAMESPACE, i);
    145                 rc = devmap_device_register(name, &dev_handle[i]);
     145                rc = devmap_device_register(name, &devmap_handle[i]);
    146146                if (rc != EOK) {
    147147                        devmap_hangup_phone(DEVMAP_DRIVER);
     
    161161        ipc_call_t call;
    162162        ipcarg_t method;
    163         dev_handle_t dh;
     163        devmap_handle_t dh;
    164164        int flags;
    165165        int retval;
     
    174174        disk_id = -1;
    175175        for (i = 0; i < MAX_DISKS; i++)
    176                 if (dev_handle[i] == dh)
     176                if (devmap_handle[i] == dh)
    177177                        disk_id = i;
    178178
  • uspace/srv/bd/part/guid_part/guid_part.c

    r51a268f r991f645  
    8383        aoff64_t length;
    8484        /** Device representing the partition (outbound device) */
    85         dev_handle_t dev;
     85        devmap_handle_t dev;
    8686        /** Points to next partition structure. */
    8787        struct part *next;
     
    9191
    9292/** Partitioned device (inbound device) */
    93 static dev_handle_t indev_handle;
     93static devmap_handle_t indev_handle;
    9494
    9595/** List of partitions. This structure is an empty head. */
     
    130130        int i;
    131131        char *name;
    132         dev_handle_t dev;
     132        devmap_handle_t dev;
    133133        uint64_t size_mb;
    134134        part_t *part;
     
    316316        ipc_call_t call;
    317317        ipcarg_t method;
    318         dev_handle_t dh;
     318        devmap_handle_t dh;
    319319        int flags;
    320320        int retval;
  • uspace/srv/bd/part/mbr_part/mbr_part.c

    r51a268f r991f645  
    101101        aoff64_t length;
    102102        /** Device representing the partition (outbound device) */
    103         dev_handle_t dev;
     103        devmap_handle_t dev;
    104104        /** Points to next partition structure. */
    105105        struct part *next;
     
    142142
    143143/** Partitioned device (inbound device) */
    144 static dev_handle_t indev_handle;
     144static devmap_handle_t indev_handle;
    145145
    146146/** List of partitions. This structure is an empty head. */
     
    181181        int i;
    182182        char *name;
    183         dev_handle_t dev;
     183        devmap_handle_t dev;
    184184        uint64_t size_mb;
    185185        part_t *part;
     
    394394        ipc_call_t call;
    395395        ipcarg_t method;
    396         dev_handle_t dh;
     396        devmap_handle_t dh;
    397397        int flags;
    398398        int retval;
  • uspace/srv/bd/rd/rd.c

    r51a268f r991f645  
    238238        }
    239239       
    240         dev_handle_t dev_handle;
    241         if (devmap_device_register("bd/initrd", &dev_handle) != EOK) {
     240        devmap_handle_t devmap_handle;
     241        if (devmap_device_register("bd/initrd", &devmap_handle) != EOK) {
    242242                devmap_hangup_phone(DEVMAP_DRIVER);
    243243                printf("%s: Unable to register device\n", NAME);
Note: See TracChangeset for help on using the changeset viewer.