Changeset c5747fe in mainline
- Timestamp:
- 2009-05-18T17:16:24Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 1090b8c
- Parents:
- 687246b
- Location:
- uspace
- Files:
-
- 2 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/libblock/libblock.c
r687246b rc5747fe 38 38 #include "libblock.h" 39 39 #include "../../srv/vfs/vfs.h" 40 #include "../../srv/rd/rd.h"41 40 #include <ipc/devmap.h> 41 #include <ipc/bd.h> 42 42 #include <ipc/services.h> 43 43 #include <errno.h> … … 478 478 /* Refill the communication buffer with a new block. */ 479 479 ipcarg_t retval; 480 int rc = async_req_2_1(devcon->dev_phone, RD_READ_BLOCK,480 int rc = async_req_2_1(devcon->dev_phone, BD_READ_BLOCK, 481 481 *pos / block_size, block_size, &retval); 482 482 if ((rc != EOK) || (retval != EOK)) -
uspace/lib/libc/include/ipc/bd.h
r687246b rc5747fe 1 1 /* 2 * Copyright (c) 2007 Michal Konopa 3 * Copyright (c) 2007 Martin Jelen 4 * Copyright (c) 2007 Peter Majer 5 * Copyright (c) 2007 Jakub Jermar 2 * Copyright (c) 2009 Jiri Svoboda 6 3 * All rights reserved. 7 4 * … … 30 27 */ 31 28 32 /** @addtogroup rd29 /** @addtogroup libcipc 33 30 * @{ 34 31 */ 32 /** @file 33 */ 35 34 36 /** 37 * @file rd.h 38 * @brief Initial RAM disk for HelenOS - header 39 */ 35 #ifndef LIBC_IPC_BD_H_ 36 #define LIBC_IPC_BD_H_ 40 37 41 /* Basic constants. */ 38 #include <ipc/ipc.h> 42 39 43 #ifndef RD_RD_H_ 44 #define RD_RD_H_ 45 46 #define RD_BASE 1024 47 #define RD_READ_BLOCK (RD_BASE + 1) /**< Method for reading block. */ 48 #define RD_WRITE_BLOCK (RD_BASE + 2) /**< Method for writing block. */ 40 typedef enum { 41 BD_READ_BLOCK = IPC_FIRST_USER_METHOD, 42 BD_WRITE_BLOCK 43 } bd_request_t; 49 44 50 45 #endif 46 47 /** @} 48 */ -
uspace/srv/rd/rd.c
r687246b rc5747fe 54 54 #include <stdio.h> 55 55 #include <ipc/devmap.h> 56 #include "rd.h"56 #include <ipc/bd.h> 57 57 58 58 #define NAME "rd" … … 123 123 ipc_answer_0(callid, EOK); 124 124 return; 125 case RD_READ_BLOCK:125 case BD_READ_BLOCK: 126 126 offset = IPC_GET_ARG1(call); 127 127 block_size = IPC_GET_ARG2(call); … … 145 145 retval = EOK; 146 146 break; 147 case RD_WRITE_BLOCK:147 case BD_WRITE_BLOCK: 148 148 offset = IPC_GET_ARG1(call); 149 149 block_size = IPC_GET_ARG2(call);
Note:
See TracChangeset
for help on using the changeset viewer.