Changes between Version 8 and Version 9 of hba_driver


Ignore:
Timestamp:
Apr 2, 2015, 12:33:44 PM (9 years ago)
Author:
alain
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • hba_driver

    v8 v9  
    3131typedef struct hba_cmd_desc_s  // size = 16 bytes
    3232{
    33     unsigned char       flag[2];    // W in bit 6 of flag[0]
    34     unsigned char       prdtl[2];       // Number of buffers
     33    unsigned char       flag[2];            // W in bit 6 of flag[0]
     34    unsigned char       prdtl[2];           // Number of buffers
    3535    unsigned int        prdbc;          // Number of bytes actually transfered
    36     unsigned int        ctba;           // Command Table base address 32 LSB bits
    37     unsigned int        ctbau;          // Command Table base address 32 MSB bits
     36    unsigned int        ctba;                 // Command Table base address 32 LSB bits
     37    unsigned int        ctbau;               // Command Table base address 32 MSB bits
    3838} hba_cmd_desc_t;
    3939}}}
     
    4545typedef struct hba_cmd_header_s // size = 16 bytes
    4646{
    47     unsigned int        res0;       // reserved
    48     unsigned char           lba0;           // LBA 7:0
    49     unsigned char           lba1;           // LBA 15:8
    50     unsigned char           lba2;           // LBA 23:16
    51     unsigned char           res1;           // reserved
    52     unsigned char           lba3;           // LBA 31:24
    53     unsigned char           lba4;           // LBA 39:32
    54     unsigned char           lba5;           // LBA 47:40
    55     unsigned char           res2;           // reserved
    56     unsigned int        res3;       // reserved
     47    unsigned int             res0;       // reserved   
     48    unsigned char          lba0;       // LBA 7:0
     49    unsigned char          lba1;       // LBA 15:8
     50    unsigned char          lba2;       // LBA 23:16
     51    unsigned char          res1;       // reserved
     52    unsigned char          lba3;       // LBA 31:24
     53    unsigned char          lba4;       // LBA 39:32
     54    unsigned char          lba5;       // LBA 47:40
     55    unsigned char          res2;       // reserved
     56    unsigned int             res3;       // reserved   
    5757} hba_cmd_header_t;
    5858
    5959typedef struct hba_cmd_buffer_s  // size = 16 bytes
    6060{
    61     unsigned int        dba;        // Buffer base address 32 LSB bits
    62     unsigned int        dbau;       // Buffer base address 32 MSB bits
    63     unsigned int        res0;       // reserved
    64     unsigned int        dbc;        // Buffer byte count
     61    unsigned int        dba;          // Buffer base address 32 LSB bits
     62    unsigned int        dbau;      // Buffer base address 32 MSB bits
     63    unsigned int        res0;         // reserved
     64    unsigned int        dbc;          // Buffer byte count
    6565} hba_cmd_buffer_t;
    6666
    6767typedef struct hba_cmd_table_s  // size = 32 bytes
    6868{
    69     hba_cmd_header_t   header;      // contains LBA
    70     hba_cmd_buffer_t   buffer;      // only one physical buffer
     69    hba_cmd_header_t   header;     // contains LBA
     70    hba_cmd_buffer_t     buffer;       // only one physical buffer
    7171} hba_cmd_table_t;
    7272}}}