Changeset 40284de in rtems
- Timestamp:
- 05/30/12 10:43:56 (11 years ago)
- Branches:
- 4.11, 5, master
- Children:
- 2c6cc3c
- Parents:
- b6911069
- git-author:
- Sebastian Huber <sebastian.huber@…> (05/30/12 10:43:56)
- git-committer:
- Sebastian Huber <sebastian.huber@…> (05/31/12 09:05:48)
- Files:
-
- 20 edited
Legend:
- Unmodified
- Added
- Removed
-
cpukit/libblock/include/rtems/bdbuf.h
rb6911069 r40284de 491 491 rtems_status_code 492 492 rtems_bdbuf_get ( 493 constrtems_disk_device *dd,493 rtems_disk_device *dd, 494 494 rtems_blkdev_bnum block, 495 495 rtems_bdbuf_buffer** bd … … 525 525 rtems_status_code 526 526 rtems_bdbuf_read ( 527 constrtems_disk_device *dd,527 rtems_disk_device *dd, 528 528 rtems_blkdev_bnum block, 529 529 rtems_bdbuf_buffer** bd … … 617 617 */ 618 618 rtems_status_code 619 rtems_bdbuf_syncdev ( constrtems_disk_device *dd);619 rtems_bdbuf_syncdev (rtems_disk_device *dd); 620 620 621 621 /** … … 631 631 */ 632 632 void 633 rtems_bdbuf_purge_dev ( constrtems_disk_device *dd);633 rtems_bdbuf_purge_dev (rtems_disk_device *dd); 634 634 635 635 /** -
cpukit/libblock/include/rtems/bdpart.h
rb6911069 r40284de 401 401 const char *disk_name, 402 402 int *fd_ptr, 403 constrtems_disk_device **dd_ptr,403 rtems_disk_device **dd_ptr, 404 404 rtems_blkdev_bnum *disk_end 405 405 ); -
cpukit/libblock/include/rtems/blkdev.h
rb6911069 r40284de 193 193 static inline int rtems_disk_fd_get_disk_device( 194 194 int fd, 195 constrtems_disk_device **dd_ptr195 rtems_disk_device **dd_ptr 196 196 ) 197 197 { -
cpukit/libblock/src/bdbuf.c
rb6911069 r40284de 1775 1775 1776 1776 rtems_status_code 1777 rtems_bdbuf_get ( const rtems_disk_device*dd,1777 rtems_bdbuf_get (rtems_disk_device *dd, 1778 1778 rtems_blkdev_bnum block, 1779 1779 rtems_bdbuf_buffer **bd_ptr) … … 1993 1993 1994 1994 rtems_status_code 1995 rtems_bdbuf_read ( const rtems_disk_device*dd,1995 rtems_bdbuf_read (rtems_disk_device *dd, 1996 1996 rtems_blkdev_bnum block, 1997 1997 rtems_bdbuf_buffer **bd_ptr) … … 2177 2177 2178 2178 rtems_status_code 2179 rtems_bdbuf_syncdev ( constrtems_disk_device *dd)2179 rtems_bdbuf_syncdev (rtems_disk_device *dd) 2180 2180 { 2181 2181 if (rtems_bdbuf_tracer) … … 2878 2878 2879 2879 void 2880 rtems_bdbuf_purge_dev ( constrtems_disk_device *dd)2880 rtems_bdbuf_purge_dev (rtems_disk_device *dd) 2881 2881 { 2882 2882 rtems_chain_control purge_list; -
cpukit/libblock/src/bdpart-read.c
rb6911069 r40284de 69 69 const char *disk_name, 70 70 int *fd_ptr, 71 constrtems_disk_device **dd_ptr,71 rtems_disk_device **dd_ptr, 72 72 rtems_blkdev_bnum *disk_end 73 73 ) … … 76 76 int rv = 0; 77 77 int fd = -1; 78 constrtems_disk_device *dd = NULL;78 rtems_disk_device *dd = NULL; 79 79 rtems_blkdev_bnum disk_begin = 0; 80 80 rtems_blkdev_bnum block_size = 0; … … 186 186 187 187 static rtems_status_code rtems_bdpart_read_record( 188 constrtems_disk_device *dd,188 rtems_disk_device *dd, 189 189 rtems_blkdev_bnum index, 190 190 rtems_bdbuf_buffer **block … … 238 238 const uint8_t *data = NULL; 239 239 int fd = -1; 240 constrtems_disk_device *dd = NULL;240 rtems_disk_device *dd = NULL; 241 241 242 242 /* Check parameter */ -
cpukit/libblock/src/bdpart-register.c
rb6911069 r40284de 49 49 size_t i = 0; 50 50 int fd = -1; 51 constrtems_disk_device *dd = NULL;51 rtems_disk_device *dd = NULL; 52 52 53 53 /* Get disk data */ … … 140 140 size_t i = 0; 141 141 int fd = -1; 142 constrtems_disk_device *dd = NULL;142 rtems_disk_device *dd = NULL; 143 143 144 144 /* Get disk data */ -
cpukit/libblock/src/bdpart-write.c
rb6911069 r40284de 46 46 47 47 static rtems_status_code rtems_bdpart_new_record( 48 constrtems_disk_device *dd,48 rtems_disk_device *dd, 49 49 rtems_blkdev_bnum index, 50 50 rtems_bdbuf_buffer **block … … 104 104 uint8_t *data = NULL; 105 105 int fd = -1; 106 constrtems_disk_device *dd = NULL;106 rtems_disk_device *dd = NULL; 107 107 108 108 /* Check if we have something to do */ -
cpukit/libblock/src/blkdev-imfs.c
rb6911069 r40284de 39 39 { 40 40 int rv; 41 constrtems_blkdev_imfs_context *ctx = IMFS_generic_get_context_by_iop(iop);42 constrtems_disk_device *dd = &ctx->dd;41 rtems_blkdev_imfs_context *ctx = IMFS_generic_get_context_by_iop(iop); 42 rtems_disk_device *dd = &ctx->dd; 43 43 ssize_t remaining = (ssize_t) count; 44 44 off_t offset = iop->offset; … … 93 93 { 94 94 int rv; 95 constrtems_blkdev_imfs_context *ctx = IMFS_generic_get_context_by_iop(iop);96 constrtems_disk_device *dd = &ctx->dd;95 rtems_blkdev_imfs_context *ctx = IMFS_generic_get_context_by_iop(iop); 96 rtems_disk_device *dd = &ctx->dd; 97 97 ssize_t remaining = (ssize_t) count; 98 98 off_t offset = iop->offset; … … 175 175 ) 176 176 { 177 constrtems_blkdev_imfs_context *ctx =177 rtems_blkdev_imfs_context *ctx = 178 178 IMFS_generic_get_context_by_location(loc); 179 constrtems_disk_device *dd = &ctx->dd;179 rtems_disk_device *dd = &ctx->dd; 180 180 181 181 buf->st_rdev = rtems_disk_get_device_identifier(dd); … … 191 191 { 192 192 int rv = 0; 193 constrtems_blkdev_imfs_context *ctx = IMFS_generic_get_context_by_iop(iop);194 constrtems_disk_device *dd = &ctx->dd;193 rtems_blkdev_imfs_context *ctx = IMFS_generic_get_context_by_iop(iop); 194 rtems_disk_device *dd = &ctx->dd; 195 195 rtems_status_code sc = rtems_bdbuf_syncdev(dd); 196 196 … … 333 333 rtems_disk_device *dd; 334 334 335 rv = ioctl(fd, RTEMS_BLKIO_GETDISKDEV, &dd);335 rv = rtems_disk_fd_get_disk_device(fd, &dd); 336 336 if (rv == 0) { 337 337 rtems_blkdev_bnum device_block_count = rtems_disk_get_block_count(dd); -
testsuites/fstests/fsbdpart01/init.c
rb6911069 r40284de 81 81 82 82 if (exists) { 83 constrtems_disk_device *dd = NULL;83 rtems_disk_device *dd = NULL; 84 84 int rv = 0; 85 85 -
testsuites/libtests/block01/init.c
rb6911069 r40284de 49 49 rtems_status_code sc = RTEMS_SUCCESSFUL; 50 50 rtems_disk_device *dd = NULL; 51 constrtems_disk_device *fd_dd = NULL;51 rtems_disk_device *fd_dd = NULL; 52 52 int fd = -1; 53 53 int rv = -1; -
testsuites/libtests/block02/init.c
rb6911069 r40284de 53 53 #define BLOCK_COUNT_B 1 54 54 55 static constrtems_disk_device *dd_a;56 57 static constrtems_disk_device *dd_b;55 static rtems_disk_device *dd_a; 56 57 static rtems_disk_device *dd_b; 58 58 59 59 static volatile bool sync_done = false; -
testsuites/libtests/block03/init.c
rb6911069 r40284de 49 49 #define BLOCK_COUNT 2 50 50 51 static constrtems_disk_device *dd;51 static rtems_disk_device *dd; 52 52 53 53 static volatile bool sync_done = false; -
testsuites/libtests/block04/init.c
rb6911069 r40284de 49 49 #define BLOCK_COUNT 1 50 50 51 static constrtems_disk_device *dd;51 static rtems_disk_device *dd; 52 52 53 53 static rtems_id task_id_low; -
testsuites/libtests/block05/init.c
rb6911069 r40284de 61 61 static unsigned output_level = 0; 62 62 63 static constrtems_disk_device *dd_a;64 65 static constrtems_disk_device *dd_b;63 static rtems_disk_device *dd_a; 64 65 static rtems_disk_device *dd_b; 66 66 67 67 static rtems_id task_id_init; … … 394 394 uint32_t block_size, 395 395 rtems_blkdev_bnum block_count, 396 constrtems_disk_device **dd_ptr396 rtems_disk_device **dd_ptr 397 397 ) 398 398 { -
testsuites/libtests/block06/init.c
rb6911069 r40284de 109 109 rtems_device_minor_number minor; 110 110 bool passed; 111 const rtems_disk_device*dd;111 rtems_disk_device *dd; 112 112 } bdbuf_task_control; 113 113 … … 346 346 rtems_id master, 347 347 rtems_device_major_number major, 348 const rtems_disk_device*dd)348 rtems_disk_device *dd) 349 349 { 350 350 char name[6]; … … 615 615 616 616 static bool 617 bdbuf_tests_setup_disk (rtems_device_major_number *major,618 const rtems_disk_device**dd_ptr)617 bdbuf_tests_setup_disk (rtems_device_major_number *major, 618 rtems_disk_device **dd_ptr) 619 619 { 620 620 rtems_status_code sc; … … 1766 1766 int t; 1767 1767 bool passed = true; 1768 const rtems_disk_device*dd;1768 rtems_disk_device *dd; 1769 1769 1770 1770 /* -
testsuites/libtests/block08/bdbuf_tests.c
rb6911069 r40284de 48 48 49 49 /** Device ID used for testing */ 50 constrtems_disk_device *test_dd = NULL;50 rtems_disk_device *test_dd = NULL; 51 51 52 52 /** Test result variable */ -
testsuites/libtests/block08/bdbuf_tests.h
rb6911069 r40284de 151 151 152 152 /** Device ID used for testing */ 153 extern constrtems_disk_device *test_dd;153 extern rtems_disk_device *test_dd; 154 154 155 155 /** -
testsuites/libtests/block09/init.c
rb6911069 r40284de 144 144 145 145 static void check_read( 146 constrtems_disk_device *dd,146 rtems_disk_device *dd, 147 147 rtems_blkdev_bnum block, 148 148 rtems_status_code expected_sc -
testsuites/libtests/block10/init.c
rb6911069 r40284de 56 56 typedef void (*release_func)(char task, rtems_bdbuf_buffer *bd); 57 57 58 static constrtems_disk_device *dd;58 static rtems_disk_device *dd; 59 59 60 60 static rtems_id task_id_init; -
testsuites/libtests/block11/init.c
rb6911069 r40284de 158 158 ramdisk *rd; 159 159 int fd; 160 constrtems_disk_device *dd;160 rtems_disk_device *dd; 161 161 struct stat st; 162 162
Note: See TracChangeset
for help on using the changeset viewer.