summaryrefslogtreecommitdiffstats
path: root/c/src/libchip/ide/ata_internal.h
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2008-07-29 02:23:48 +0000
committerChris Johns <chrisj@rtems.org>2008-07-29 02:23:48 +0000
commit3735f0859cbc6a3a3adcdb191b8b5f5881ccb47f (patch)
tree8342cf5e058f1a13d4d3c88df16bed3c3053ecfc /c/src/libchip/ide/ata_internal.h
parent2008-07-29 Chris Johns <chrisj@rtems.org> (diff)
downloadrtems-3735f0859cbc6a3a3adcdb191b8b5f5881ccb47f.tar.bz2
2008-07-29 Chris Johns <chrisj@rtems.org>
* libchip/i2c/spi-sd-card.c: Updated to the libblock changes. * libchip/ide/ata.c: Change to use a mutex rather than disable pre-emption. Updated to the libblock changes. * libchip/ide/ata_internal.h: Updated to the new chains API. * libchip/ide/ide_controller.c: Updated to the libblock changes. Added come debug tracing. * libchip/ide/ide_ctrl_cfg.h, libchip/ide/ide_ctrl_io.h: Updated to the libblock changes.
Diffstat (limited to 'c/src/libchip/ide/ata_internal.h')
-rw-r--r--c/src/libchip/ide/ata_internal.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/c/src/libchip/ide/ata_internal.h b/c/src/libchip/ide/ata_internal.h
index bc7c976709..0c24a96bbf 100644
--- a/c/src/libchip/ide/ata_internal.h
+++ b/c/src/libchip/ide/ata_internal.h
@@ -197,13 +197,13 @@ typedef struct ata_registers_s {
/* ATA request */
typedef struct ata_req_s {
- Chain_Node link; /* link in requests chain */
+ rtems_chain_node link; /* link in requests chain */
char type; /* request type */
ata_registers_t regs; /* ATA command */
uint32_t cnt; /* Number of sectors to be exchanged */
uint32_t cbuf; /* number of current buffer from breq in use */
uint32_t pos; /* current position in 'cbuf' */
- blkdev_request *breq; /* blkdev_request which corresponds to the
+ rtems_blkdev_request *breq; /* blkdev_request which corresponds to the
* ata request
*/
rtems_id sema; /* semaphore which is used if synchronous
@@ -258,7 +258,7 @@ typedef struct ata_queue_msg_s {
* mapping of IDE controllers and interrupt vectors
*/
typedef struct ata_int_st_s {
- Chain_Node link;
+ rtems_chain_node link;
rtems_device_minor_number ctrl_minor;
} ata_int_st_t;
@@ -275,7 +275,7 @@ typedef struct ata_ide_dev_s {
* ATA device description
*/
typedef struct ata_dev_s {
- int8_t present; /* 1 -- present, 0 -- not present, */
+ int8_t present; /* 1 -- present, 0 -- not present, */
/* -1 -- non-initialized */
uint16_t cylinders;
uint16_t heads;
@@ -300,7 +300,7 @@ typedef struct ata_dev_s {
typedef struct ata_ide_ctrl_s {
rtems_boolean present; /* controller state */
ata_dev_t device[2]; /* ata diveces description */
- Chain_Control reqs; /* requests chain */
+ rtems_chain_control reqs; /* requests chain */
} ata_ide_ctrl_t;
#endif /* __ATA_INTERNAL_H__ */