coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
sata.h File Reference

Go to the source code of this file.

Macros

#define SATA_SIRI   0xa0 /* SATA Indexed Register Index */
 
#define SATA_SIRD   0xa4 /* SATA Indexed Register Data */
 
#define SATA_SP   0xd0 /* Scratchpad */
 
#define SATA_IOBP_SP0_SECRT88   0xea002688
 
#define SATA_IOBP_SP1_SECRT88   0xea002488
 
#define SATA_IOBP_SP2_SECRT88   0xea002288
 
#define SATA_IOBP_SP3_SECRT88   0xea002088
 
#define SATA_SECRT88_VADJ_MASK   0xff
 
#define SATA_SECRT88_VADJ_SHIFT   16
 
#define SATA_IOBP_SP0DTLE_DATA   0xea002750
 
#define SATA_IOBP_SP0DTLE_EDGE   0xea002754
 
#define SATA_IOBP_SP1DTLE_DATA   0xea002550
 
#define SATA_IOBP_SP1DTLE_EDGE   0xea002554
 
#define SATA_IOBP_SP2DTLE_DATA   0xea002350
 
#define SATA_IOBP_SP2DTLE_EDGE   0xea002354
 
#define SATA_IOBP_SP3DTLE_DATA   0xea002150
 
#define SATA_IOBP_SP3DTLE_EDGE   0xea002154
 
#define SATA_DTLE_MASK   0xF
 
#define SATA_DTLE_DATA_SHIFT   24
 
#define SATA_DTLE_EDGE_SHIFT   16
 
#define INTR_LN   0x3c
 
#define IDE_TIM_PRI   0x40 /* IDE timings, primary */
 
#define IDE_DECODE_ENABLE   (1 << 15)
 
#define IDE_SITRE   (1 << 14)
 
#define IDE_ISP_5_CLOCKS   (0 << 12)
 
#define IDE_ISP_4_CLOCKS   (1 << 12)
 
#define IDE_ISP_3_CLOCKS   (2 << 12)
 
#define IDE_RCT_4_CLOCKS   (0 << 8)
 
#define IDE_RCT_3_CLOCKS   (1 << 8)
 
#define IDE_RCT_2_CLOCKS   (2 << 8)
 
#define IDE_RCT_1_CLOCKS   (3 << 8)
 
#define IDE_DTE1   (1 << 7)
 
#define IDE_PPE1   (1 << 6)
 
#define IDE_IE1   (1 << 5)
 
#define IDE_TIME1   (1 << 4)
 
#define IDE_DTE0   (1 << 3)
 
#define IDE_PPE0   (1 << 2)
 
#define IDE_IE0   (1 << 1)
 
#define IDE_TIME0   (1 << 0)
 
#define IDE_TIM_SEC   0x42 /* IDE timings, secondary */
 
#define IDE_SDMA_CNT   0x48 /* Synchronous DMA control */
 
#define IDE_SSDE1   (1 << 3)
 
#define IDE_SSDE0   (1 << 2)
 
#define IDE_PSDE1   (1 << 1)
 
#define IDE_PSDE0   (1 << 0)
 
#define IDE_SDMA_TIM   0x4a
 
#define IDE_CONFIG   0x54 /* IDE I/O Configuration Register */
 
#define SIG_MODE_SEC_NORMAL   (0 << 18)
 
#define SIG_MODE_SEC_TRISTATE   (1 << 18)
 
#define SIG_MODE_SEC_DRIVELOW   (2 << 18)
 
#define SIG_MODE_PRI_NORMAL   (0 << 16)
 
#define SIG_MODE_PRI_TRISTATE   (1 << 16)
 
#define SIG_MODE_PRI_DRIVELOW   (2 << 16)
 
#define FAST_SCB1   (1 << 15)
 
#define FAST_SCB0   (1 << 14)
 
#define FAST_PCB1   (1 << 13)
 
#define FAST_PCB0   (1 << 12)
 
#define SCB1   (1 << 3)
 
#define SCB0   (1 << 2)
 
#define PCB1   (1 << 1)
 
#define PCB0   (1 << 0)
 

Macro Definition Documentation

◆ FAST_PCB0

#define FAST_PCB0   (1 << 12)

Definition at line 72 of file sata.h.

◆ FAST_PCB1

#define FAST_PCB1   (1 << 13)

