Changeset 19a1800 in mainline for uspace/srv/bd/gxe_bd/gxe_bd.c
- Timestamp:
- 2011-03-01T22:20:56Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- e24e7b1
- Parents:
- 976f546 (diff), ac8285d (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
r976f546 r19a1800 39 39 #include <libarch/ddi.h> 40 40 #include <ddi.h> 41 #include <ipc/ipc.h>42 41 #include <ipc/bd.h> 43 42 #include <async.h> … … 161 160 sysarg_t method; 162 161 devmap_handle_t dh; 163 int flags;162 unsigned int flags; 164 163 int retval; 165 164 uint64_t ba; … … 177 176 178 177 if (disk_id < 0) { 179 ipc_answer_0(iid, EINVAL);178 async_answer_0(iid, EINVAL); 180 179 return; 181 180 } 182 181 183 182 /* Answer the IPC_M_CONNECT_ME_TO call. */ 184 ipc_answer_0(iid, EOK);183 async_answer_0(iid, EOK); 185 184 186 185 if (!async_share_out_receive(&callid, &comm_size, &flags)) { 187 ipc_answer_0(callid, EHANGUP);186 async_answer_0(callid, EHANGUP); 188 187 return; 189 188 } 190 189 191 190 if (comm_size < block_size) { 192 ipc_answer_0(callid, EHANGUP);191 async_answer_0(callid, EHANGUP); 193 192 return; 194 193 } … … 196 195 fs_va = as_get_mappable_page(comm_size); 197 196 if (fs_va == NULL) { 198 ipc_answer_0(callid, EHANGUP);197 async_answer_0(callid, EHANGUP); 199 198 return; 200 199 } … … 208 207 case IPC_M_PHONE_HUNGUP: 209 208 /* The other side has hung up. */ 210 ipc_answer_0(callid, EOK);209 async_answer_0(callid, EOK); 211 210 return; 212 211 case BD_READ_BLOCKS: … … 231 230 break; 232 231 case BD_GET_BLOCK_SIZE: 233 ipc_answer_1(callid, EOK, block_size);232 async_answer_1(callid, EOK, block_size); 234 233 continue; 235 234 case BD_GET_NUM_BLOCKS: … … 240 239 break; 241 240 } 242 ipc_answer_0(callid, retval);241 async_answer_0(callid, retval); 243 242 } 244 243 }
Note:
See TracChangeset
for help on using the changeset viewer.