Ignore:
Timestamp:
Nov 10, 2013, 4:56:20 PM (12 years ago)
Author:
David Azarewicz
Message:

Fix for hardware that reports incorrect status.
Now report both real and fake devices when SCSI emulation is enabled.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/os2ahci/ahci.h

    r162 r174  
    182182                                 PORT_IRQ_PIOS_FIS | PORT_IRQ_D2H_REG_FIS)
    183183
     184#define PORT_ERR_X              (1UL << 26) /* Exchanged */
     185#define PORT_ERR_FIS            (1UL << 25) /* Unknown FIS type */
     186#define PORT_ERR_TP             (1UL << 24) /* Transport State Transition Error */
     187#define PORT_ERR_S              (1UL << 23) /* Link Sequence Error */
     188#define PORT_ERR_H              (1UL << 22) /* Handshake Error */
     189#define PORT_ERR_CRC            (1UL << 21) /* CRC Error */
     190#define PORT_ERR_D              (1UL << 20) /* Disparity Error */
     191#define PORT_ERR_B              (1UL << 19) /* 10B to 8B Decode Error */
     192#define PORT_ERR_W              (1UL << 18) /* Comm Wake */
     193#define PORT_ERR_PI             (1UL << 17) /* Phy Internal Error */
     194#define PORT_ERR_N              (1UL << 16) /* PhyRdy Change */
     195#define PORT_ERR_IE             (1UL << 11) /* Internal Error */
     196#define PORT_ERR_P              (1UL << 10) /* Protocol Error */
     197#define PORT_ERR_C              (1UL << 9)  /* Persistent Communication or Data Integrity Error */
     198#define PORT_ERR_TD             (1UL << 8)  /* Transient Data Integrity Error */
     199#define PORT_ERR_M              (1UL << 1)  /* Recovered Communications Error */
     200#define PORT_ERR_DI             (1UL << 0)  /* Recoverred Data Integrity Error */
     201#define PORT_ERR_FAIL_BITS      (PORT_ERR_X | PORT_ERR_FIS | PORT_ERR_TP | PORT_ERR_S | PORT_ERR_H | PORT_ERR_CRC | \
     202                                 PORT_ERR_D | PORT_ERR_B | PORT_ERR_W | PORT_ERR_PI | PORT_ERR_IE | PORT_ERR_P | \
     203                                 PORT_ERR_C | PORT_ERR_TD)
     204
    184205/* PORT_CMD bits */
    185206#define PORT_CMD_ASP            (1UL << 27) /* Aggressive Slumber/Partial */
Note: See TracChangeset for help on using the changeset viewer.