Definition at line 71 of file sata.h.

◆ FAST_SCB0

#define FAST_SCB0   (1 << 14)

Definition at line 70 of file sata.h.

◆ FAST_SCB1

#define FAST_SCB1   (1 << 15)

Definition at line 69 of file sata.h.

◆ IDE_CONFIG

#define IDE_CONFIG   0x54 /* IDE I/O Configuration Register */

Definition at line 62 of file sata.h.

◆ IDE_DECODE_ENABLE

#define IDE_DECODE_ENABLE   (1 << 15)

Definition at line 35 of file sata.h.

◆ IDE_DTE0

#define IDE_DTE0   (1 << 3)

Definition at line 48 of file sata.h.

◆ IDE_DTE1

#define IDE_DTE1   (1 << 7)

Definition at line 44 of file sata.h.

◆ IDE_IE0

#define IDE_IE0   (1 << 1)

Definition at line 50 of file sata.h.

◆ IDE_IE1

#define IDE_IE1   (1 << 5)

Definition at line 46 of file sata.h.

◆ IDE_ISP_3_CLOCKS

#define IDE_ISP_3_CLOCKS   (2 << 12)

Definition at line 39 of file sata.h.

◆ IDE_ISP_4_CLOCKS

#define IDE_ISP_4_CLOCKS   (1 << 12)

Definition at line 38 of file sata.h.

◆ IDE_ISP_5_CLOCKS

#define IDE_ISP_5_CLOCKS   (0 << 12)

Definition at line 37 of file sata.h.

◆ IDE_PPE0

#define IDE_PPE0   (1 << 2)

Definition at line 49 of file sata.h.

◆ IDE_PPE1

#define IDE_PPE1   (1 << 6)

Definition at line 45 of file sata.h.

◆ IDE_PSDE0

#define IDE_PSDE0   (1 << 0)

Definition at line 58 of file sata.h.

◆ IDE_PSDE1

#define IDE_PSDE1   (1 << 1)

Definition at line 57 of file sata.h.

◆ IDE_RCT_1_CLOCKS

#define IDE_RCT_1_CLOCKS   (3 << 8)

Definition at line 43 of file sata.h.

◆ IDE_RCT_2_CLOCKS

#define IDE_RCT_2_CLOCKS   (2 << 8)

Definition at line 42 of file sata.h.

◆ IDE_RCT_3_CLOCKS

#define IDE_RCT_3_CLOCKS   (1 << 8)

Definition at line 41 of file sata.h.

◆ IDE_RCT_4_CLOCKS

#define IDE_RCT_4_CLOCKS   (0 << 8)

Definition at line 40 of file sata.h.

◆ IDE_SDMA_CNT

#define IDE_SDMA_CNT   0x48 /* Synchronous DMA control */

Definition at line 54 of file sata.h.

◆ IDE_SDMA_TIM

#define IDE_SDMA_TIM   0x4a

Definition at line 60 of file sata.h.

◆ IDE_SITRE

#define IDE_SITRE   (1 << 14)

Definition at line 36 of file sata.h.

◆ IDE_SSDE0

#define IDE_SSDE0   (1 << 2)

Definition at line 56 of file sata.h.

◆ IDE_SSDE1

#define IDE_SSDE1   (1 << 3)

Definition at line 55 of file sata.h.

◆ IDE_TIM_PRI

#define IDE_TIM_PRI   0x40 /* IDE timings, primary */

Definition at line 34 of file sata.h.

◆ IDE_TIM_SEC

#define IDE_TIM_SEC   0x42 /* IDE timings, secondary */

Definition at line 52 of file sata.h.

◆ IDE_TIME0

#define IDE_TIME0   (1 << 0)

Definition at line 51 of file sata.h.

◆ IDE_TIME1

#define IDE_TIME1   (1 << 4)

Definition at line 47 of file sata.h.

◆ INTR_LN

#define INTR_LN   0x3c

Definition at line 33 of file sata.h.

◆ PCB0

#define PCB0   (1 << 0)

Definition at line 76 of file sata.h.

◆ PCB1

#define PCB1   (1 << 1)

Definition at line 75 of file sata.h.

◆ SATA_DTLE_DATA_SHIFT

#define SATA_DTLE_DATA_SHIFT   24

Definition at line 29 of file sata.h.

