Changeset ae7d03c in mainline for uspace/drv/block/ahci/ahci_hw.h


Ignore:
Timestamp:
2018-05-10T13:39:19Z (6 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
e8975278
Parents:
b277bef
git-author:
Jiri Svoboda <jiri@…> (2018-05-10 07:38:12)
git-committer:
Jiri Svoboda <jiri@…> (2018-05-10 13:39:19)
Message:

Selected ccheck-proposed comment fixes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/block/ahci/ahci_hw.h

    rb277bef rae7d03c  
    216216typedef union {
    217217        struct {
    218         /** Indicates the completion status of BIST
    219         * non-zero value indicates a failure.
    220         */
    221         unsigned int cc : 4;
    222         /** Reserved. */
    223         unsigned int reserved : 2;
    224         /** Software sets this bit to 1 to invoke BIST,
    225         * the HBA clears this bit to 0 when BIST is complete.
    226         */
    227         unsigned int sb : 1;
    228         /** BIST capable. */
    229         unsigned int bc : 1;
     218                /** Indicates the completion status of BIST
     219                * non-zero value indicates a failure.
     220                */
     221                unsigned int cc : 4;
     222                /** Reserved. */
     223                unsigned int reserved : 2;
     224                /** Software sets this bit to 1 to invoke BIST,
     225                * the HBA clears this bit to 0 when BIST is complete.
     226                */
     227                unsigned int sb : 1;
     228                /** BIST capable. */
     229                unsigned int bc : 1;
    230230        };
    231231        uint8_t u8;
     
    252252
    253253/** AHCI PCI register Subsystem Identifiers. */
    254 typedef struct
    255 {
     254typedef struct {
    256255        /** Sub system vendor identifier. */
    257256        uint8_t ssvid;
     
    261260
    262261/** AHCI PCI registers Expansion ROM Base Address. */
    263 typedef struct
    264 {
     262typedef struct {
    265263        /** Indicates the base address of the HBA expansion ROM. */
    266264        uint32_t u32;
     
    268266
    269267/** AHCI PCI register Capabilities Pointer. */
    270 typedef struct
    271 {
     268typedef struct {
    272269        /** Indicates the first capability pointer offset. */
    273270        uint8_t u8;
     
    275272
    276273/** AHCI PCI register Interrupt Information. */
    277 typedef struct
    278 {
     274typedef struct {
    279275        /* Software written value to indicate which interrupt vector
    280276         * the interrupt is connected to.
     
    286282
    287283/** AHCI PCI register Min Grant (Optional). */
    288 typedef struct
    289 {
     284typedef struct {
    290285        /** Indicates the minimum grant time that the device
    291286         * wishes grant asserted.
     
    295290
    296291/** AHCI PCI register Max Latency (Optional). */
    297 typedef struct
    298 {
     292typedef struct {
    299293        /** Indicates the maximum latency that the device can withstand. */
    300294        uint8_t u8;
     
    431425
    432426/** AHCI Memory register Command completion coalescing ports. */
    433 typedef struct
    434 {
     427typedef struct {
    435428        /** If a bit is set to 1, the corresponding port is
    436429         * part of the command completion coalescing feature.
     
    440433
    441434/** AHCI Memory register Enclosure management location. */
    442 typedef struct
    443 {
     435typedef struct {
    444436        /** Size of the transmit message buffer area in dwords. */
    445437        uint16_t sz;
     
    525517
    526518/** AHCI Memory register Generic Host Control. */
    527 typedef struct
    528 {
     519typedef struct {
    529520        /** Host Capabilities */
    530521        uint32_t cap;
     
    942933
    943934/** AHCI Memory register Port. */
    944 typedef volatile struct
    945 {
     935typedef volatile struct {
    946936        /** Port x Command List Base Address. */
    947937        uint32_t pxclb;
     
    10101000        /** Physical Region Descriptor Byte Count. */
    10111001        uint32_t bytesprocessed;
    1012          /** Command Table Descriptor Base Address. */
     1002        /** Command Table Descriptor Base Address. */
    10131003        uint32_t cmdtable;
    10141004        /** Command Table Descriptor Base Address Upper 32-bits. */
Note: See TracChangeset for help on using the changeset viewer.