Changeset c5747fe in mainline for uspace/lib
- Timestamp:
- 2009-05-18T17:16:24Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 1090b8c
- Parents:
- 687246b
- Location:
- uspace/lib
- Files:
-
- 1 edited
- 1 moved
-
libblock/libblock.c (modified) (2 diffs)
-
libc/include/ipc/bd.h (moved) (moved from uspace/srv/rd/rd.h ) (2 diffs)
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 */
Note:
See TracChangeset
for help on using the changeset viewer.
