Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset a624cbfd in mainline


Ignore:
Timestamp:
2009-06-16T19:56:01Z (13 years ago)
Author:
Jiri Svoboda <jirik.svoboda@…>
Branches:
lfn, master
Children:
08c9f7d
Parents:
fbbbb8a
Message:

Improve ATA cmd regs block definition to suppress warnings.

File:
1 edited

Legend:

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

    rfbbbb8a ra624cbfd  
    5151};
    5252
     53/** ATA Command Register Block. */
    5354typedef union {
    54         /* Read */
     55        /* Read/Write */
    5556        struct {
    56                 uint8_t data_port;
    57                 uint8_t error;
     57                uint16_t data_port;
    5858                uint8_t sector_count;
    5959                uint8_t sector_number;
     
    6161                uint8_t cylinder_high;
    6262                uint8_t drive_head;
     63                uint8_t pad_rw0;               
     64        };
     65
     66        /* Read Only */
     67        struct {
     68                uint8_t pad_ro0;
     69                uint8_t error;
     70                uint8_t pad_ro1[5];
    6371                uint8_t status;
    6472        };
    6573
    66         /* Write */
     74        /* Write Only */
    6775        struct {
    68                 uint8_t pad0[7];
     76                uint8_t pad_wo0;
     77                uint8_t features;
     78                uint8_t pad_wo1[5];
    6979                uint8_t command;
    7080        };
Note: See TracChangeset for help on using the changeset viewer.