Changeset 7d4a859 in rtems
- Timestamp:
- 06/12/12 06:54:19 (11 years ago)
- Branches:
- 4.11, 5, master
- Children:
- 9f527308
- Parents:
- 2d7ae960
- git-author:
- Sebastian Huber <sebastian.huber@…> (06/12/12 06:54:19)
- git-committer:
- Sebastian Huber <sebastian.huber@…> (06/12/12 08:12:40)
- Location:
- cpukit/libblock
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
cpukit/libblock/include/rtems/bdbuf.h
r2d7ae960 r7d4a859 319 319 } avl; 320 320 321 const rtems_disk_device *dd;/**< disk device */321 rtems_disk_device *dd; /**< disk device */ 322 322 323 323 rtems_blkdev_bnum block; /**< block number on the device */ -
cpukit/libblock/src/bdbuf.c
r2d7ae960 r7d4a859 59 59 { 60 60 rtems_chain_control bds; /**< The transfer list of BDs. */ 61 const rtems_disk_device *dd;/**< The device the transfer is for. */61 rtems_disk_device *dd; /**< The device the transfer is for. */ 62 62 bool syncing; /**< The data is a sync'ing. */ 63 63 rtems_blkdev_request* write_req; /**< The write request array. */ … … 114 114 bool sync_active; /**< True if a sync is active. */ 115 115 rtems_id sync_requester; /**< The sync requester. */ 116 const rtems_disk_device *sync_device;/**< The device to sync and116 rtems_disk_device *sync_device; /**< The device to sync and 117 117 * BDBUF_INVALID_DEV not a device 118 118 * sync. */ … … 1224 1224 static void 1225 1225 rtems_bdbuf_setup_empty_buffer (rtems_bdbuf_buffer *bd, 1226 const rtems_disk_device*dd,1226 rtems_disk_device *dd, 1227 1227 rtems_blkdev_bnum block) 1228 1228 { … … 1240 1240 1241 1241 static rtems_bdbuf_buffer * 1242 rtems_bdbuf_get_buffer_from_lru_list ( constrtems_disk_device *dd,1243 rtems_blkdev_bnum block)1242 rtems_bdbuf_get_buffer_from_lru_list (rtems_disk_device *dd, 1243 rtems_blkdev_bnum block) 1244 1244 { 1245 1245 rtems_chain_node *node = rtems_chain_first (&bdbuf_cache.lru); … … 1708 1708 1709 1709 static rtems_bdbuf_buffer * 1710 rtems_bdbuf_get_buffer_for_read_ahead ( constrtems_disk_device *dd,1711 rtems_blkdev_bnum block)1710 rtems_bdbuf_get_buffer_for_read_ahead (rtems_disk_device *dd, 1711 rtems_blkdev_bnum block) 1712 1712 { 1713 1713 rtems_bdbuf_buffer *bd = NULL; … … 1733 1733 1734 1734 static rtems_bdbuf_buffer * 1735 rtems_bdbuf_get_buffer_for_access ( constrtems_disk_device *dd,1736 rtems_blkdev_bnum block)1735 rtems_bdbuf_get_buffer_for_access (rtems_disk_device *dd, 1736 rtems_blkdev_bnum block) 1737 1737 { 1738 1738 rtems_bdbuf_buffer *bd = NULL; … … 1875 1875 1876 1876 static rtems_status_code 1877 rtems_bdbuf_execute_transfer_request ( const rtems_disk_device*dd,1878 rtems_blkdev_request 1879 bool 1877 rtems_bdbuf_execute_transfer_request (rtems_disk_device *dd, 1878 rtems_blkdev_request *req, 1879 bool cache_locked) 1880 1880 { 1881 1881 rtems_status_code sc = RTEMS_SUCCESSFUL; … … 1937 1937 1938 1938 static rtems_status_code 1939 rtems_bdbuf_execute_read_request ( const rtems_disk_device*dd,1940 rtems_bdbuf_buffer 1941 uint32_t 1939 rtems_bdbuf_execute_read_request (rtems_disk_device *dd, 1940 rtems_bdbuf_buffer *bd, 1941 uint32_t transfer_count) 1942 1942 { 1943 1943 rtems_blkdev_request *req = NULL; … … 2286 2286 uint32_t bufs_per_bd = 0; 2287 2287 2288 constrtems_disk_device *dd = transfer->dd;2288 rtems_disk_device *dd = transfer->dd; 2289 2289 2290 2290 bufs_per_bd = dd->block_size / bdbuf_config.buffer_min; … … 2385 2385 */ 2386 2386 static void 2387 rtems_bdbuf_swapout_modified_processing ( const rtems_disk_device**dd_ptr,2387 rtems_bdbuf_swapout_modified_processing (rtems_disk_device **dd_ptr, 2388 2388 rtems_chain_control* chain, 2389 2389 rtems_chain_control* transfer,
Note: See TracChangeset
for help on using the changeset viewer.