◆ SATA_DTLE_EDGE_SHIFT

#define SATA_DTLE_EDGE_SHIFT   16

Definition at line 30 of file sata.h.

◆ SATA_DTLE_MASK

#define SATA_DTLE_MASK   0xF

Definition at line 28 of file sata.h.

◆ SATA_IOBP_SP0_SECRT88

#define SATA_IOBP_SP0_SECRT88   0xea002688

Definition at line 11 of file sata.h.

◆ SATA_IOBP_SP0DTLE_DATA

#define SATA_IOBP_SP0DTLE_DATA   0xea002750

Definition at line 19 of file sata.h.

◆ SATA_IOBP_SP0DTLE_EDGE

#define SATA_IOBP_SP0DTLE_EDGE   0xea002754

Definition at line 20 of file sata.h.

◆ SATA_IOBP_SP1_SECRT88

#define SATA_IOBP_SP1_SECRT88   0xea002488

Definition at line 12 of file sata.h.

◆ SATA_IOBP_SP1DTLE_DATA

#define SATA_IOBP_SP1DTLE_DATA   0xea002550

Definition at line 21 of file sata.h.

◆ SATA_IOBP_SP1DTLE_EDGE

#define SATA_IOBP_SP1DTLE_EDGE   0xea002554

Definition at line 22 of file sata.h.

◆ SATA_IOBP_SP2_SECRT88

#define SATA_IOBP_SP2_SECRT88   0xea002288

Definition at line 13 of file sata.h.

◆ SATA_IOBP_SP2DTLE_DATA

#define SATA_IOBP_SP2DTLE_DATA   0xea002350

Definition at line 23 of file sata.h.

◆ SATA_IOBP_SP2DTLE_EDGE

#define SATA_IOBP_SP2DTLE_EDGE   0xea002354

Definition at line 24 of file sata.h.

◆ SATA_IOBP_SP3_SECRT88

#define SATA_IOBP_SP3_SECRT88   0xea002088

Definition at line 14 of file sata.h.

◆ SATA_IOBP_SP3DTLE_DATA

#define SATA_IOBP_SP3DTLE_DATA   0xea002150

Definition at line 25 of file sata.h.

◆ SATA_IOBP_SP3DTLE_EDGE

#define SATA_IOBP_SP3DTLE_EDGE   0xea002154

Definition at line 26 of file sata.h.

◆ SATA_SECRT88_VADJ_MASK

#define SATA_SECRT88_VADJ_MASK   0xff

Definition at line 16 of file sata.h.

◆ SATA_SECRT88_VADJ_SHIFT

#define SATA_SECRT88_VADJ_SHIFT   16

Definition at line 17 of file sata.h.

◆ SATA_SIRD

#define SATA_SIRD   0xa4 /* SATA Indexed Register Data */

Definition at line 7 of file sata.h.

◆ SATA_SIRI

#define SATA_SIRI   0xa0 /* SATA Indexed Register Index */

Definition at line 6 of file sata.h.

◆ SATA_SP

#define SATA_SP   0xd0 /* Scratchpad */

Definition at line 8 of file sata.h.

◆ SCB0

#define SCB0   (1 << 2)

Definition at line 74 of file sata.h.

◆ SCB1

#define SCB1   (1 << 3)

Definition at line 73 of file sata.h.

◆ SIG_MODE_PRI_DRIVELOW

#define SIG_MODE_PRI_DRIVELOW   (2 << 16)

Definition at line 68 of file sata.h.

◆ SIG_MODE_PRI_NORMAL

#define SIG_MODE_PRI_NORMAL   (0 << 16)

Definition at line 66 of file sata.h.

◆ SIG_MODE_PRI_TRISTATE

#define SIG_MODE_PRI_TRISTATE   (1 << 16)

Definition at line 67 of file sata.h.

◆ SIG_MODE_SEC_DRIVELOW

#define SIG_MODE_SEC_DRIVELOW   (2 << 18)

Definition at line 65 of file sata.h.

◆ SIG_MODE_SEC_NORMAL

#define SIG_MODE_SEC_NORMAL   (0 << 18)

Definition at line 63 of file sata.h.

◆ SIG_MODE_SEC_TRISTATE

#define SIG_MODE_SEC_TRISTATE   (1 << 18)

Definition at line 64 of file sata.h.