Changeset 96cbd18 in mainline for uspace/srv/bd/ata_bd/ata_bd.h


Ignore:
Timestamp:
2013-06-21T18:54:29Z (12 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
89ac5513, ccf282f
Parents:
7901ac8
Message:

Encapsulate controller state in ata_bd.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/bd/ata_bd/ata_bd.h

    r7901ac8 r96cbd18  
    9595typedef struct {
    9696        bool present;
     97        struct ata_ctrl *ctrl;
    9798
    9899        /** Device type */
     
    122123} disk_t;
    123124
     125/** ATA controller */
     126typedef struct ata_ctrl {
     127        /** I/O base address of the command registers */
     128        uintptr_t cmd_physical;
     129        /** I/O base address of the control registers */
     130        uintptr_t ctl_physical;
     131
     132        /** Command registers */
     133        ata_cmd_t *cmd;
     134        /** Control registers */
     135        ata_ctl_t *ctl;
     136
     137        /** Per-disk state. */
     138        disk_t disk[MAX_DISKS];
     139} ata_ctrl_t;
     140
    124141#endif
    125142
Note: See TracChangeset for help on using the changeset viewer.