Changeset 991f645 in mainline for uspace/srv/bd
- Timestamp:
- 2010-11-18T17:39:28Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 0b5a4131
- Parents:
- 51a268f
- Location:
- uspace/srv/bd
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/bd/ata_bd/ata_bd.c
r51a268f r991f645 139 139 140 140 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); 142 142 if (rc != EOK) { 143 143 devmap_hangup_phone(DEVMAP_DRIVER); … … 229 229 ipc_call_t call; 230 230 ipcarg_t method; 231 dev _handle_t dh;231 devmap_handle_t dh; 232 232 int flags; 233 233 int retval; … … 242 242 disk_id = -1; 243 243 for (i = 0; i < MAX_DISKS; i++) 244 if (disk[i].dev _handle == dh)244 if (disk[i].devmap_handle == dh) 245 245 disk_id = i; 246 246 -
uspace/srv/bd/ata_bd/ata_bd.h
r51a268f r991f645 287 287 288 288 fibril_mutex_t lock; 289 dev _handle_t dev_handle;289 devmap_handle_t devmap_handle; 290 290 } disk_t; 291 291 -
uspace/srv/bd/file_bd/file_bd.c
r51a268f r991f645 60 60 static FILE *img; 61 61 62 static dev _handle_t dev_handle;62 static devmap_handle_t devmap_handle; 63 63 static fibril_mutex_t dev_lock; 64 64 … … 82 82 return -1; 83 83 84 rc = devmap_device_register(argv[2], &dev _handle);84 rc = devmap_device_register(argv[2], &devmap_handle); 85 85 if (rc != EOK) { 86 86 devmap_hangup_phone(DEVMAP_DRIVER); -
uspace/srv/bd/gxe_bd/gxe_bd.c
r51a268f r991f645 93 93 static gxe_bd_t *dev; 94 94 95 static dev _handle_t dev_handle[MAX_DISKS];95 static devmap_handle_t devmap_handle[MAX_DISKS]; 96 96 97 97 static fibril_mutex_t dev_lock[MAX_DISKS]; … … 143 143 for (i = 0; i < MAX_DISKS; i++) { 144 144 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]); 146 146 if (rc != EOK) { 147 147 devmap_hangup_phone(DEVMAP_DRIVER); … … 161 161 ipc_call_t call; 162 162 ipcarg_t method; 163 dev _handle_t dh;163 devmap_handle_t dh; 164 164 int flags; 165 165 int retval; … … 174 174 disk_id = -1; 175 175 for (i = 0; i < MAX_DISKS; i++) 176 if (dev _handle[i] == dh)176 if (devmap_handle[i] == dh) 177 177 disk_id = i; 178 178 -
uspace/srv/bd/part/guid_part/guid_part.c
r51a268f r991f645 83 83 aoff64_t length; 84 84 /** Device representing the partition (outbound device) */ 85 dev _handle_t dev;85 devmap_handle_t dev; 86 86 /** Points to next partition structure. */ 87 87 struct part *next; … … 91 91 92 92 /** Partitioned device (inbound device) */ 93 static dev _handle_t indev_handle;93 static devmap_handle_t indev_handle; 94 94 95 95 /** List of partitions. This structure is an empty head. */ … … 130 130 int i; 131 131 char *name; 132 dev _handle_t dev;132 devmap_handle_t dev; 133 133 uint64_t size_mb; 134 134 part_t *part; … … 316 316 ipc_call_t call; 317 317 ipcarg_t method; 318 dev _handle_t dh;318 devmap_handle_t dh; 319 319 int flags; 320 320 int retval; -
uspace/srv/bd/part/mbr_part/mbr_part.c
r51a268f r991f645 101 101 aoff64_t length; 102 102 /** Device representing the partition (outbound device) */ 103 dev _handle_t dev;103 devmap_handle_t dev; 104 104 /** Points to next partition structure. */ 105 105 struct part *next; … … 142 142 143 143 /** Partitioned device (inbound device) */ 144 static dev _handle_t indev_handle;144 static devmap_handle_t indev_handle; 145 145 146 146 /** List of partitions. This structure is an empty head. */ … … 181 181 int i; 182 182 char *name; 183 dev _handle_t dev;183 devmap_handle_t dev; 184 184 uint64_t size_mb; 185 185 part_t *part; … … 394 394 ipc_call_t call; 395 395 ipcarg_t method; 396 dev _handle_t dh;396 devmap_handle_t dh; 397 397 int flags; 398 398 int retval; -
uspace/srv/bd/rd/rd.c
r51a268f r991f645 238 238 } 239 239 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) { 242 242 devmap_hangup_phone(DEVMAP_DRIVER); 243 243 printf("%s: Unable to register device\n", NAME);
Note:
See TracChangeset
for help on using the changeset viewer.