Changeset f97f5cc2 in mainline
- Timestamp:
- 2015-11-17T23:23:08Z (9 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 4627314
- Parents:
- 363a504
- Location:
- uspace
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/block/ata_bd/ata_bd.c
r363a504 rf97f5cc2 74 74 75 75 #define NAME "ata_bd" 76 #define NAMESPACE "bd"77 76 78 77 /** Number of defined legacy controller base addresses. */ -
uspace/drv/block/ata_bd/main.c
r363a504 rf97f5cc2 198 198 } 199 199 200 ddf_fun_add_to_category(fun, "bd");201 200 ddf_fun_add_to_category(fun, "disk"); 202 201 -
uspace/drv/block/ddisk/ddisk.c
r363a504 rf97f5cc2 337 337 } 338 338 339 ddf_fun_add_to_category(fun, " bd");339 ddf_fun_add_to_category(fun, "disk"); 340 340 ddisk->fun = fun; 341 341 -
uspace/drv/bus/usb/usbmast/main.c
r363a504 rf97f5cc2 292 292 } 293 293 294 ddf_fun_add_to_category(fun, "disk"); 295 294 296 free(fun_name); 295 297 mdev->luns[lun] = fun; -
uspace/srv/bd/file_bd/file_bd.c
r363a504 rf97f5cc2 90 90 char *image_name; 91 91 char *device_name; 92 category_id_t disk_cat; 92 93 93 94 printf(NAME ": File-backed block device driver\n"); … … 138 139 return rc; 139 140 } 140 141 142 rc = loc_category_get_id("disk", &disk_cat, IPC_FLAG_BLOCKING); 143 if (rc != EOK) { 144 printf("%s: Failed resolving category 'disk'.\n", NAME); 145 return rc; 146 } 147 148 rc = loc_service_add_to_cat(service_id, disk_cat); 149 if (rc != EOK) { 150 printf("%s: Failed adding %s to category.", 151 NAME, device_name); 152 return rc; 153 } 154 141 155 printf("%s: Accepting connections\n", NAME); 142 156 task_retval(0); -
uspace/srv/bd/sata_bd/sata_bd.c
r363a504 rf97f5cc2 246 246 { 247 247 int rc; 248 category_id_t disk_cat; 248 249 249 250 async_set_fallback_port_handler(sata_bd_connection, NULL); … … 259 260 } 260 261 261 for(int i=0; i < disk_count; i++) { 262 rc = loc_category_get_id("disk", &disk_cat, IPC_FLAG_BLOCKING); 263 if (rc != EOK) { 264 printf("%s: Failed resolving category 'disk'.\n", NAME); 265 return rc; 266 } 267 268 for(int i = 0; i < disk_count; i++) { 262 269 char name[1024]; 263 270 snprintf(name, 1024, "%s/%s", NAMESPACE, disk[i].dev_name); … … 267 274 return rc; 268 275 } 269 } 270 276 277 rc = loc_service_add_to_cat(disk[i].service_id, disk_cat); 278 if (rc != EOK) { 279 printf("%s: Failed adding %s to category.", 280 NAME, disk[i].dev_name); 281 return rc; 282 } 283 } 284 271 285 printf(NAME ": Accepting connections\n"); 272 286 task_retval(0); -
uspace/srv/locsrv/locsrv.c
r363a504 rf97f5cc2 1314 1314 categ_dir_init(&cdir); 1315 1315 1316 cat = category_new("bd");1317 categ_dir_add_cat(&cdir, cat);1318 1319 1316 cat = category_new("disk"); 1320 1317 categ_dir_add_cat(&cdir, cat);
Note:
See TracChangeset
for help on using the changeset viewer.