summaryrefslogtreecommitdiffstats
path: root/cpukit/libblock/include/rtems
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2004-04-17 08:15:17 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2004-04-17 08:15:17 +0000
commit8b961495bbc5cc4efa9a199dd0dc2397ba0c33ca (patch)
treef4c88be7e6dc915e7bb8c29c78df66a554895154 /cpukit/libblock/include/rtems
parent2004-04-17 Ralf Corsepius <ralf_corsepius@rtems.org> (diff)
downloadrtems-8b961495bbc5cc4efa9a199dd0dc2397ba0c33ca.tar.bz2
Remove stray white spaces.
Diffstat (limited to 'cpukit/libblock/include/rtems')
-rw-r--r--cpukit/libblock/include/rtems/bdbuf.h26
-rw-r--r--cpukit/libblock/include/rtems/blkdev.h20
-rw-r--r--cpukit/libblock/include/rtems/diskdevs.h14
-rw-r--r--cpukit/libblock/include/rtems/ide_part_table.h2
4 files changed, 31 insertions, 31 deletions
diff --git a/cpukit/libblock/include/rtems/bdbuf.h b/cpukit/libblock/include/rtems/bdbuf.h
index 0de2bd77f8..f2c2bfa567 100644
--- a/cpukit/libblock/include/rtems/bdbuf.h
+++ b/cpukit/libblock/include/rtems/bdbuf.h
@@ -31,13 +31,13 @@ extern "C" {
* Descriptors organized in AVL-tree to speedup buffer lookup.
* dev and block fields are search key in AVL-tree.
* Modified buffers, free buffers and used buffers linked in 'mod', 'free' and
- * 'lru' chains appropriately.
+ * 'lru' chains appropriately.
*/
typedef struct bdbuf_buffer {
Chain_Node link; /* Link in the lru, mod or free chains */
- struct bdbuf_avl_node {
+ struct bdbuf_avl_node {
signed char cache; /* Cache */
struct bdbuf_buffer* left; /* Left Child */
@@ -86,9 +86,9 @@ extern rtems_bdbuf_config rtems_bdbuf_configuration[];
extern int rtems_bdbuf_configuration_size;
/* rtems_bdbuf_init --
- * Prepare buffering layer to work - initialize buffer descritors
+ * Prepare buffering layer to work - initialize buffer descritors
* and (if it is neccessary) buffers. Buffers will be allocated accoriding
- * to the configuration table, each entry describes kind of block and
+ * to the configuration table, each entry describes kind of block and
* amount requested. After initialization all blocks is placed into
* free elements lists.
*
@@ -107,11 +107,11 @@ rtems_bdbuf_init(rtems_bdbuf_config *conf_table, int size);
/* rtems_bdbuf_get --
* Obtain block buffer. If specified block already cached (i.e. there's
* block in the _modified_, or _recently_used_), return address
- * of appropriate buffer descriptor and increment reference counter to 1.
- * If block is not cached, allocate new buffer and return it. Data
- * shouldn't be read to the buffer from media; buffer may contains
- * arbitrary data. This primitive may be blocked if there are no free
- * buffer descriptors available and there are no unused non-modified
+ * of appropriate buffer descriptor and increment reference counter to 1.
+ * If block is not cached, allocate new buffer and return it. Data
+ * shouldn't be read to the buffer from media; buffer may contains
+ * arbitrary data. This primitive may be blocked if there are no free
+ * buffer descriptors available and there are no unused non-modified
* (or synchronized with media) buffers available.
*
* PARAMETERS:
@@ -163,7 +163,7 @@ rtems_bdbuf_read(dev_t device, blkdev_bnum block, bdbuf_buffer **bdb_ptr);
*
* PARAMETERS:
* bd_buf - pointer to the bdbuf_buffer structure previously obtained using
- * get/read primitive.
+ * get/read primitive.
*
* RETURNS:
* RTEMS status code (RTEMS_SUCCESSFUL if operation completed successfully
@@ -177,7 +177,7 @@ rtems_bdbuf_release(bdbuf_buffer *bd_buf);
/* rtems_bdbuf_release_modified --
* Release buffer allocated before, assuming that it is _modified_ by
- * it's owner. This primitive decrease usage counter for buffer, mark
+ * it's owner. This primitive decrease usage counter for buffer, mark
* buffer descriptor as modified. If usage counter is 0, insert it at
* end of mod chain and release flush_sema semaphore to activate the
* flush task.
@@ -242,7 +242,7 @@ rtems_bdbuf_syncdev(dev_t dev);
*
* RETURNS:
* RTEMS status code: RTEMS_SUCCESSFUL if operation completed successfully,
- * RTEMS_INVALID_SIZE if specified block size is invalid (not a power
+ * RTEMS_INVALID_SIZE if specified block size is invalid (not a power
* of 2), RTEMS_NOT_DEFINED if buffer pool for this or greater block size
* is not configured.
*/
@@ -256,7 +256,7 @@ rtems_bdbuf_find_pool(int block_size, rtems_bdpool_id *pool);
* pool - buffer pool number
* block_size - block size for which buffer pool is configured returned
* there
- * blocks - number of buffers in buffer pool returned there
+ * blocks - number of buffers in buffer pool returned there
*
* RETURNS:
* RTEMS status code: RTEMS_SUCCESSFUL if operation completed successfully,
diff --git a/cpukit/libblock/include/rtems/blkdev.h b/cpukit/libblock/include/rtems/blkdev.h
index e6424c6944..fac71522b6 100644
--- a/cpukit/libblock/include/rtems/blkdev.h
+++ b/cpukit/libblock/include/rtems/blkdev.h
@@ -1,4 +1,4 @@
-/*
+/*
* blkdev.h - block device driver interface definitions
*
* Copyright (C) 2001 OKTET Ltd., St.-Petersburg, Russia
@@ -18,7 +18,7 @@ extern "C" {
#endif
/* Interface with device drivers
- * Block device looks, initialized and behaves like traditional RTEMS device
+ * Block device looks, initialized and behaves like traditional RTEMS device
* driver. Heart of the block device driver is in BIOREQUEST ioctl. This call
* puts I/O request to the block device queue, in priority order, for
* asynchronous processing. When driver executes request, req_done
@@ -43,7 +43,7 @@ typedef enum blkdev_request_op {
* errno - errno value to be passed to the user when
* status != RTEMS_SUCCESSFUL
*/
-typedef void (* blkdev_request_cb)(void *arg,
+typedef void (* blkdev_request_cb)(void *arg,
rtems_status_code status,
int error);
@@ -56,19 +56,19 @@ typedef struct blkdev_sg_buffer {
} blkdev_sg_buffer;
/* blkdev_request (Block Device Request) structure is
- * used to read/write a number of blocks from/to device.
+ * used to read/write a number of blocks from/to device.
*/
typedef struct blkdev_request {
blkdev_request_op req; /* Block device operation (read or write) */
blkdev_request_cb req_done; /* Callback function */
void *done_arg; /* Argument to be passed to callback function*/
rtems_status_code status; /* Last I/O operation completion status */
- int error; /* If status != RTEMS_SUCCESSFUL, this field
+ int error; /* If status != RTEMS_SUCCESSFUL, this field
* contains error code
*/
blkdev_bnum start; /* Start block number */
uint32_t count; /* Number of blocks to be exchanged */
- uint32_t bufnum; /* Number of buffers provided */
+ uint32_t bufnum; /* Number of buffers provided */
blkdev_sg_buffer bufs[0];/* List of scatter/gather buffers */
} blkdev_request;
@@ -80,8 +80,8 @@ typedef struct blkdev_request {
#define BLKIO_SYNCDEV _IO('B', 4)
/* Device driver interface conventions suppose that driver may
- * contain initialize/open/close/read/write/ioctl entry points. These
- * primitives (except initialize) can be implemented in generic fashion,
+ * contain initialize/open/close/read/write/ioctl entry points. These
+ * primitives (except initialize) can be implemented in generic fashion,
* based upon supplied block device driver ioctl handler. Every block
* device driver should provide initialize entry point, which is register
* all block devices and appropriate ioctl handlers.
@@ -104,8 +104,8 @@ rtems_blkdev_generic_read(
);
/* blkdev_generic_write --
- * Generic block device driver write primitive. Implemented using block
- * device buffer management primitives.
+ * Generic block device driver write primitive. Implemented using block
+ * device buffer management primitives.
*/
rtems_device_driver
rtems_blkdev_generic_write(
diff --git a/cpukit/libblock/include/rtems/diskdevs.h b/cpukit/libblock/include/rtems/diskdevs.h
index 46a3921663..b2bf652b1d 100644
--- a/cpukit/libblock/include/rtems/diskdevs.h
+++ b/cpukit/libblock/include/rtems/diskdevs.h
@@ -1,4 +1,4 @@
-/*
+/*
* logdisk.h - Physical and logical block devices (disks) support
*
* Copyright (C) 2001 OKTET Ltd., St.-Petersburg, Russia
@@ -48,7 +48,7 @@ typedef struct disk_device {
int size; /* Size of physical or logical disk
in disk blocks */
int block_size; /* Size of device block (minimum
- transfer unit) in bytes
+ transfer unit) in bytes
(must be power of 2) */
int block_size_log2; /* log2 of block_size */
rtems_bdpool_id pool; /* Buffer pool assigned to this
@@ -91,13 +91,13 @@ rtems_disk_create_phys(dev_t dev, int block_size, int disk_size,
* (DOS-like partition table, BSD disk label, etc). This function usually
* invoked from application when application-specific splitting are in use,
* or from generic code which handle different logical disk organizations.
- * This primitive will register device in rtems (invoke
+ * This primitive will register device in rtems (invoke
* rtems_io_register_name).
*
* PARAMETERS:
* dev - logical device identifier (major, minor numbers)
* phys - physical device (block device which holds this logical disk)
- * identifier
+ * identifier
* start - starting block number on the physical device
* size - logical disk size in blocks
* name - logical disk name
@@ -105,7 +105,7 @@ rtems_disk_create_phys(dev_t dev, int block_size, int disk_size,
* RETURNS:
* RTEMS_SUCCESSFUL if logical device successfully added, or error code
* if error occured (device already registered, no physical device
- * exists, logical disk is out of physical disk boundaries, no memory
+ * exists, logical disk is out of physical disk boundaries, no memory
* available).
*/
rtems_status_code
@@ -180,7 +180,7 @@ rtems_disk_next(dev_t dev);
* none
*
* RETURNS:
- * RTEMS_SUCCESSFUL if library initialized, or error code if error
+ * RTEMS_SUCCESSFUL if library initialized, or error code if error
* occured.
*/
rtems_status_code
@@ -193,7 +193,7 @@ rtems_disk_io_initialize(void);
* none
*
* RETURNS:
- * RTEMS_SUCCESSFUL if all resources released, or error code if error
+ * RTEMS_SUCCESSFUL if all resources released, or error code if error
* occured.
*/
rtems_status_code
diff --git a/cpukit/libblock/include/rtems/ide_part_table.h b/cpukit/libblock/include/rtems/ide_part_table.h
index 88ffc93105..e00f610e40 100644
--- a/cpukit/libblock/include/rtems/ide_part_table.h
+++ b/cpukit/libblock/include/rtems/ide_part_table.h
@@ -77,7 +77,7 @@
* sector_data_t --
* corresponds to the sector on the device
*/
-typedef struct sector_data_s
+typedef struct sector_data_s
{
uint32_t sector_num; /* sector number on the device */
uint8_t data[0]; /* raw sector data */