ReactOS 0.4.16-dev-122-g325d74c
|
Go to the source code of this file.
Classes | |
struct | _BUSMASTER_CTX |
struct | BM_DMA_ENTRY |
struct | _IDE_BUSMASTER_REGISTERS |
struct | _IDE_AHCI_REGISTERS |
union | _SATA_SSTATUS_REG |
union | _SATA_SCONTROL_REG |
union | _SATA_SERROR_REG |
struct | _IDE_SATA_REGISTERS |
union | _AHCI_IS_REG |
struct | _IDE_AHCI_PORT_REGISTERS |
struct | _IDE_AHCI_PRD_ENTRY |
struct | _AHCI_ATA_H2D_FIS |
struct | _IDE_AHCI_CMD |
struct | _IDE_AHCI_CMD_LIST |
struct | _IDE_AHCI_RCV_FIS |
struct | _IDE_AHCI_CHANNEL_CTL_BLOCK |
union | _ATA_REQ |
struct | _IORES |
struct | _HW_CHANNEL |
struct | _HW_LU_EXTENSION |
struct | _HW_DEVICE_EXTENSION |
struct | _ISR2_DEVICE_EXTENSION |
#define AHCI_BOHC_BB 0x00000001 |
Definition at line 259 of file bsmaster.h.
#define AHCI_BOHC_BOS 0x00000010 |
Definition at line 263 of file bsmaster.h.
#define AHCI_BOHC_OOC 0x00000002 |
Definition at line 260 of file bsmaster.h.
#define AHCI_BOHC_OOS 0x00000008 |
Definition at line 262 of file bsmaster.h.
#define AHCI_BOHC_SOOE 0x00000004 |
Definition at line 261 of file bsmaster.h.
#define AHCI_CAP2_APST 0x00000004 |
Definition at line 247 of file bsmaster.h.
#define AHCI_CAP2_BOH 0x00000001 |
Definition at line 245 of file bsmaster.h.
#define AHCI_CAP2_NVMP 0x00000002 |
Definition at line 246 of file bsmaster.h.
#define AHCI_CAP_CCC 0x00000080 |
Definition at line 201 of file bsmaster.h.
#define AHCI_CAP_ISS_MASK 0x00f00000 |
Definition at line 206 of file bsmaster.h.
#define AHCI_CAP_NCQ 0x40000000 |
Definition at line 209 of file bsmaster.h.
#define AHCI_CAP_NCS_MASK 0x00001f00 |
Definition at line 202 of file bsmaster.h.
#define AHCI_CAP_NOP_MASK 0x0000001f |
Definition at line 200 of file bsmaster.h.
#define AHCI_CAP_PMD 0x00008000 |
Definition at line 203 of file bsmaster.h.
#define AHCI_CAP_S64A 0x80000000 |
Definition at line 210 of file bsmaster.h.
#define AHCI_CAP_SAM 0x00040000 |
Definition at line 205 of file bsmaster.h.
#define AHCI_CAP_SCLO 0x01000000 |
Definition at line 207 of file bsmaster.h.
#define AHCI_CAP_SNTF 0x20000000 |
Definition at line 208 of file bsmaster.h.
#define AHCI_CAP_SPM 0x00020000 |
Definition at line 204 of file bsmaster.h.
Definition at line 518 of file bsmaster.h.
Definition at line 520 of file bsmaster.h.
#define AHCI_DEV_SEL_1 0x00 |
Definition at line 801 of file bsmaster.h.
#define AHCI_DEV_SEL_2 0x01 |
Definition at line 802 of file bsmaster.h.
#define AHCI_DEV_SEL_PM 0x0f |
Definition at line 803 of file bsmaster.h.
Definition at line 519 of file bsmaster.h.
#define AHCI_FIS_COMM_PM (0x80 | AHCI_DEV_SEL_PM) |
Definition at line 799 of file bsmaster.h.
#define AHCI_FIS_TYPE_ATA_D2H 0x34 |
Definition at line 753 of file bsmaster.h.
#define AHCI_FIS_TYPE_ATA_H2D 0x27 |
Definition at line 752 of file bsmaster.h.
#define AHCI_FIS_TYPE_BIST_BiDi 0x58 |
Definition at line 757 of file bsmaster.h.
#define AHCI_FIS_TYPE_DATA_BiDi 0x46 |
Definition at line 756 of file bsmaster.h.
#define AHCI_FIS_TYPE_DEV_BITS_D2H 0xA1 |
Definition at line 759 of file bsmaster.h.
#define AHCI_FIS_TYPE_DMA_BiDi 0x41 |
Definition at line 755 of file bsmaster.h.
#define AHCI_FIS_TYPE_DMA_D2H 0x39 |
Definition at line 754 of file bsmaster.h.
#define AHCI_FIS_TYPE_PIO_D2H 0x5f |
Definition at line 758 of file bsmaster.h.
Definition at line 220 of file bsmaster.h.
#define AHCI_GHC_AE 0x80000000 |
Definition at line 223 of file bsmaster.h.
#define AHCI_GHC_HR 0x00000001 |
Definition at line 221 of file bsmaster.h.
#define AHCI_GHC_IE 0x00000002 |
Definition at line 222 of file bsmaster.h.
#define AHCI_MAX_PORT 32 |
Definition at line 108 of file bsmaster.h.
#define ATA_ACTIVE 0x4 |
Definition at line 58 of file bsmaster.h.
#define ATA_ACTIVE_ATA 0x5 |
Definition at line 59 of file bsmaster.h.
#define ATA_ACTIVE_ATAPI 0x6 |
Definition at line 60 of file bsmaster.h.
#define ATA_AHCI_CMD_ATAPI 0x0020 |
Definition at line 815 of file bsmaster.h.
#define ATA_AHCI_CMD_BIST 0x0200 |
Definition at line 819 of file bsmaster.h.
#define ATA_AHCI_CMD_CLR_BUSY 0x0400 |
Definition at line 820 of file bsmaster.h.
#define ATA_AHCI_CMD_PREFETCH 0x0080 |
Definition at line 817 of file bsmaster.h.
#define ATA_AHCI_CMD_RESET 0x0100 |
Definition at line 818 of file bsmaster.h.
#define ATA_AHCI_CMD_WRITE 0x0040 |
Definition at line 816 of file bsmaster.h.
#define ATA_AHCI_DMA_ENTRIES (PAGE_SIZE/2/sizeof(IDE_AHCI_PRD_ENTRY)) /* 128 */ |
Definition at line 749 of file bsmaster.h.
#define ATA_AHCI_MAX_TAGS 32 |
Definition at line 750 of file bsmaster.h.
#define ATA_AHCI_P_CMD_ACTIVE 0x10000000 |
Definition at line 719 of file bsmaster.h.
#define ATA_AHCI_P_CMD_ALPE 0x04000000 |
Definition at line 715 of file bsmaster.h.
#define ATA_AHCI_P_CMD_ASP 0x08000000 |
Definition at line 716 of file bsmaster.h.
#define ATA_AHCI_P_CMD_ATAPI 0x01000000 |
Definition at line 713 of file bsmaster.h.
#define ATA_AHCI_P_CMD_CCS_MASK 0x00001f00 |
Definition at line 703 of file bsmaster.h.
#define ATA_AHCI_P_CMD_CLO 0x00000008 |
Definition at line 701 of file bsmaster.h.
#define ATA_AHCI_P_CMD_CPD 0x00100000 |
Definition at line 711 of file bsmaster.h.
#define ATA_AHCI_P_CMD_CPS 0x00010000 |
Definition at line 707 of file bsmaster.h.
#define ATA_AHCI_P_CMD_CR 0x00008000 |
Definition at line 706 of file bsmaster.h.
#define ATA_AHCI_P_CMD_DLAE 0x02000000 |
Definition at line 714 of file bsmaster.h.
#define ATA_AHCI_P_CMD_ESP 0x00200000 |
Definition at line 712 of file bsmaster.h.
#define ATA_AHCI_P_CMD_FR 0x00004000 |
Definition at line 705 of file bsmaster.h.
#define ATA_AHCI_P_CMD_FRE 0x00000010 |
Definition at line 702 of file bsmaster.h.
#define ATA_AHCI_P_CMD_HPCP 0x00040000 |
Definition at line 709 of file bsmaster.h.
#define ATA_AHCI_P_CMD_ICC_MASK 0xf0000000 |
Definition at line 717 of file bsmaster.h.
#define ATA_AHCI_P_CMD_ISP 0x00080000 |
Definition at line 710 of file bsmaster.h.
#define ATA_AHCI_P_CMD_ISS 0x00002000 |
Definition at line 704 of file bsmaster.h.
#define ATA_AHCI_P_CMD_NOOP 0x00000000 |
Definition at line 718 of file bsmaster.h.
#define ATA_AHCI_P_CMD_PARTIAL 0x20000000 |
Definition at line 720 of file bsmaster.h.
#define ATA_AHCI_P_CMD_PMA 0x00020000 |
Definition at line 708 of file bsmaster.h.
#define ATA_AHCI_P_CMD_POD 0x00000004 |
Definition at line 700 of file bsmaster.h.
#define ATA_AHCI_P_CMD_SLUMBER 0x60000000 |
Definition at line 721 of file bsmaster.h.
#define ATA_AHCI_P_CMD_ST 0x00000001 |
Definition at line 698 of file bsmaster.h.
#define ATA_AHCI_P_CMD_SUD 0x00000002 |
Definition at line 699 of file bsmaster.h.
#define ATA_AHCI_P_IX_CPD 0x80000000 |
Definition at line 516 of file bsmaster.h.
#define ATA_AHCI_P_IX_DHR 0x00000001 |
Definition at line 499 of file bsmaster.h.
#define ATA_AHCI_P_IX_DI 0x00000080 |
Definition at line 506 of file bsmaster.h.
#define ATA_AHCI_P_IX_DP 0x00000020 |
Definition at line 504 of file bsmaster.h.
#define ATA_AHCI_P_IX_DS 0x00000004 |
Definition at line 501 of file bsmaster.h.
#define ATA_AHCI_P_IX_HBD 0x10000000 |
Definition at line 513 of file bsmaster.h.
#define ATA_AHCI_P_IX_HBF 0x20000000 |
Definition at line 514 of file bsmaster.h.
#define ATA_AHCI_P_IX_IF 0x08000000 |
Definition at line 512 of file bsmaster.h.
#define ATA_AHCI_P_IX_INF 0x04000000 |
Definition at line 511 of file bsmaster.h.
#define ATA_AHCI_P_IX_IPM 0x00800000 |
Definition at line 509 of file bsmaster.h.
#define ATA_AHCI_P_IX_OF 0x01000000 |
Definition at line 510 of file bsmaster.h.
#define ATA_AHCI_P_IX_PC 0x00000040 |
Definition at line 505 of file bsmaster.h.
#define ATA_AHCI_P_IX_PRC 0x00400000 |
Definition at line 508 of file bsmaster.h.
#define ATA_AHCI_P_IX_PS 0x00000002 |
Definition at line 500 of file bsmaster.h.
#define ATA_AHCI_P_IX_SDB 0x00000008 |
Definition at line 502 of file bsmaster.h.
#define ATA_AHCI_P_IX_TFE 0x40000000 |
Definition at line 515 of file bsmaster.h.
#define ATA_AHCI_P_IX_UF 0x00000010 |
Definition at line 503 of file bsmaster.h.
Definition at line 89 of file bsmaster.h.
Definition at line 87 of file bsmaster.h.
#define ATA_BM_OFFSET1 0x08 |
Definition at line 85 of file bsmaster.h.
#define ATA_BMIOSIZE 0x20 |
Definition at line 90 of file bsmaster.h.
#define ATA_DMA_ENTRIES 256 /* PAGESIZE/2/sizeof(BM_DMA_ENTRY)*/ |
Definition at line 100 of file bsmaster.h.
#define ATA_DMA_EOT 0x80000000 |
Definition at line 101 of file bsmaster.h.
#define ATA_IDLE 0x0 |
Definition at line 54 of file bsmaster.h.
#define ATA_IMMEDIATE 0x1 |
Definition at line 55 of file bsmaster.h.
#define ATA_IOSIZE 0x08 |
Definition at line 86 of file bsmaster.h.
Definition at line 94 of file bsmaster.h.
Definition at line 97 of file bsmaster.h.
Definition at line 95 of file bsmaster.h.
Definition at line 98 of file bsmaster.h.
#define ATA_PC98_BANKIOSIZE 0x01 |
Definition at line 91 of file bsmaster.h.
Definition at line 88 of file bsmaster.h.
#define ATA_REINITING 0x7 |
Definition at line 61 of file bsmaster.h.
#define ATA_SC_DET_DISABLE 0x00000004 |
Definition at line 361 of file bsmaster.h.
#define ATA_SC_DET_IDLE 0x00000000 |
Definition at line 359 of file bsmaster.h.
#define ATA_SC_DET_MASK 0x0000000f |
Definition at line 358 of file bsmaster.h.
#define ATA_SC_DET_RESET 0x00000001 |
Definition at line 360 of file bsmaster.h.
#define ATA_SC_IPM_DIS_PARTIAL 0x00000100 |
Definition at line 371 of file bsmaster.h.
#define ATA_SC_IPM_DIS_SLUMBER 0x00000200 |
Definition at line 372 of file bsmaster.h.
#define ATA_SC_IPM_MASK 0x00000f00 |
Definition at line 369 of file bsmaster.h.
#define ATA_SC_IPM_NONE 0x00000000 |
Definition at line 370 of file bsmaster.h.
#define ATA_SC_SPD_MASK 0x000000f0 |
Definition at line 363 of file bsmaster.h.
#define ATA_SC_SPD_NO_SPEED 0x00000000 |
Definition at line 364 of file bsmaster.h.
#define ATA_SC_SPD_SPEED_GEN1 0x00000010 |
Definition at line 365 of file bsmaster.h.
#define ATA_SC_SPD_SPEED_GEN2 0x00000020 |
Definition at line 366 of file bsmaster.h.
#define ATA_SC_SPD_SPEED_GEN3 0x00000040 |
Definition at line 367 of file bsmaster.h.
#define ATA_SE_COMM_CORRECTED 0x00000002 |
Definition at line 410 of file bsmaster.h.
#define ATA_SE_COMM_ERR 0x00000200 |
Definition at line 412 of file bsmaster.h.
#define ATA_SE_COMM_WAKE 0x00040000 |
Definition at line 417 of file bsmaster.h.
#define ATA_SE_CRC_ERR 0x00200000 |
Definition at line 420 of file bsmaster.h.
#define ATA_SE_DATA_CORRECTED 0x00000001 |
Definition at line 409 of file bsmaster.h.
#define ATA_SE_DATA_ERR 0x00000100 |
Definition at line 411 of file bsmaster.h.
#define ATA_SE_DECODE_ERR 0x00080000 |
Definition at line 418 of file bsmaster.h.
#define ATA_SE_HANDSHAKE_ERR 0x00400000 |
Definition at line 421 of file bsmaster.h.
#define ATA_SE_HOST_ERR 0x00000800 |
Definition at line 414 of file bsmaster.h.
#define ATA_SE_LINKSEQ_ERR 0x00800000 |
Definition at line 422 of file bsmaster.h.
#define ATA_SE_PARITY_ERR 0x00100000 |
Definition at line 419 of file bsmaster.h.
#define ATA_SE_PHY_CHANGED 0x00010000 |
Definition at line 415 of file bsmaster.h.
#define ATA_SE_PHY_IERROR 0x00020000 |
Definition at line 416 of file bsmaster.h.
#define ATA_SE_PROT_ERR 0x00000400 |
Definition at line 413 of file bsmaster.h.
#define ATA_SE_TRANSPORT_ERR 0x01000000 |
Definition at line 423 of file bsmaster.h.
#define ATA_SE_UNKNOWN_FIS 0x02000000 |
Definition at line 424 of file bsmaster.h.
#define ATA_SS_DET_DEV_PRESENT 0x00000001 |
Definition at line 311 of file bsmaster.h.
#define ATA_SS_DET_MASK 0x0000000f |
Definition at line 309 of file bsmaster.h.
#define ATA_SS_DET_NO_DEVICE 0x00000000 |
Definition at line 310 of file bsmaster.h.
#define ATA_SS_DET_PHY_OFFLINE 0x00000004 |
Definition at line 313 of file bsmaster.h.
#define ATA_SS_DET_PHY_ONLINE 0x00000003 |
Definition at line 312 of file bsmaster.h.
#define ATA_SS_IPM_ACTIVE 0x00000100 |
Definition at line 322 of file bsmaster.h.
#define ATA_SS_IPM_MASK 0x00000f00 |
Definition at line 320 of file bsmaster.h.
#define ATA_SS_IPM_NO_DEVICE 0x00000000 |
Definition at line 321 of file bsmaster.h.
#define ATA_SS_IPM_PARTIAL 0x00000200 |
Definition at line 323 of file bsmaster.h.
#define ATA_SS_IPM_SLUMBER 0x00000600 |
Definition at line 324 of file bsmaster.h.
#define ATA_SS_SPD_GEN1 0x00000010 |
Definition at line 317 of file bsmaster.h.
#define ATA_SS_SPD_GEN2 0x00000020 |
Definition at line 318 of file bsmaster.h.
#define ATA_SS_SPD_MASK 0x000000f0 |
Definition at line 315 of file bsmaster.h.
#define ATA_SS_SPD_NO_SPEED 0x00000000 |
Definition at line 316 of file bsmaster.h.
#define ATA_WAIT_BASE_READY 0x8 |
Definition at line 62 of file bsmaster.h.
#define ATA_WAIT_IDLE 0x9 |
Definition at line 63 of file bsmaster.h.
#define ATA_WAIT_INTR 0x2 |
Definition at line 56 of file bsmaster.h.
#define ATA_WAIT_READY 0x3 |
Definition at line 57 of file bsmaster.h.
#define ATAPI_MAGIC_LSB 0x14 |
Definition at line 105 of file bsmaster.h.
#define ATAPI_MAGIC_MSB 0xeb |
Definition at line 106 of file bsmaster.h.
#define AtapiVirtToPhysAddr | ( | hwde, | |
srb, | |||
phaddr, | |||
plen, | |||
phaddru | |||
) | AtapiVirtToPhysAddr_(hwde, srb, phaddr, plen, phaddru); |
Definition at line 1716 of file bsmaster.h.
#define BM_COMMAND_READ 0x08 |
Definition at line 154 of file bsmaster.h.
#define BM_COMMAND_START_STOP 0x01 |
Definition at line 150 of file bsmaster.h.
#define BM_COMMAND_WRITE 0x00 |
Definition at line 153 of file bsmaster.h.
Definition at line 160 of file bsmaster.h.
Definition at line 156 of file bsmaster.h.
Definition at line 159 of file bsmaster.h.
#define BM_DS0_SII_DMA_SATA_IRQ (1 << 4) /* OR of all SATA IRQs */ |
Definition at line 158 of file bsmaster.h.
#define BM_DS0_SII_IRQ (1 << 3) /* ??? */ |
Definition at line 157 of file bsmaster.h.
#define BM_STATUS_ACTIVE 0x01 |
Definition at line 142 of file bsmaster.h.
#define BM_STATUS_DRIVE_0_DMA 0x20 |
Definition at line 146 of file bsmaster.h.
#define BM_STATUS_DRIVE_1_DMA 0x40 |
Definition at line 147 of file bsmaster.h.
#define BM_STATUS_ERR 0x02 |
Definition at line 143 of file bsmaster.h.
#define BM_STATUS_INTR 0x04 |
Definition at line 144 of file bsmaster.h.
#define BM_STATUS_MASK 0x07 |
Definition at line 145 of file bsmaster.h.
#define BM_STATUS_SIMPLEX_ONLY 0x80 |
Definition at line 148 of file bsmaster.h.
#define ChangePciConfig1 | ( | offs, | |
_op | |||
) |
Definition at line 1641 of file bsmaster.h.
#define ChangePciConfig2 | ( | offs, | |
_op | |||
) |
Definition at line 1670 of file bsmaster.h.
#define ChangePciConfig4 | ( | offs, | |
_op | |||
) |
Definition at line 1699 of file bsmaster.h.
#define CHECK_INTR_ACTIVE 0x03 |
Definition at line 1066 of file bsmaster.h.
#define CHECK_INTR_CHECK 0x01 |
Definition at line 1068 of file bsmaster.h.
#define CHECK_INTR_DETECTED 0x02 |
Definition at line 1067 of file bsmaster.h.
#define CHECK_INTR_IDLE 0x00 |
Definition at line 1069 of file bsmaster.h.
#define CMD_ACTION_ALL (CMD_ACTION_PREPARE | CMD_ACTION_EXEC) |
Definition at line 976 of file bsmaster.h.
#define CMD_ACTION_EXEC 0x02 |
Definition at line 975 of file bsmaster.h.
#define CMD_ACTION_PREPARE 0x01 |
Definition at line 974 of file bsmaster.h.
#define CTRFLAGS_AHCI_PM 0x0400 |
Definition at line 1143 of file bsmaster.h.
#define CTRFLAGS_AHCI_PM2 0x0800 |
Definition at line 1144 of file bsmaster.h.
#define CTRFLAGS_DMA_ACTIVE 0x0001 |
Definition at line 1131 of file bsmaster.h.
#define CTRFLAGS_DMA_OPERATION 0x0004 |
Definition at line 1133 of file bsmaster.h.
#define CTRFLAGS_DMA_RO 0x0002 |
Definition at line 1132 of file bsmaster.h.
#define CTRFLAGS_DPC_REQ 0x0010 |
Definition at line 1135 of file bsmaster.h.
#define CTRFLAGS_DSC_BSY 0x0080 |
Definition at line 1138 of file bsmaster.h.
#define CTRFLAGS_ENABLE_INTR_REQ 0x0020 |
Definition at line 1136 of file bsmaster.h.
#define CTRFLAGS_INTR_DISABLED 0x0008 |
Definition at line 1134 of file bsmaster.h.
#define CTRFLAGS_LBA48 0x0040 |
Definition at line 1137 of file bsmaster.h.
#define CTRFLAGS_NO_SLAVE 0x0100 |
Definition at line 1139 of file bsmaster.h.
#define CTRFLAGS_PERMANENT (CTRFLAGS_DMA_RO | CTRFLAGS_NO_SLAVE) |
Definition at line 1146 of file bsmaster.h.
#define DEV_BSIZE 512 |
Definition at line 103 of file bsmaster.h.
#define DMA_MODE_AHCI 0x02 |
Definition at line 1708 of file bsmaster.h.
#define DMA_MODE_BM 0x01 |
Definition at line 1707 of file bsmaster.h.
#define DMA_MODE_NONE 0x00 |
Definition at line 1706 of file bsmaster.h.
#define DPC_STATE_COMPLETE 0x40 |
Definition at line 1158 of file bsmaster.h.
#define DPC_STATE_DPC 0x20 |
Definition at line 1156 of file bsmaster.h.
#define DPC_STATE_ISR 0x10 |
Definition at line 1155 of file bsmaster.h.
#define DPC_STATE_NONE 0x00 |
Definition at line 1154 of file bsmaster.h.
#define DPC_STATE_TIMER 0x30 |
Definition at line 1157 of file bsmaster.h.
#define GEOM_AUTO 0xffffffff |
Definition at line 1148 of file bsmaster.h.
#define GEOM_MANUAL 0x0003 |
Definition at line 1152 of file bsmaster.h.
#define GEOM_ORIG 0x0002 |
Definition at line 1151 of file bsmaster.h.
#define GEOM_STD 0x0000 |
Definition at line 1149 of file bsmaster.h.
#define GEOM_UNIATA 0x0001 |
Definition at line 1150 of file bsmaster.h.
#define GetDmaStatus | ( | de, | |
c | |||
) | (((de)->BusMaster == DMA_MODE_BM) ? AtapiReadPort1(&((de)->chan[c]), IDX_BM_Status) : 0) |
Definition at line 1711 of file bsmaster.h.
Definition at line 1620 of file bsmaster.h.
Definition at line 1649 of file bsmaster.h.
Definition at line 1678 of file bsmaster.h.
#define HBAFLAGS_DMA_DISABLED 0x01 |
Definition at line 1358 of file bsmaster.h.
#define HBAFLAGS_DMA_DISABLED_LBA48 0x02 |
Definition at line 1359 of file bsmaster.h.
#define IDX_AHCI_BOHC (FIELD_OFFSET(IDE_AHCI_REGISTERS, BOHC)) |
Definition at line 276 of file bsmaster.h.
#define IDX_AHCI_CAP (FIELD_OFFSET(IDE_AHCI_REGISTERS, CAP)) |
Definition at line 270 of file bsmaster.h.
#define IDX_AHCI_CAP2 (FIELD_OFFSET(IDE_AHCI_REGISTERS, CAP2)) |
Definition at line 275 of file bsmaster.h.
#define IDX_AHCI_GHC (FIELD_OFFSET(IDE_AHCI_REGISTERS, GHC)) |
Definition at line 271 of file bsmaster.h.
#define IDX_AHCI_IS (FIELD_OFFSET(IDE_AHCI_REGISTERS, IS)) |
Definition at line 272 of file bsmaster.h.
#define IDX_AHCI_o_BlockCount (FIELD_OFFSET(AHCI_ATA_H2D_FIS, BlockCount)) |
Definition at line 791 of file bsmaster.h.
#define IDX_AHCI_o_BlockCountExp (FIELD_OFFSET(AHCI_ATA_H2D_FIS, BlockCountExp)) |
Definition at line 797 of file bsmaster.h.
#define IDX_AHCI_o_BlockNumber (FIELD_OFFSET(AHCI_ATA_H2D_FIS, BlockNumber )) |
Definition at line 787 of file bsmaster.h.
#define IDX_AHCI_o_BlockNumberExp (FIELD_OFFSET(AHCI_ATA_H2D_FIS, BlockNumberExp )) |
Definition at line 794 of file bsmaster.h.
#define IDX_AHCI_o_Command (FIELD_OFFSET(AHCI_ATA_H2D_FIS, Command)) |
Definition at line 785 of file bsmaster.h.
#define IDX_AHCI_o_Control (FIELD_OFFSET(AHCI_ATA_H2D_FIS, Control)) |
Definition at line 792 of file bsmaster.h.
#define IDX_AHCI_o_CylinderHigh (FIELD_OFFSET(AHCI_ATA_H2D_FIS, CylinderHigh)) |
Definition at line 789 of file bsmaster.h.
#define IDX_AHCI_o_CylinderHighExp (FIELD_OFFSET(AHCI_ATA_H2D_FIS, CylinderHighExp)) |
Definition at line 796 of file bsmaster.h.
#define IDX_AHCI_o_CylinderLow (FIELD_OFFSET(AHCI_ATA_H2D_FIS, CylinderLow )) |
Definition at line 788 of file bsmaster.h.
#define IDX_AHCI_o_CylinderLowExp (FIELD_OFFSET(AHCI_ATA_H2D_FIS, CylinderLowExp )) |
Definition at line 795 of file bsmaster.h.
#define IDX_AHCI_o_DriveSelect (FIELD_OFFSET(AHCI_ATA_H2D_FIS, DriveSelect )) |
Definition at line 790 of file bsmaster.h.
#define IDX_AHCI_o_Feature (FIELD_OFFSET(AHCI_ATA_H2D_FIS, Feature)) |
Definition at line 786 of file bsmaster.h.
#define IDX_AHCI_o_FeatureExp (FIELD_OFFSET(AHCI_ATA_H2D_FIS, FeatureExp)) |
Definition at line 793 of file bsmaster.h.
#define IDX_AHCI_P_ACT (FIELD_OFFSET(IDE_AHCI_PORT_REGISTERS, SACT)) |
Definition at line 693 of file bsmaster.h.
#define IDX_AHCI_P_CI (FIELD_OFFSET(IDE_AHCI_PORT_REGISTERS, CI)) |
Definition at line 686 of file bsmaster.h.
#define IDX_AHCI_P_CLB (FIELD_OFFSET(IDE_AHCI_PORT_REGISTERS, CLB)) |
Definition at line 682 of file bsmaster.h.
#define IDX_AHCI_P_CMD (FIELD_OFFSET(IDE_AHCI_PORT_REGISTERS, CMD)) |
Definition at line 689 of file bsmaster.h.
#define IDX_AHCI_P_FB (FIELD_OFFSET(IDE_AHCI_PORT_REGISTERS, FB)) |
Definition at line 683 of file bsmaster.h.
#define IDX_AHCI_P_IE (FIELD_OFFSET(IDE_AHCI_PORT_REGISTERS, IE)) |
Definition at line 685 of file bsmaster.h.
#define IDX_AHCI_P_IS (FIELD_OFFSET(IDE_AHCI_PORT_REGISTERS, IS)) |
Definition at line 684 of file bsmaster.h.
#define IDX_AHCI_P_SControl (FIELD_OFFSET(IDE_AHCI_PORT_REGISTERS, SControl)) |
Definition at line 691 of file bsmaster.h.
#define IDX_AHCI_P_SError (FIELD_OFFSET(IDE_AHCI_PORT_REGISTERS, SError)) |
Definition at line 692 of file bsmaster.h.
#define IDX_AHCI_P_SIG (FIELD_OFFSET(IDE_AHCI_PORT_REGISTERS, SIG)) |
Definition at line 688 of file bsmaster.h.
#define IDX_AHCI_P_SNTF (FIELD_OFFSET(IDE_AHCI_PORT_REGISTERS, SNTF)) |
Definition at line 695 of file bsmaster.h.
#define IDX_AHCI_P_SStatus (FIELD_OFFSET(IDE_AHCI_PORT_REGISTERS, SStatus)) |
Definition at line 690 of file bsmaster.h.
#define IDX_AHCI_P_TFD (FIELD_OFFSET(IDE_AHCI_PORT_REGISTERS, TFD)) |
Definition at line 687 of file bsmaster.h.
#define IDX_AHCI_PI (FIELD_OFFSET(IDE_AHCI_REGISTERS, PI)) |
Definition at line 274 of file bsmaster.h.
#define IDX_AHCI_VS (FIELD_OFFSET(IDE_AHCI_REGISTERS, VS)) |
Definition at line 273 of file bsmaster.h.
#define IDX_BM_Command (FIELD_OFFSET(IDE_BUSMASTER_REGISTERS, Command )+IDX_BM_IO) |
Definition at line 167 of file bsmaster.h.
#define IDX_BM_DeviceSpecific0 (FIELD_OFFSET(IDE_BUSMASTER_REGISTERS, DeviceSpecific0)+IDX_BM_IO) |
Definition at line 168 of file bsmaster.h.
#define IDX_BM_DeviceSpecific1 (FIELD_OFFSET(IDE_BUSMASTER_REGISTERS, DeviceSpecific1)+IDX_BM_IO) |
Definition at line 170 of file bsmaster.h.
#define IDX_BM_IO (IDX_IO2_o+IDX_IO2_o_SZ) |
Definition at line 163 of file bsmaster.h.
#define IDX_BM_IO_SZ 5 |
Definition at line 165 of file bsmaster.h.
#define IDX_BM_PRD_Table (FIELD_OFFSET(IDE_BUSMASTER_REGISTERS, PRD_Table )+IDX_BM_IO) |
Definition at line 171 of file bsmaster.h.
#define IDX_BM_Status (FIELD_OFFSET(IDE_BUSMASTER_REGISTERS, Status )+IDX_BM_IO) |
Definition at line 169 of file bsmaster.h.
#define IDX_INDEXED_ADDR (0+IDX_INDEXED_IO) |
Definition at line 466 of file bsmaster.h.
#define IDX_INDEXED_DATA (1+IDX_INDEXED_IO) |
Definition at line 467 of file bsmaster.h.
#define IDX_INDEXED_IO (IDX_SATA_IO+IDX_SATA_IO_SZ) |
Definition at line 463 of file bsmaster.h.
#define IDX_INDEXED_IO_SZ 2 |
Definition at line 464 of file bsmaster.h.
#define IDX_MAX_REG (IDX_INDEXED_IO+IDX_INDEXED_IO_SZ) |
Definition at line 469 of file bsmaster.h.
#define IDX_SATA_IO (IDX_BM_IO+IDX_BM_IO_SZ) |
Definition at line 453 of file bsmaster.h.
#define IDX_SATA_IO_SZ 5 |
Definition at line 455 of file bsmaster.h.
#define IDX_SATA_SActive (3+IDX_SATA_IO) |
Definition at line 460 of file bsmaster.h.
#define IDX_SATA_SControl (2+IDX_SATA_IO) |
Definition at line 459 of file bsmaster.h.
#define IDX_SATA_SError (1+IDX_SATA_IO) |
Definition at line 458 of file bsmaster.h.
#define IDX_SATA_SNTF_PMN (4+IDX_SATA_IO) |
Definition at line 461 of file bsmaster.h.
#define IDX_SATA_SStatus (0+IDX_SATA_IO) |
Definition at line 457 of file bsmaster.h.
Definition at line 81 of file bsmaster.h.
#define IO_WD1 0x1F0 /* Primary Fixed Disk Controller */ |
Definition at line 78 of file bsmaster.h.
#define IO_WD2 0x170 /* Secondary Fixed Disk Controller */ |
Definition at line 79 of file bsmaster.h.
#define IP_PC98_BANK 0x432 |
Definition at line 80 of file bsmaster.h.
#define IsBusMaster | ( | pciData | ) |
Definition at line 853 of file bsmaster.h.
#define IsMasterDev | ( | pciData | ) |
Definition at line 861 of file bsmaster.h.
#define MAX_RETRIES 6 |
Definition at line 72 of file bsmaster.h.
#define MIN_REQ_TTL 4 |
Definition at line 866 of file bsmaster.h.
#define PCI_ADDRESS_IOMASK 0xfffffff0 |
Definition at line 83 of file bsmaster.h.
#define PCI_DEV_CLASS_STORAGE 0x01 |
Definition at line 117 of file bsmaster.h.
#define PCI_DEV_PROGIF_AHCI_1_0 0x01 |
Definition at line 124 of file bsmaster.h.
#define PCI_DEV_SUBCLASS_ATA 0x05 |
Definition at line 121 of file bsmaster.h.
#define PCI_DEV_SUBCLASS_IDE 0x01 |
Definition at line 119 of file bsmaster.h.
#define PCI_DEV_SUBCLASS_RAID 0x04 |
Definition at line 120 of file bsmaster.h.
#define PCI_DEV_SUBCLASS_SATA 0x06 |
Definition at line 122 of file bsmaster.h.
#define PCI_IDE_PROGIF_NATIVE_1 0x01 |
Definition at line 857 of file bsmaster.h.
#define PCI_IDE_PROGIF_NATIVE_2 0x04 |
Definition at line 858 of file bsmaster.h.
#define PCI_IDE_PROGIF_NATIVE_ALL 0x05 |
Definition at line 859 of file bsmaster.h.
#define PCIBUSNUM_NOT_SPECIFIED (0xffffffffL) |
Definition at line 1451 of file bsmaster.h.
#define PCISLOTNUM_NOT_SPECIFIED (0xffffffffL) |
Definition at line 1452 of file bsmaster.h.
#define REORDER_COST_DENIED (REORDER_COST_MAX - 3) |
Definition at line 982 of file bsmaster.h.
#define REORDER_COST_INTERSECT (REORDER_COST_MAX - 2) |
Definition at line 981 of file bsmaster.h.
Definition at line 979 of file bsmaster.h.
#define REORDER_COST_RESELECT (REORDER_COST_MAX/4) |
Definition at line 983 of file bsmaster.h.
#define REORDER_COST_SWITCH_RW_CD (REORDER_COST_MAX/8) |
Definition at line 985 of file bsmaster.h.
#define REORDER_COST_SWITCH_RW_HDD (0) |
Definition at line 989 of file bsmaster.h.
#define REORDER_COST_TTL (REORDER_COST_MAX - 1) |
Definition at line 980 of file bsmaster.h.
#define REORDER_MCOST_SEEK_BACK_CD (16) |
Definition at line 987 of file bsmaster.h.
#define REORDER_MCOST_SEEK_BACK_HDD (2) |
Definition at line 991 of file bsmaster.h.
#define REORDER_MCOST_SWITCH_RW_CD (0) |
Definition at line 986 of file bsmaster.h.
#define REORDER_MCOST_SWITCH_RW_HDD (4) |
Definition at line 990 of file bsmaster.h.
#define REQ_FLAG_DMA_DBUF 0x20 |
Definition at line 938 of file bsmaster.h.
#define REQ_FLAG_DMA_DBUF_PRD 0x40 |
Definition at line 939 of file bsmaster.h.
#define REQ_FLAG_DMA_OPERATION 0x02 |
Definition at line 932 of file bsmaster.h.
#define REQ_FLAG_FORCE_DOWNRATE 0x01 |
Definition at line 931 of file bsmaster.h.
#define REQ_FLAG_FORCE_DOWNRATE_LBA48 0x10 |
Definition at line 937 of file bsmaster.h.
#define REQ_FLAG_LBA48 0x80 |
Definition at line 940 of file bsmaster.h.
#define REQ_FLAG_READ 0x08 |
Definition at line 935 of file bsmaster.h.
#define REQ_FLAG_REORDERABLE_CMD 0x04 |
Definition at line 933 of file bsmaster.h.
#define REQ_FLAG_RW_MASK 0x08 |
Definition at line 934 of file bsmaster.h.
#define REQ_FLAG_WRITE 0x00 |
Definition at line 936 of file bsmaster.h.
#define REQ_STATE_ATAPI_DO_NOTHING_INTR 0x44 |
Definition at line 954 of file bsmaster.h.
#define REQ_STATE_ATAPI_EXPECTING_CMD_INTR 0x41 |
Definition at line 951 of file bsmaster.h.
#define REQ_STATE_ATAPI_EXPECTING_DATA_INTR 0x42 |
Definition at line 952 of file bsmaster.h.
#define REQ_STATE_ATAPI_EXPECTING_DATA_INTR2 0x43 |
Definition at line 953 of file bsmaster.h.
#define REQ_STATE_DPC_COMPLETE_REQ 0x53 |
Definition at line 962 of file bsmaster.h.
#define REQ_STATE_DPC_INTR_REQ 0x51 |
Definition at line 960 of file bsmaster.h.
#define REQ_STATE_DPC_RESET_REQ 0x52 |
Definition at line 961 of file bsmaster.h.
#define REQ_STATE_DPC_WAIT_BUSY 0x59 |
Definition at line 966 of file bsmaster.h.
#define REQ_STATE_DPC_WAIT_BUSY0 0x57 |
Definition at line 964 of file bsmaster.h.
#define REQ_STATE_DPC_WAIT_BUSY1 0x58 |
Definition at line 965 of file bsmaster.h.
#define REQ_STATE_DPC_WAIT_DRQ 0x5a |
Definition at line 967 of file bsmaster.h.
#define REQ_STATE_DPC_WAIT_DRQ0 0x5b |
Definition at line 968 of file bsmaster.h.
#define REQ_STATE_DPC_WAIT_DRQ_ERR 0x5c |
Definition at line 969 of file bsmaster.h.
#define REQ_STATE_EARLY_INTR 0x48 |
Definition at line 956 of file bsmaster.h.
#define REQ_STATE_EXPECTING_INTR 0x40 |
Definition at line 950 of file bsmaster.h.
#define REQ_STATE_NONE 0x00 |
Definition at line 943 of file bsmaster.h.
#define REQ_STATE_PREPARE_TO_NEXT 0x21 |
Definition at line 947 of file bsmaster.h.
#define REQ_STATE_PREPARE_TO_TRANSFER 0x20 |
Definition at line 946 of file bsmaster.h.
#define REQ_STATE_PROCESSING_INTR 0x50 |
Definition at line 958 of file bsmaster.h.
#define REQ_STATE_QUEUED 0x10 |
Definition at line 944 of file bsmaster.h.
#define REQ_STATE_READY_TO_TRANSFER 0x30 |
Definition at line 948 of file bsmaster.h.
#define REQ_STATE_TRANSFER_COMPLETE 0x7f |
Definition at line 971 of file bsmaster.h.
#define RETRY_PIO 3 |
Definition at line 75 of file bsmaster.h.
#define RETRY_UDMA2 1 |
Definition at line 73 of file bsmaster.h.
#define RETRY_WDMA 2 |
Definition at line 74 of file bsmaster.h.
#define SATA_CMD_ICC_Active 0x01 |
Definition at line 602 of file bsmaster.h.
#define SATA_CMD_ICC_Idle 0x00 |
Definition at line 600 of file bsmaster.h.
#define SATA_CMD_ICC_NoOp 0x00 |
Definition at line 601 of file bsmaster.h.
#define SATA_CMD_ICC_Partial 0x02 |
Definition at line 603 of file bsmaster.h.
#define SATA_CMD_ICC_Slumber 0x06 |
Definition at line 604 of file bsmaster.h.
#define SATA_MAX_PM_UNITS 16 |
Definition at line 110 of file bsmaster.h.
#define SControl_DET_Disable 0x04 |
Definition at line 334 of file bsmaster.h.
#define SControl_DET_DoNothing 0x00 |
Definition at line 331 of file bsmaster.h.
#define SControl_DET_Idle 0x00 |
Definition at line 332 of file bsmaster.h.
#define SControl_DET_Init 0x01 |
Definition at line 333 of file bsmaster.h.
#define SControl_IPM_NoPartial 0x01 |
Definition at line 346 of file bsmaster.h.
#define SControl_IPM_NoPartialSlumber 0x03 |
Definition at line 348 of file bsmaster.h.
#define SControl_IPM_NoRestrict 0x00 |
Definition at line 345 of file bsmaster.h.
#define SControl_IPM_NoSlumber 0x02 |
Definition at line 347 of file bsmaster.h.
#define SControl_SPD_LimGen1 0x01 |
Definition at line 339 of file bsmaster.h.
#define SControl_SPD_LimGen2 0x02 |
Definition at line 340 of file bsmaster.h.
#define SControl_SPD_LimGen3 0x03 |
Definition at line 341 of file bsmaster.h.
#define SControl_SPD_NoRestrict 0x00 |
Definition at line 338 of file bsmaster.h.
Definition at line 1630 of file bsmaster.h.
Definition at line 1659 of file bsmaster.h.
Definition at line 1688 of file bsmaster.h.
#define SStatus_DET_Dev_NoPhy 0x01 |
Definition at line 285 of file bsmaster.h.
#define SStatus_DET_Dev_Ok 0x03 |
Definition at line 286 of file bsmaster.h.
#define SStatus_DET_NoDev 0x00 |
Definition at line 284 of file bsmaster.h.
#define SStatus_DET_Offline 0x04 |
Definition at line 287 of file bsmaster.h.
#define SStatus_IPM_Active 0x01 |
Definition at line 299 of file bsmaster.h.
#define SStatus_IPM_NoDev 0x00 |
Definition at line 298 of file bsmaster.h.
#define SStatus_IPM_Partial 0x02 |
Definition at line 300 of file bsmaster.h.
#define SStatus_IPM_Slumber 0x06 |
Definition at line 301 of file bsmaster.h.
#define SStatus_SPD_Gen1 0x01 |
Definition at line 292 of file bsmaster.h.
#define SStatus_SPD_Gen2 0x02 |
Definition at line 293 of file bsmaster.h.
#define SStatus_SPD_Gen3 0x03 |
Definition at line 294 of file bsmaster.h.
#define SStatus_SPD_NoDev 0x00 |
Definition at line 291 of file bsmaster.h.
#define UNIATA_ALLOCATE_NEW_LUNS 0x00 |
Definition at line 1398 of file bsmaster.h.
#define VM_AUTO 0x00 |
Definition at line 1901 of file bsmaster.h.
#define VM_BOCHS 0x05 |
Definition at line 1906 of file bsmaster.h.
Definition at line 1909 of file bsmaster.h.
#define VM_NONE 0x01 |
Definition at line 1902 of file bsmaster.h.
#define VM_PCEM 0x06 |
Definition at line 1907 of file bsmaster.h.
#define VM_QEMU 0x04 |
Definition at line 1905 of file bsmaster.h.
#define VM_VBOX 0x02 |
Definition at line 1903 of file bsmaster.h.
#define VM_VMWARE 0x03 |
Definition at line 1904 of file bsmaster.h.
typedef struct _AHCI_ATA_H2D_FIS AHCI_ATA_H2D_FIS |
typedef union _AHCI_IS_REG AHCI_IS_REG |
typedef struct BM_DMA_ENTRY BM_DMA_ENTRY |
typedef struct _BUSMASTER_CTX BUSMASTER_CTX |
typedef struct _HW_CHANNEL HW_CHANNEL |
typedef struct _HW_LU_EXTENSION HW_LU_EXTENSION |
typedef struct _IDE_AHCI_CMD IDE_AHCI_CMD |
typedef struct _IDE_AHCI_RCV_FIS IDE_AHCI_RCV_FIS |
typedef struct _AHCI_ATA_H2D_FIS * PAHCI_ATA_H2D_FIS |
typedef union _AHCI_IS_REG * PAHCI_IS_REG |
typedef struct BM_DMA_ENTRY * PBM_DMA_ENTRY |
typedef struct _BUSMASTER_CTX * PBUSMASTER_CTX |
Definition at line 1355 of file bsmaster.h.
typedef struct _HW_CHANNEL * PHW_CHANNEL |
typedef struct _HW_DEVICE_EXTENSION * PHW_DEVICE_EXTENSION |
typedef struct _HW_LU_EXTENSION * PHW_LU_EXTENSION |
typedef struct _IDE_AHCI_CMD * PIDE_AHCI_CMD |
typedef struct _IDE_AHCI_CMD_LIST * PIDE_AHCI_CMD_LIST |
typedef struct _IDE_AHCI_PRD_ENTRY * PIDE_AHCI_PRD_ENTRY |
typedef struct _IDE_AHCI_RCV_FIS * PIDE_AHCI_RCV_FIS |
typedef struct _IDE_AHCI_REGISTERS * PIDE_AHCI_REGISTERS |
typedef struct _IDE_SATA_REGISTERS * PIDE_SATA_REGISTERS |
Definition at line 1356 of file bsmaster.h.
typedef union _SATA_SCONTROL_REG * PSATA_SCONTROL_REG |
typedef union _SATA_SERROR_REG * PSATA_SERROR_REG |
typedef union _SATA_SSTATUS_REG * PSATA_SSTATUS_REG |
typedef union _SATA_SCONTROL_REG SATA_SCONTROL_REG |
typedef union _SATA_SERROR_REG SATA_SERROR_REG |
typedef union _SATA_SSTATUS_REG SATA_SSTATUS_REG |
Definition at line 1879 of file id_init.cpp.
Referenced by AtapiAdapterControl(), AtapiChipInit(), AtapiFindIsaController(), AtapiHwInitialize(), AtapiHwInitialize__(), and UniataFindBusMasterController().
VOID NTAPI AtapiDmaAlloc | ( | IN PVOID | HwDeviceExtension, |
IN PPORT_CONFIGURATION_INFORMATION | ConfigInfo, | ||
IN ULONG | lChannel | ||
) |
Definition at line 138 of file id_dma.cpp.
Referenced by UniataAhciInit(), and UniataFindBusMasterController().
BOOLEAN NTAPI AtapiDmaDBPreSync | ( | IN PVOID | HwDeviceExtension, |
PHW_CHANNEL | chan, | ||
PSCSI_REQUEST_BLOCK | Srb | ||
) |
Definition at line 553 of file id_dma.cpp.
Referenced by AtapiInterrupt__(), AtapiSendCommand(), IdeReadWrite(), and IdeSendCommand().
BOOLEAN NTAPI AtapiDmaDBSync | ( | PHW_CHANNEL | chan, |
PSCSI_REQUEST_BLOCK | Srb | ||
) |
Definition at line 532 of file id_dma.cpp.
Referenced by AtapiCallBack__(), AtapiInterrupt__(), and AtapiStartIo__().
UCHAR NTAPI AtapiDmaDone | ( | IN PVOID | HwDeviceExtension, |
IN ULONG | DeviceNumber, | ||
IN ULONG | lChannel, | ||
IN PSCSI_REQUEST_BLOCK | Srb | ||
) |
Definition at line 685 of file id_dma.cpp.
Referenced by AtapiCheckInterrupt__(), AtapiInterrupt__(), AtapiResetController__(), AtapiSoftReset(), IdeSendCommand(), and UniataFindBusMasterController().
VOID NTAPI AtapiDmaInit | ( | IN PVOID | HwDeviceExtension, |
IN ULONG | DeviceNumber, | ||
IN ULONG | lChannel, | ||
IN SCHAR | apiomode, | ||
IN SCHAR | wdmamode, | ||
IN SCHAR | udmamode | ||
) |
Definition at line 975 of file id_dma.cpp.