Changeset 5f70118 in mainline for uspace/srv/bd/gxe_bd/gxe_bd.c
- Timestamp:
- 2010-01-10T12:16:59Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- c77a64f
- Parents:
- 309ede1 (diff), 1ac3a52 (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. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/bd/gxe_bd/gxe_bd.c
r309ede1 r5f70118 43 43 #include <async.h> 44 44 #include <as.h> 45 #include <fibril_sync .h>45 #include <fibril_synch.h> 46 46 #include <devmap.h> 47 47 #include <sys/types.h> … … 50 50 #include <task.h> 51 51 52 #define NAME "gxe_bd" 52 #define NAME "gxe_bd" 53 #define NAMESPACE "bd" 53 54 54 55 enum { … … 141 142 142 143 for (i = 0; i < MAX_DISKS; i++) { 143 snprintf(name, 16, " disk%d", i);144 snprintf(name, 16, "%s/disk%d", NAMESPACE, i); 144 145 rc = devmap_device_register(name, &dev_handle[i]); 145 146 if (rc != EOK) { 146 147 devmap_hangup_phone(DEVMAP_DRIVER); 147 printf(NAME ": Unable to register device %s.\n", 148 name); 148 printf(NAME ": Unable to register device %s.\n", name); 149 149 return rc; 150 150 } … … 185 185 ipc_answer_0(iid, EOK); 186 186 187 if (! ipc_share_out_receive(&callid, &comm_size, &flags)) {187 if (!async_share_out_receive(&callid, &comm_size, &flags)) { 188 188 ipc_answer_0(callid, EHANGUP); 189 189 return; … … 201 201 } 202 202 203 (void) ipc_share_out_finalize(callid, fs_va);203 (void) async_share_out_finalize(callid, fs_va); 204 204 205 205 while (1) { … … 234 234 ipc_answer_1(callid, EOK, block_size); 235 235 continue; 236 case BD_GET_NUM_BLOCKS: 237 retval = ENOTSUP; 238 break; 236 239 default: 237 240 retval = EINVAL;
Note:
See TracChangeset
for help on using the changeset viewer.