coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
iosf.h File Reference
#include <stdint.h>
#include <soc/pci_devs.h>
Include dependency graph for iosf.h:

Go to the source code of this file.

Macros

#define IOSF_PCI_DEV   PCI_DEV(0, SOC_DEV, SOC_FUNC)
 
#define IOSF_OPCODE(x)   ((x) << 24)
 
#define IOSF_PORT(x)   ((0xff & (x)) << 16)
 
#define IOSF_REG(x)   ((0xff & (x)) << 8)
 
#define IOSF_REG_UPPER(x)   ((~0xff) & (x))
 
#define IOSF_BYTE_EN_0   0x10
 
#define IOSF_BYTE_EN_1   0x20
 
#define IOSF_BYTE_EN_2   0x40
 
#define IOSF_BYTE_EN_3   0x80
 
#define IOSF_BYTE_EN    (IOSF_BYTE_EN_0 | IOSF_BYTE_EN_1 | IOSF_BYTE_EN_2 | IOSF_BYTE_EN_3)
 
#define MCR_REG   0xd0
 
#define MDR_REG   0xd4
 
#define MCRX_REG   0xd8
 
#define IOSF_PORT_AUNIT   0x00 /* IO Arbiter unit */
 
#define IOSF_PORT_SYSMEMC   0x01 /* System Memory Controller */
 
#define IOSF_PORT_CPU_BUS   0x02 /* CPU Bus Interface Controller */
 
#define IOSF_PORT_BUNIT   0x03 /* System Memory Arbiter/Bunit */
 
#define IOSF_PORT_PMC   0x04 /* Power Management Controller */
 
#define IOSF_PORT_GFX   0x06 /* Graphics Adapter */
 
#define IOSF_PORT_DUNIT_CH0   0x07 /* DUNIT Channel 0 */
 
#define IOSF_PORT_DUNIT_CH1   0x07 /* DUNIT Channel 1 */
 
#define IOSF_PORT_CUNIT   0x08
 
#define IOSF_PORT_SYSMEMIO   0x0c /* System Memory IO */
 
#define IOSF_PORT_USBPHY   0x43 /* USB PHY */
 
#define IOSF_PORT_SEC   0x44 /* SEC */
 
#define IOSF_PORT_0x45   0x45
 
#define IOSF_PORT_0x46   0x46
 
#define IOSF_PORT_0x47   0x47
 
#define IOSF_PORT_SCORE   0x48 /* SCORE */
 
#define IOSF_PORT_0x55   0x55
 
#define IOSF_PORT_0x58   0x58
 
#define IOSF_PORT_0x59   0x59
 
#define IOSF_PORT_0x5a   0x5a
 
#define IOSF_PORT_USHPHY   0x61 /* USB XHCI PHY */
 
#define IOSF_PORT_SCC   0x63 /* Storage Control Cluster */
 
#define IOSF_PORT_LPSS   0xa0 /* LPSS - Low Power Subsystem */
 
#define IOSF_PORT_0xa2   0xa2
 
#define IOSF_PORT_SATAPHY   0xa3 /* SATA PHY */
 
#define IOSF_PORT_PCIEPHY   0xa6 /* PCIE PHY */
 
#define IOSF_PORT_SSUS   0xa8 /* SUS */
 
#define IOSF_PORT_CCU   0xa9 /* Clock control unit. */
 
#define IOSF_OP_READ_AUNIT   0x10
 
#define IOSF_OP_WRITE_AUNIT   (IOSF_OP_READ_AUNIT | 1)
 
#define IOSF_OP_READ_SYSMEMC   0x10
 
#define IOSF_OP_WRITE_SYSMEMC   (IOSF_OP_READ_SYSMEMC | 1)
 
#define IOSF_OP_READ_CPU_BUS   0x10
 
#define IOSF_OP_WRITE_CPU_BUS   (IOSF_OP_READ_CPU_BUS | 1)
 
#define IOSF_OP_READ_BUNIT   0x10
 
#define IOSF_OP_WRITE_BUNIT   (IOSF_OP_READ_BUNIT | 1)
 
#define IOSF_OP_READ_CUNIT   0x10
 
#define IOSF_OP_WRITE_CUNIT   (IOSF_OP_READ_CUNIT | 1)
 
#define IOSF_OP_READ_PMC   0x06
 
#define IOSF_OP_WRITE_PMC   (IOSF_OP_READ_PMC | 1)
 
#define IOSF_OP_READ_GFX   0x00
 
#define IOSF_OP_WRITE_GFX   (IOSF_OP_READ_GFX | 1)
 
#define IOSF_OP_READ_SYSMEMIO   0x06
 
#define IOSF_OP_WRITE_SYSMEMIO   (IOSF_OP_READ_SYSMEMIO | 1)
 
#define IOSF_OP_READ_USBPHY   0x06
 
#define IOSF_OP_WRITE_USBPHY   (IOSF_OP_READ_USBPHY | 1)
 
#define IOSF_OP_READ_SEC   0x04
 
#define IOSF_OP_WRITE_SEC   (IOSF_OP_READ_SEC | 1)
 
#define IOSF_OP_READ_0x45   0x06
 
#define IOSF_OP_WRITE_0x45   (IOSF_OP_READ_0x45 | 1)
 
#define IOSF_OP_READ_0x46   0x06
 
#define IOSF_OP_WRITE_0x46   (IOSF_OP_READ_0x46 | 1)
 
#define IOSF_OP_READ_0x47   0x06
 
#define IOSF_OP_WRITE_0x47   (IOSF_OP_READ_0x47 | 1)
 
#define IOSF_OP_READ_SCORE   0x06
 
#define IOSF_OP_WRITE_SCORE   (IOSF_OP_READ_SCORE | 1)
 
#define IOSF_OP_READ_0x55   0x04
 
#define IOSF_OP_WRITE_0x55   (IOSF_OP_READ_0x55 | 1)
 
#define IOSF_OP_READ_0x58   0x06
 
#define IOSF_OP_WRITE_0x58   (IOSF_OP_READ_0x58 | 1)
 
#define IOSF_OP_READ_0x59   0x06
 
#define IOSF_OP_WRITE_0x59   (IOSF_OP_READ_0x59 | 1)
 
#define IOSF_OP_READ_0x5a   0x04
 
#define IOSF_OP_WRITE_0x5a   (IOSF_OP_READ_0x5a | 1)
 
#define IOSF_OP_READ_USHPHY   0x06
 
#define IOSF_OP_WRITE_USHPHY   (IOSF_OP_READ_USHPHY | 1)
 
#define IOSF_OP_READ_SCC   0x06
 
#define IOSF_OP_WRITE_SCC   (IOSF_OP_READ_SCC | 1)
 
#define IOSF_OP_READ_LPSS   0x06
 
#define IOSF_OP_WRITE_LPSS   (IOSF_OP_READ_LPSS | 1)
 
#define IOSF_OP_READ_0xa2   0x06
 
#define IOSF_OP_WRITE_0xa2   (IOSF_OP_READ_0xa2 | 1)
 
#define IOSF_OP_READ_SATAPHY   0x00
 
#define IOSF_OP_WRITE_SATAPHY   (IOSF_OP_READ_SATAPHY | 1)
 
#define IOSF_OP_READ_PCIEPHY   0x00
 
#define IOSF_OP_WRITE_PCIEPHY   (IOSF_OP_READ_PCIEPHY | 1)
 
#define IOSF_OP_READ_SSUS   0x10
 
#define IOSF_OP_WRITE_SSUS   (IOSF_OP_READ_SSUS | 1)
 
#define IOSF_OP_READ_CCU   0x06
 
#define IOSF_OP_WRITE_CCU   (IOSF_OP_READ_CCU | 1)
 
#define BNOCACHE   0x23
 
#define BUNIT_BMBOUND   0x25
 
#define BUNIT_BMBOUND_HI   0x26
 
#define BUNIT_MMCONF_REG   0x27
 
#define BUNIT_SMRCP   0x2b
 
#define BUNIT_SMRRAC   0x2c
 
#define BUNIT_SMRWAC   0x2d
 
#define BUNIT_SMRRL   0x2e
 
#define BUNIT_SMRRH   0x2f
 
#define BUNIT_SMRR_ENABLE   (1 << 31)
 
#define SAI_IA_UNTRUSTED   (1 << 0)
 
#define SAI_IA_SMM   (1 << 2)
 
#define SAI_IA_BOOT   (1 << 4)
 
#define DRP   0x00
 
#define DRP_DIMM0_RANK0_EN   (0x01 << 0)
 
#define DRP_DIMM0_RANK1_EN   (0x01 << 1)
 
#define DRP_DIMM1_RANK0_EN   (0x01 << 2)
 
#define DRP_DIMM1_RANK1_EN   (0x01 << 3)
 
#define DRP_RANK_MASK
 
#define DTR0   0x01
 
#define DTR0_SPEED_MASK   0x03
 
#define DTR0_SPEED_800   0x00
 
#define DTR0_SPEED_1066   0x01
 
#define DTR0_SPEED_1333   0x02
 
#define DTR0_SPEED_1600   0x03
 
#define SB_BIOS_CONFIG   0x06
 
#define SB_BIOS_CONFIG_ECC_EN   (1 << 31)
 
#define SB_BIOS_CONFIG_DUAL_CH_DIS   (1 << 30)
 
#define SB_BIOS_CONFIG_EFF_ECC   (1 << 29)
 
#define SB_BIOS_CONFIG_EFF_DUAL_CH_DIS   (1 << 28)
 
#define SB_BIOS_CONFIG_PERF_MODE   (1 << 17)
 
#define SB_BIOS_CONFIG_PDM_MODE   (1 << 16)
 
#define SB_BIOS_CONFIG_DDRIO_PWRGATE   (1 << 8)
 
#define SB_BIOS_CONFIG_GFX_TURBO_DIS   (1 << 7)
 
#define SB_BIOS_CONFIG_PS2_EN_VNN   (1 << 3)
 
#define SB_BIOS_CONFIG_PS2_EN_VCC   (1 << 2)
 
#define SB_BIOS_CONFIG_PCIE_PLLOFFOK   (1 << 1)
 
#define SB_BIOS_CONFIG_USB_CACHING_EN   (1 << 0)
 
#define BIOS_RESET_CPL   0x05
 
#define BIOS_RESET_CPL_ALL_DONE   (1 << 1)
 
#define BIOS_RESET_CPL_RESET_DONE   (1 << 0)
 
#define PUNIT_PWRGT_CONTROL   0x60
 
#define PUNIT_PWRGT_STATUS   0x61
 
#define PUNIT_GPU_EC_VIRUS   0xd2
 
#define PUNIT_SOC_POWER_BUDGET   0x02
 
#define PUNIT_SOC_ENERGY_CREDIT   0x03
 
#define PUNIT_PTMC   0x80
 
#define PUNIT_GFXT   0x88
 
#define PUNIT_VEDT   0x89
 
#define PUNIT_ISPT   0x8c
 
#define PUNIT_PTPS   0xb2
 
#define PUNIT_TE_AUX0   0xb5
 
#define PUNIT_TE_AUX1   0xb6
 
#define PUNIT_TE_AUX2   0xb7
 
#define PUNIT_TE_AUX3   0xb8
 
#define PUNIT_TTE_VRIccMax   0xb9
 
#define PUNIT_TTE_VRHot   0xba
 
#define PUNIT_TTE_XXPROCHOT   0xbb
 
#define PUNIT_TTE_SLM0   0xbc
 
#define PUNIT_TTE_SLM1   0xbd
 
#define PUNIT_TTE_SWT   0xbf
 
#define LPSS_SIO_DMA1_CTL   0x280
 
#define LPSS_I2C1_CTL   0x288
 
#define LPSS_I2C2_CTL   0x290
 
#define LPSS_I2C3_CTL   0x298
 
#define LPSS_I2C4_CTL   0x2a0
 
#define LPSS_I2C5_CTL   0x2a8
 
#define LPSS_I2C6_CTL   0x2b0
 
#define LPSS_I2C7_CTL   0x2b8
 
#define LPSS_SIO_DMA2_CTL   0x240
 
#define LPSS_PWM1_CTL   0x248
 
#define LPSS_PWM2_CTL   0x250
 
#define LPSS_HSUART1_CTL   0x258
 
#define LPSS_HSUART2_CTL   0x260
 
#define LPSS_SPI_CTL   0x268
 
#define LPSS_CTL_ACPI_INT_EN   (1 << 21)
 
#define LPSS_CTL_PCI_CFG_DIS   (1 << 20)
 
#define LPSS_CTL_SNOOP   (1 << 18)
 
#define LPSS_CTL_NOSNOOP   (1 << 19)
 
#define LPSS_CTL_PM_CAP_PRSNT   (1 << 1)
 
#define SCC_SD_CTL   0x504
 
#define SCC_SDIO_CTL   0x508
 
#define SCC_MMC_CTL   0x50c
 
#define SCC_CTL_PCI_CFG_DIS   (1 << 0)
 
#define SCC_CTL_ACPI_INT_EN   (1 << 1)
 
#define PLT_CLK_CTRL_0   0x3c
 
#define PLT_CLK_CTRL_1   0x40
 
#define PLT_CLK_CTRL_2   0x44
 
#define PLT_CLK_CTRL_3   0x48
 
#define PLT_CLK_CTRL_4   0x4c
 
#define PLT_CLK_CTRL_5   0x50
 
#define PLT_CLK_CTRL_19P2MHZ_FREQ   (0 << 1)
 
#define PLT_CLK_CTRL_25MHZ_FREQ   (1 << 1)
 
#define PLT_CLK_CTRL_SELECT_FREQ   (1 << 0)
 
#define USBPHY_COMPBG   0x7f04
 
#define USBPHY_PER_PORT_LANE0   0x4100
 
#define USBPHY_PER_PORT_RCOMP_HS_PULLUP0   0x4122
 
#define USBPHY_PER_PORT_LANE1   0x4200
 
#define USBPHY_PER_PORT_RCOMP_HS_PULLUP1   0x4222
 
#define USBPHY_PER_PORT_LANE2   0x4300
 
#define USBPHY_PER_PORT_RCOMP_HS_PULLUP2   0x4322
 
#define USBPHY_PER_PORT_LANE3   0x4400
 
#define USBPHY_PER_PORT_RCOMP_HS_PULLUP3   0x4422
 
#define USHPHY_CDN_PLL_CONTROL   0x03c0
 
#define USHPHY_CDN_VCO_START_CAL_POINT   0x0054
 
#define USHPHY_CCDRLF   0x8040
 
#define USHPHY_PEAKING_AMP_CONFIG_DIAG   0x80a8
 
#define USHPHY_OFFSET_COR_CONFIG_DIAG   0x80b0
 
#define USHPHY_VGA_GAIN_CONFIG_DIAG   0x8080
 
#define USHPHY_REE_DAC_CONTROL   0x80b8
 
#define USHPHY_CDN_U1_POWER_STATE_DEF   0x0000
 
#define LPE_PCICFGCTR1   0x0500
 
#define LPE_PCICFGCTR1_PCI_CFG_DIS   (1 << 0)
 
#define LPE_PCICFGCTR1_ACPI_INT_EN   (1 << 1)
 

Functions

uint32_t iosf_read_port (uint32_t cr, int reg)
 
void iosf_write_port (uint32_t cr, int reg, uint32_t val)
 
uint32_t iosf_aunit_read (int reg)
 
void iosf_aunit_write (int reg, uint32_t val)
 
uint32_t iosf_cpu_bus_read (int reg)
 
void iosf_cpu_bus_write (int reg, uint32_t val)
 
uint32_t iosf_bunit_read (int reg)
 
void iosf_bunit_write (int reg, uint32_t val)
 
uint32_t iosf_dunit_read (int reg)
 
void iosf_dunit_write (int reg, uint32_t val)
 
uint32_t iosf_dunit_ch0_read (int reg)
 
uint32_t iosf_dunit_ch1_read (int reg)
 
uint32_t iosf_cunit_read (int reg)
 
void iosf_cunit_write (int reg, uint32_t val)
 
uint32_t iosf_punit_read (int reg)
 
void iosf_punit_write (int reg, uint32_t val)
 
uint32_t iosf_usbphy_read (int reg)
 
void iosf_usbphy_write (int reg, uint32_t val)
 
uint32_t iosf_ushphy_read (int reg)
 
void iosf_ushphy_write (int reg, uint32_t val)
 
uint32_t iosf_sec_read (int reg)
 
void iosf_sec_write (int reg, uint32_t val)
 
uint32_t iosf_port45_read (int reg)
 
void iosf_port45_write (int reg, uint32_t val)
 
uint32_t iosf_port46_read (int reg)
 
void iosf_port46_write (int reg, uint32_t val)
 
uint32_t iosf_port47_read (int reg)
 
void iosf_port47_write (int reg, uint32_t val)
 
uint32_t iosf_port55_read (int reg)
 
void iosf_port55_write (int reg, uint32_t val)
 
uint32_t iosf_port58_read (int reg)
 
void iosf_port58_write (int reg, uint32_t val)
 
uint32_t iosf_port59_read (int reg)
 
void iosf_port59_write (int reg, uint32_t val)
 
uint32_t iosf_port5a_read (int reg)
 
void iosf_port5a_write (int reg, uint32_t val)
 
uint32_t iosf_lpss_read (int reg)
 
void iosf_lpss_write (int reg, uint32_t val)
 
uint32_t iosf_ccu_read (int reg)
 
void iosf_ccu_write (int reg, uint32_t val)
 
uint32_t iosf_score_read (int reg)
 
void iosf_score_write (int reg, uint32_t val)
 
uint32_t iosf_scc_read (int reg)
 
void iosf_scc_write (int reg, uint32_t val)
 
uint32_t iosf_porta2_read (int reg)
 
void iosf_porta2_write (int reg, uint32_t val)
 
uint32_t iosf_ssus_read (int reg)
 
void iosf_ssus_write (int reg, uint32_t val)
 

Macro Definition Documentation

◆ BIOS_RESET_CPL

#define BIOS_RESET_CPL   0x05

Definition at line 233 of file iosf.h.

◆ BIOS_RESET_CPL_ALL_DONE

#define BIOS_RESET_CPL_ALL_DONE   (1 << 1)

Definition at line 234 of file iosf.h.

◆ BIOS_RESET_CPL_RESET_DONE

#define BIOS_RESET_CPL_RESET_DONE   (1 << 0)

Definition at line 235 of file iosf.h.

◆ BNOCACHE

#define BNOCACHE   0x23

Definition at line 176 of file iosf.h.

◆ BUNIT_BMBOUND

#define BUNIT_BMBOUND   0x25

Definition at line 178 of file iosf.h.

◆ BUNIT_BMBOUND_HI

#define BUNIT_BMBOUND_HI   0x26

Definition at line 184 of file iosf.h.

◆ BUNIT_MMCONF_REG

#define BUNIT_MMCONF_REG   0x27

Definition at line 185 of file iosf.h.

◆ BUNIT_SMRCP

#define BUNIT_SMRCP   0x2b

Definition at line 187 of file iosf.h.

◆ BUNIT_SMRR_ENABLE

#define BUNIT_SMRR_ENABLE   (1 << 31)

Definition at line 192 of file iosf.h.

◆ BUNIT_SMRRAC

#define BUNIT_SMRRAC   0x2c

Definition at line 188 of file iosf.h.

◆ BUNIT_SMRRH

#define BUNIT_SMRRH   0x2f

Definition at line 191 of file iosf.h.

◆ BUNIT_SMRRL

#define BUNIT_SMRRL   0x2e

Definition at line 190 of file iosf.h.

◆ BUNIT_SMRWAC

#define BUNIT_SMRWAC   0x2d

Definition at line 189 of file iosf.h.

◆ DRP

#define DRP   0x00

Definition at line 203 of file iosf.h.

◆ DRP_DIMM0_RANK0_EN

#define DRP_DIMM0_RANK0_EN   (0x01 << 0)

Definition at line 204 of file iosf.h.

◆ DRP_DIMM0_RANK1_EN

#define DRP_DIMM0_RANK1_EN   (0x01 << 1)

Definition at line 205 of file iosf.h.

◆ DRP_DIMM1_RANK0_EN

#define DRP_DIMM1_RANK0_EN   (0x01 << 2)

Definition at line 206 of file iosf.h.

◆ DRP_DIMM1_RANK1_EN

#define DRP_DIMM1_RANK1_EN   (0x01 << 3)

Definition at line 207 of file iosf.h.

◆ DRP_RANK_MASK

#define DRP_RANK_MASK
Value:
DRP_DIMM1_RANK0_EN | DRP_DIMM1_RANK1_EN)
#define DRP_DIMM0_RANK1_EN
Definition: iosf.h:205
#define DRP_DIMM1_RANK1_EN
Definition: iosf.h:207
#define DRP_DIMM0_RANK0_EN
Definition: iosf.h:204

Definition at line 208 of file iosf.h.

◆ DTR0

#define DTR0   0x01

Definition at line 210 of file iosf.h.

◆ DTR0_SPEED_1066

#define DTR0_SPEED_1066   0x01

Definition at line 213 of file iosf.h.

◆ DTR0_SPEED_1333

#define DTR0_SPEED_1333   0x02

Definition at line 214 of file iosf.h.

◆ DTR0_SPEED_1600

#define DTR0_SPEED_1600   0x03

Definition at line 215 of file iosf.h.

◆ DTR0_SPEED_800

#define DTR0_SPEED_800   0x00

Definition at line 212 of file iosf.h.

◆ DTR0_SPEED_MASK

#define DTR0_SPEED_MASK   0x03

Definition at line 211 of file iosf.h.

◆ IOSF_BYTE_EN

#define IOSF_BYTE_EN    (IOSF_BYTE_EN_0 | IOSF_BYTE_EN_1 | IOSF_BYTE_EN_2 | IOSF_BYTE_EN_3)

Definition at line 30 of file iosf.h.

◆ IOSF_BYTE_EN_0

#define IOSF_BYTE_EN_0   0x10

Definition at line 26 of file iosf.h.

◆ IOSF_BYTE_EN_1

#define IOSF_BYTE_EN_1   0x20

Definition at line 27 of file iosf.h.

◆ IOSF_BYTE_EN_2

#define IOSF_BYTE_EN_2   0x40

Definition at line 28 of file iosf.h.

◆ IOSF_BYTE_EN_3

#define IOSF_BYTE_EN_3   0x80

Definition at line 29 of file iosf.h.

◆ IOSF_OP_READ_0x45

#define IOSF_OP_READ_0x45   0x06

Definition at line 139 of file iosf.h.

◆ IOSF_OP_READ_0x46

#define IOSF_OP_READ_0x46   0x06

Definition at line 141 of file iosf.h.

◆ IOSF_OP_READ_0x47

#define IOSF_OP_READ_0x47   0x06

Definition at line 143 of file iosf.h.

◆ IOSF_OP_READ_0x55

#define IOSF_OP_READ_0x55   0x04

Definition at line 147 of file iosf.h.

◆ IOSF_OP_READ_0x58

#define IOSF_OP_READ_0x58   0x06

Definition at line 149 of file iosf.h.

◆ IOSF_OP_READ_0x59

#define IOSF_OP_READ_0x59   0x06

Definition at line 151 of file iosf.h.

◆ IOSF_OP_READ_0x5a

#define IOSF_OP_READ_0x5a   0x04

Definition at line 153 of file iosf.h.

◆ IOSF_OP_READ_0xa2

#define IOSF_OP_READ_0xa2   0x06

Definition at line 161 of file iosf.h.

◆ IOSF_OP_READ_AUNIT

#define IOSF_OP_READ_AUNIT   0x10

Definition at line 119 of file iosf.h.

◆ IOSF_OP_READ_BUNIT

#define IOSF_OP_READ_BUNIT   0x10

Definition at line 125 of file iosf.h.

◆ IOSF_OP_READ_CCU

#define IOSF_OP_READ_CCU   0x06

Definition at line 169 of file iosf.h.

◆ IOSF_OP_READ_CPU_BUS

#define IOSF_OP_READ_CPU_BUS   0x10

Definition at line 123 of file iosf.h.

◆ IOSF_OP_READ_CUNIT

#define IOSF_OP_READ_CUNIT   0x10

Definition at line 127 of file iosf.h.

◆ IOSF_OP_READ_GFX

#define IOSF_OP_READ_GFX   0x00

Definition at line 131 of file iosf.h.

◆ IOSF_OP_READ_LPSS

#define IOSF_OP_READ_LPSS   0x06

Definition at line 159 of file iosf.h.

◆ IOSF_OP_READ_PCIEPHY

#define IOSF_OP_READ_PCIEPHY   0x00

Definition at line 165 of file iosf.h.

◆ IOSF_OP_READ_PMC

#define IOSF_OP_READ_PMC   0x06

Definition at line 129 of file iosf.h.

◆ IOSF_OP_READ_SATAPHY

#define IOSF_OP_READ_SATAPHY   0x00

Definition at line 163 of file iosf.h.

◆ IOSF_OP_READ_SCC

#define IOSF_OP_READ_SCC   0x06

Definition at line 157 of file iosf.h.

◆ IOSF_OP_READ_SCORE

#define IOSF_OP_READ_SCORE   0x06

Definition at line 145 of file iosf.h.

◆ IOSF_OP_READ_SEC

#define IOSF_OP_READ_SEC   0x04

Definition at line 137 of file iosf.h.

◆ IOSF_OP_READ_SSUS

#define IOSF_OP_READ_SSUS   0x10

Definition at line 167 of file iosf.h.

◆ IOSF_OP_READ_SYSMEMC

#define IOSF_OP_READ_SYSMEMC   0x10

Definition at line 121 of file iosf.h.

◆ IOSF_OP_READ_SYSMEMIO

#define IOSF_OP_READ_SYSMEMIO   0x06

Definition at line 133 of file iosf.h.

◆ IOSF_OP_READ_USBPHY

#define IOSF_OP_READ_USBPHY   0x06

Definition at line 135 of file iosf.h.

◆ IOSF_OP_READ_USHPHY

#define IOSF_OP_READ_USHPHY   0x06

Definition at line 155 of file iosf.h.

◆ IOSF_OP_WRITE_0x45

#define IOSF_OP_WRITE_0x45   (IOSF_OP_READ_0x45 | 1)

Definition at line 140 of file iosf.h.

◆ IOSF_OP_WRITE_0x46

#define IOSF_OP_WRITE_0x46   (IOSF_OP_READ_0x46 | 1)

Definition at line 142 of file iosf.h.

◆ IOSF_OP_WRITE_0x47

#define IOSF_OP_WRITE_0x47   (IOSF_OP_READ_0x47 | 1)

Definition at line 144 of file iosf.h.

◆ IOSF_OP_WRITE_0x55

#define IOSF_OP_WRITE_0x55   (IOSF_OP_READ_0x55 | 1)

Definition at line 148 of file iosf.h.

◆ IOSF_OP_WRITE_0x58

#define IOSF_OP_WRITE_0x58   (IOSF_OP_READ_0x58 | 1)

Definition at line 150 of file iosf.h.

◆ IOSF_OP_WRITE_0x59

#define IOSF_OP_WRITE_0x59   (IOSF_OP_READ_0x59 | 1)

Definition at line 152 of file iosf.h.

◆ IOSF_OP_WRITE_0x5a

#define IOSF_OP_WRITE_0x5a   (IOSF_OP_READ_0x5a | 1)

Definition at line 154 of file iosf.h.

◆ IOSF_OP_WRITE_0xa2

#define IOSF_OP_WRITE_0xa2   (IOSF_OP_READ_0xa2 | 1)

Definition at line 162 of file iosf.h.

◆ IOSF_OP_WRITE_AUNIT

#define IOSF_OP_WRITE_AUNIT   (IOSF_OP_READ_AUNIT | 1)

Definition at line 120 of file iosf.h.

◆ IOSF_OP_WRITE_BUNIT

#define IOSF_OP_WRITE_BUNIT   (IOSF_OP_READ_BUNIT | 1)

Definition at line 126 of file iosf.h.

◆ IOSF_OP_WRITE_CCU

#define IOSF_OP_WRITE_CCU   (IOSF_OP_READ_CCU | 1)

Definition at line 170 of file iosf.h.

◆ IOSF_OP_WRITE_CPU_BUS

#define IOSF_OP_WRITE_CPU_BUS   (IOSF_OP_READ_CPU_BUS | 1)

Definition at line 124 of file iosf.h.

◆ IOSF_OP_WRITE_CUNIT

#define IOSF_OP_WRITE_CUNIT   (IOSF_OP_READ_CUNIT | 1)

Definition at line 128 of file iosf.h.

◆ IOSF_OP_WRITE_GFX

#define IOSF_OP_WRITE_GFX   (IOSF_OP_READ_GFX | 1)

Definition at line 132 of file iosf.h.

◆ IOSF_OP_WRITE_LPSS

#define IOSF_OP_WRITE_LPSS   (IOSF_OP_READ_LPSS | 1)

Definition at line 160 of file iosf.h.

◆ IOSF_OP_WRITE_PCIEPHY

#define IOSF_OP_WRITE_PCIEPHY   (IOSF_OP_READ_PCIEPHY | 1)

Definition at line 166 of file iosf.h.

◆ IOSF_OP_WRITE_PMC

#define IOSF_OP_WRITE_PMC   (IOSF_OP_READ_PMC | 1)

Definition at line 130 of file iosf.h.

◆ IOSF_OP_WRITE_SATAPHY

#define IOSF_OP_WRITE_SATAPHY   (IOSF_OP_READ_SATAPHY | 1)

Definition at line 164 of file iosf.h.

◆ IOSF_OP_WRITE_SCC

#define IOSF_OP_WRITE_SCC   (IOSF_OP_READ_SCC | 1)

Definition at line 158 of file iosf.h.

◆ IOSF_OP_WRITE_SCORE

#define IOSF_OP_WRITE_SCORE   (IOSF_OP_READ_SCORE | 1)

Definition at line 146 of file iosf.h.

◆ IOSF_OP_WRITE_SEC

#define IOSF_OP_WRITE_SEC   (IOSF_OP_READ_SEC | 1)

Definition at line 138 of file iosf.h.

◆ IOSF_OP_WRITE_SSUS

#define IOSF_OP_WRITE_SSUS   (IOSF_OP_READ_SSUS | 1)

Definition at line 168 of file iosf.h.

◆ IOSF_OP_WRITE_SYSMEMC

#define IOSF_OP_WRITE_SYSMEMC   (IOSF_OP_READ_SYSMEMC | 1)

Definition at line 122 of file iosf.h.

◆ IOSF_OP_WRITE_SYSMEMIO

#define IOSF_OP_WRITE_SYSMEMIO   (IOSF_OP_READ_SYSMEMIO | 1)

Definition at line 134 of file iosf.h.

◆ IOSF_OP_WRITE_USBPHY

#define IOSF_OP_WRITE_USBPHY   (IOSF_OP_READ_USBPHY | 1)

Definition at line 136 of file iosf.h.

◆ IOSF_OP_WRITE_USHPHY

#define IOSF_OP_WRITE_USHPHY   (IOSF_OP_READ_USHPHY | 1)

Definition at line 156 of file iosf.h.

◆ IOSF_OPCODE

#define IOSF_OPCODE (   x)    ((x) << 24)

Definition at line 21 of file iosf.h.

◆ IOSF_PCI_DEV

#define IOSF_PCI_DEV   PCI_DEV(0, SOC_DEV, SOC_FUNC)

Definition at line 19 of file iosf.h.

◆ IOSF_PORT

#define IOSF_PORT (   x)    ((0xff & (x)) << 16)

Definition at line 22 of file iosf.h.

◆ IOSF_PORT_0x45

#define IOSF_PORT_0x45   0x45

Definition at line 101 of file iosf.h.

◆ IOSF_PORT_0x46

#define IOSF_PORT_0x46   0x46

Definition at line 102 of file iosf.h.

◆ IOSF_PORT_0x47

#define IOSF_PORT_0x47   0x47

Definition at line 103 of file iosf.h.

◆ IOSF_PORT_0x55

#define IOSF_PORT_0x55   0x55

Definition at line 105 of file iosf.h.

◆ IOSF_PORT_0x58

#define IOSF_PORT_0x58   0x58

Definition at line 106 of file iosf.h.

◆ IOSF_PORT_0x59

#define IOSF_PORT_0x59   0x59

Definition at line 107 of file iosf.h.

◆ IOSF_PORT_0x5a

#define IOSF_PORT_0x5a   0x5a

Definition at line 108 of file iosf.h.

◆ IOSF_PORT_0xa2

#define IOSF_PORT_0xa2   0xa2

Definition at line 112 of file iosf.h.

◆ IOSF_PORT_AUNIT

#define IOSF_PORT_AUNIT   0x00 /* IO Arbiter unit */

Definition at line 89 of file iosf.h.

◆ IOSF_PORT_BUNIT

#define IOSF_PORT_BUNIT   0x03 /* System Memory Arbiter/Bunit */

Definition at line 92 of file iosf.h.

◆ IOSF_PORT_CCU

#define IOSF_PORT_CCU   0xa9 /* Clock control unit. */

Definition at line 116 of file iosf.h.

◆ IOSF_PORT_CPU_BUS

#define IOSF_PORT_CPU_BUS   0x02 /* CPU Bus Interface Controller */

Definition at line 91 of file iosf.h.

◆ IOSF_PORT_CUNIT

#define IOSF_PORT_CUNIT   0x08

Definition at line 97 of file iosf.h.

◆ IOSF_PORT_DUNIT_CH0

#define IOSF_PORT_DUNIT_CH0   0x07 /* DUNIT Channel 0 */

Definition at line 95 of file iosf.h.

◆ IOSF_PORT_DUNIT_CH1

#define IOSF_PORT_DUNIT_CH1   0x07 /* DUNIT Channel 1 */

Definition at line 96 of file iosf.h.

◆ IOSF_PORT_GFX

#define IOSF_PORT_GFX   0x06 /* Graphics Adapter */

Definition at line 94 of file iosf.h.

◆ IOSF_PORT_LPSS

#define IOSF_PORT_LPSS   0xa0 /* LPSS - Low Power Subsystem */

Definition at line 111 of file iosf.h.

◆ IOSF_PORT_PCIEPHY

#define IOSF_PORT_PCIEPHY   0xa6 /* PCIE PHY */

Definition at line 114 of file iosf.h.

◆ IOSF_PORT_PMC

#define IOSF_PORT_PMC   0x04 /* Power Management Controller */

Definition at line 93 of file iosf.h.

◆ IOSF_PORT_SATAPHY

#define IOSF_PORT_SATAPHY   0xa3 /* SATA PHY */

Definition at line 113 of file iosf.h.

◆ IOSF_PORT_SCC

#define IOSF_PORT_SCC   0x63 /* Storage Control Cluster */

Definition at line 110 of file iosf.h.

◆ IOSF_PORT_SCORE

#define IOSF_PORT_SCORE   0x48 /* SCORE */

Definition at line 104 of file iosf.h.

◆ IOSF_PORT_SEC

#define IOSF_PORT_SEC   0x44 /* SEC */

Definition at line 100 of file iosf.h.

◆ IOSF_PORT_SSUS

#define IOSF_PORT_SSUS   0xa8 /* SUS */

Definition at line 115 of file iosf.h.

◆ IOSF_PORT_SYSMEMC

#define IOSF_PORT_SYSMEMC   0x01 /* System Memory Controller */

Definition at line 90 of file iosf.h.

◆ IOSF_PORT_SYSMEMIO

#define IOSF_PORT_SYSMEMIO   0x0c /* System Memory IO */

Definition at line 98 of file iosf.h.

◆ IOSF_PORT_USBPHY

#define IOSF_PORT_USBPHY   0x43 /* USB PHY */

Definition at line 99 of file iosf.h.

◆ IOSF_PORT_USHPHY

#define IOSF_PORT_USHPHY   0x61 /* USB XHCI PHY */

Definition at line 109 of file iosf.h.

◆ IOSF_REG

#define IOSF_REG (   x)    ((0xff & (x)) << 8)

Definition at line 23 of file iosf.h.

◆ IOSF_REG_UPPER

#define IOSF_REG_UPPER (   x)    ((~0xff) & (x))

Definition at line 24 of file iosf.h.

◆ LPE_PCICFGCTR1

#define LPE_PCICFGCTR1   0x0500

Definition at line 332 of file iosf.h.

◆ LPE_PCICFGCTR1_ACPI_INT_EN

#define LPE_PCICFGCTR1_ACPI_INT_EN   (1 << 1)

Definition at line 334 of file iosf.h.

◆ LPE_PCICFGCTR1_PCI_CFG_DIS

#define LPE_PCICFGCTR1_PCI_CFG_DIS   (1 << 0)

Definition at line 333 of file iosf.h.

◆ LPSS_CTL_ACPI_INT_EN

#define LPSS_CTL_ACPI_INT_EN   (1 << 21)

Definition at line 275 of file iosf.h.

◆ LPSS_CTL_NOSNOOP

#define LPSS_CTL_NOSNOOP   (1 << 19)

Definition at line 278 of file iosf.h.

◆ LPSS_CTL_PCI_CFG_DIS

#define LPSS_CTL_PCI_CFG_DIS   (1 << 20)

Definition at line 276 of file iosf.h.

◆ LPSS_CTL_PM_CAP_PRSNT

#define LPSS_CTL_PM_CAP_PRSNT   (1 << 1)

Definition at line 279 of file iosf.h.

◆ LPSS_CTL_SNOOP

#define LPSS_CTL_SNOOP   (1 << 18)

Definition at line 277 of file iosf.h.

◆ LPSS_HSUART1_CTL

#define LPSS_HSUART1_CTL   0x258

Definition at line 272 of file iosf.h.

◆ LPSS_HSUART2_CTL

#define LPSS_HSUART2_CTL   0x260

Definition at line 273 of file iosf.h.

◆ LPSS_I2C1_CTL

#define LPSS_I2C1_CTL   0x288

Definition at line 262 of file iosf.h.

◆ LPSS_I2C2_CTL

#define LPSS_I2C2_CTL   0x290

Definition at line 263 of file iosf.h.

◆ LPSS_I2C3_CTL

#define LPSS_I2C3_CTL   0x298

Definition at line 264 of file iosf.h.

◆ LPSS_I2C4_CTL

#define LPSS_I2C4_CTL   0x2a0

Definition at line 265 of file iosf.h.

◆ LPSS_I2C5_CTL

#define LPSS_I2C5_CTL   0x2a8

Definition at line 266 of file iosf.h.

◆ LPSS_I2C6_CTL

#define LPSS_I2C6_CTL   0x2b0

Definition at line 267 of file iosf.h.

◆ LPSS_I2C7_CTL

#define LPSS_I2C7_CTL   0x2b8

Definition at line 268 of file iosf.h.

◆ LPSS_PWM1_CTL

#define LPSS_PWM1_CTL   0x248

Definition at line 270 of file iosf.h.

◆ LPSS_PWM2_CTL

#define LPSS_PWM2_CTL   0x250

Definition at line 271 of file iosf.h.

◆ LPSS_SIO_DMA1_CTL

#define LPSS_SIO_DMA1_CTL   0x280

Definition at line 261 of file iosf.h.

◆ LPSS_SIO_DMA2_CTL

#define LPSS_SIO_DMA2_CTL   0x240

Definition at line 269 of file iosf.h.

◆ LPSS_SPI_CTL

#define LPSS_SPI_CTL   0x268

Definition at line 274 of file iosf.h.

◆ MCR_REG

#define MCR_REG   0xd0

Definition at line 33 of file iosf.h.

◆ MCRX_REG

#define MCRX_REG   0xd8

Definition at line 35 of file iosf.h.

◆ MDR_REG

#define MDR_REG   0xd4

Definition at line 34 of file iosf.h.

◆ PLT_CLK_CTRL_0

#define PLT_CLK_CTRL_0   0x3c

Definition at line 294 of file iosf.h.

◆ PLT_CLK_CTRL_1

#define PLT_CLK_CTRL_1   0x40

Definition at line 295 of file iosf.h.

◆ PLT_CLK_CTRL_19P2MHZ_FREQ

#define PLT_CLK_CTRL_19P2MHZ_FREQ   (0 << 1)

Definition at line 300 of file iosf.h.

◆ PLT_CLK_CTRL_2

#define PLT_CLK_CTRL_2   0x44

Definition at line 296 of file iosf.h.

◆ PLT_CLK_CTRL_25MHZ_FREQ

#define PLT_CLK_CTRL_25MHZ_FREQ   (1 << 1)

Definition at line 301 of file iosf.h.

◆ PLT_CLK_CTRL_3

#define PLT_CLK_CTRL_3   0x48

Definition at line 297 of file iosf.h.

◆ PLT_CLK_CTRL_4

#define PLT_CLK_CTRL_4   0x4c

Definition at line 298 of file iosf.h.

◆ PLT_CLK_CTRL_5

#define PLT_CLK_CTRL_5   0x50

Definition at line 299 of file iosf.h.

◆ PLT_CLK_CTRL_SELECT_FREQ

#define PLT_CLK_CTRL_SELECT_FREQ   (1 << 0)

Definition at line 302 of file iosf.h.

◆ PUNIT_GFXT

#define PUNIT_GFXT   0x88

Definition at line 243 of file iosf.h.

◆ PUNIT_GPU_EC_VIRUS

#define PUNIT_GPU_EC_VIRUS   0xd2

Definition at line 238 of file iosf.h.

◆ PUNIT_ISPT

#define PUNIT_ISPT   0x8c

Definition at line 245 of file iosf.h.

◆ PUNIT_PTMC

#define PUNIT_PTMC   0x80

Definition at line 242 of file iosf.h.

◆ PUNIT_PTPS

#define PUNIT_PTPS   0xb2

Definition at line 246 of file iosf.h.

◆ PUNIT_PWRGT_CONTROL

#define PUNIT_PWRGT_CONTROL   0x60

Definition at line 236 of file iosf.h.

◆ PUNIT_PWRGT_STATUS

#define PUNIT_PWRGT_STATUS   0x61

Definition at line 237 of file iosf.h.

◆ PUNIT_SOC_ENERGY_CREDIT

#define PUNIT_SOC_ENERGY_CREDIT   0x03

Definition at line 241 of file iosf.h.

◆ PUNIT_SOC_POWER_BUDGET

#define PUNIT_SOC_POWER_BUDGET   0x02

Definition at line 240 of file iosf.h.

◆ PUNIT_TE_AUX0

#define PUNIT_TE_AUX0   0xb5

Definition at line 247 of file iosf.h.

◆ PUNIT_TE_AUX1

#define PUNIT_TE_AUX1   0xb6

Definition at line 248 of file iosf.h.

◆ PUNIT_TE_AUX2

#define PUNIT_TE_AUX2   0xb7

Definition at line 249 of file iosf.h.

◆ PUNIT_TE_AUX3

#define PUNIT_TE_AUX3   0xb8

Definition at line 250 of file iosf.h.

◆ PUNIT_TTE_SLM0

#define PUNIT_TTE_SLM0   0xbc

Definition at line 254 of file iosf.h.

◆ PUNIT_TTE_SLM1

#define PUNIT_TTE_SLM1   0xbd

Definition at line 255 of file iosf.h.

◆ PUNIT_TTE_SWT

#define PUNIT_TTE_SWT   0xbf

Definition at line 256 of file iosf.h.

◆ PUNIT_TTE_VRHot

#define PUNIT_TTE_VRHot   0xba

Definition at line 252 of file iosf.h.

◆ PUNIT_TTE_VRIccMax

#define PUNIT_TTE_VRIccMax   0xb9

Definition at line 251 of file iosf.h.

◆ PUNIT_TTE_XXPROCHOT

#define PUNIT_TTE_XXPROCHOT   0xbb

Definition at line 253 of file iosf.h.

◆ PUNIT_VEDT

#define PUNIT_VEDT   0x89

Definition at line 244 of file iosf.h.

◆ SAI_IA_BOOT

#define SAI_IA_BOOT   (1 << 4)

Definition at line 197 of file iosf.h.

◆ SAI_IA_SMM

#define SAI_IA_SMM   (1 << 2)

Definition at line 196 of file iosf.h.

◆ SAI_IA_UNTRUSTED

#define SAI_IA_UNTRUSTED   (1 << 0)

Definition at line 195 of file iosf.h.

◆ SB_BIOS_CONFIG

#define SB_BIOS_CONFIG   0x06

Definition at line 220 of file iosf.h.

◆ SB_BIOS_CONFIG_DDRIO_PWRGATE

#define SB_BIOS_CONFIG_DDRIO_PWRGATE   (1 << 8)

Definition at line 227 of file iosf.h.

◆ SB_BIOS_CONFIG_DUAL_CH_DIS

#define SB_BIOS_CONFIG_DUAL_CH_DIS   (1 << 30)

Definition at line 222 of file iosf.h.

◆ SB_BIOS_CONFIG_ECC_EN

#define SB_BIOS_CONFIG_ECC_EN   (1 << 31)

Definition at line 221 of file iosf.h.

◆ SB_BIOS_CONFIG_EFF_DUAL_CH_DIS

#define SB_BIOS_CONFIG_EFF_DUAL_CH_DIS   (1 << 28)

Definition at line 224 of file iosf.h.

◆ SB_BIOS_CONFIG_EFF_ECC

#define SB_BIOS_CONFIG_EFF_ECC   (1 << 29)

Definition at line 223 of file iosf.h.

◆ SB_BIOS_CONFIG_GFX_TURBO_DIS

#define SB_BIOS_CONFIG_GFX_TURBO_DIS   (1 << 7)

Definition at line 228 of file iosf.h.

◆ SB_BIOS_CONFIG_PCIE_PLLOFFOK

#define SB_BIOS_CONFIG_PCIE_PLLOFFOK   (1 << 1)

Definition at line 231 of file iosf.h.

◆ SB_BIOS_CONFIG_PDM_MODE

#define SB_BIOS_CONFIG_PDM_MODE   (1 << 16)

Definition at line 226 of file iosf.h.

◆ SB_BIOS_CONFIG_PERF_MODE

#define SB_BIOS_CONFIG_PERF_MODE   (1 << 17)

Definition at line 225 of file iosf.h.

◆ SB_BIOS_CONFIG_PS2_EN_VCC

#define SB_BIOS_CONFIG_PS2_EN_VCC   (1 << 2)

Definition at line 230 of file iosf.h.

◆ SB_BIOS_CONFIG_PS2_EN_VNN

#define SB_BIOS_CONFIG_PS2_EN_VNN   (1 << 3)

Definition at line 229 of file iosf.h.

◆ SB_BIOS_CONFIG_USB_CACHING_EN

#define SB_BIOS_CONFIG_USB_CACHING_EN   (1 << 0)

Definition at line 232 of file iosf.h.

◆ SCC_CTL_ACPI_INT_EN

#define SCC_CTL_ACPI_INT_EN   (1 << 1)

Definition at line 288 of file iosf.h.

◆ SCC_CTL_PCI_CFG_DIS

#define SCC_CTL_PCI_CFG_DIS   (1 << 0)

Definition at line 287 of file iosf.h.

◆ SCC_MMC_CTL

#define SCC_MMC_CTL   0x50c

Definition at line 286 of file iosf.h.

◆ SCC_SD_CTL

#define SCC_SD_CTL   0x504

Definition at line 284 of file iosf.h.

◆ SCC_SDIO_CTL

#define SCC_SDIO_CTL   0x508

Definition at line 285 of file iosf.h.

◆ USBPHY_COMPBG

#define USBPHY_COMPBG   0x7f04

Definition at line 307 of file iosf.h.

◆ USBPHY_PER_PORT_LANE0

#define USBPHY_PER_PORT_LANE0   0x4100

Definition at line 308 of file iosf.h.

◆ USBPHY_PER_PORT_LANE1

#define USBPHY_PER_PORT_LANE1   0x4200

Definition at line 310 of file iosf.h.

◆ USBPHY_PER_PORT_LANE2

#define USBPHY_PER_PORT_LANE2   0x4300

Definition at line 312 of file iosf.h.

◆ USBPHY_PER_PORT_LANE3

#define USBPHY_PER_PORT_LANE3   0x4400

Definition at line 314 of file iosf.h.

◆ USBPHY_PER_PORT_RCOMP_HS_PULLUP0

#define USBPHY_PER_PORT_RCOMP_HS_PULLUP0   0x4122

Definition at line 309 of file iosf.h.

◆ USBPHY_PER_PORT_RCOMP_HS_PULLUP1

#define USBPHY_PER_PORT_RCOMP_HS_PULLUP1   0x4222

Definition at line 311 of file iosf.h.

◆ USBPHY_PER_PORT_RCOMP_HS_PULLUP2

#define USBPHY_PER_PORT_RCOMP_HS_PULLUP2   0x4322

Definition at line 313 of file iosf.h.

◆ USBPHY_PER_PORT_RCOMP_HS_PULLUP3

#define USBPHY_PER_PORT_RCOMP_HS_PULLUP3   0x4422

Definition at line 315 of file iosf.h.

◆ USHPHY_CCDRLF

#define USHPHY_CCDRLF   0x8040

Definition at line 322 of file iosf.h.

◆ USHPHY_CDN_PLL_CONTROL

#define USHPHY_CDN_PLL_CONTROL   0x03c0

Definition at line 320 of file iosf.h.

◆ USHPHY_CDN_U1_POWER_STATE_DEF

#define USHPHY_CDN_U1_POWER_STATE_DEF   0x0000

Definition at line 327 of file iosf.h.

◆ USHPHY_CDN_VCO_START_CAL_POINT

#define USHPHY_CDN_VCO_START_CAL_POINT   0x0054

Definition at line 321 of file iosf.h.

◆ USHPHY_OFFSET_COR_CONFIG_DIAG

#define USHPHY_OFFSET_COR_CONFIG_DIAG   0x80b0

Definition at line 324 of file iosf.h.

◆ USHPHY_PEAKING_AMP_CONFIG_DIAG

#define USHPHY_PEAKING_AMP_CONFIG_DIAG   0x80a8

Definition at line 323 of file iosf.h.

◆ USHPHY_REE_DAC_CONTROL

#define USHPHY_REE_DAC_CONTROL   0x80b8

Definition at line 326 of file iosf.h.

◆ USHPHY_VGA_GAIN_CONFIG_DIAG

#define USHPHY_VGA_GAIN_CONFIG_DIAG   0x8080

Definition at line 325 of file iosf.h.

Function Documentation

◆ iosf_aunit_read()

uint32_t iosf_aunit_read ( int  reg)

Definition at line 151 of file iosf.c.

References IOSF_READ, and iosf_read_port().

Referenced by ssa_safe_config().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ iosf_aunit_write()

void iosf_aunit_write ( int  reg,
uint32_t  val 
)

Definition at line 156 of file iosf.c.

References IOSF_WRITE, iosf_write_port(), and val.

Referenced by ssa_safe_config().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ iosf_bunit_read()

uint32_t iosf_bunit_read ( int  reg)

Definition at line 39 of file iosf.c.

References IOSF_READ, and iosf_read_port().

Referenced by nc_read_resources(), nc_read_top_of_low_memory(), pre_mp_init(), smm_region(), smm_region_size(), smm_region_start(), soc_after_ram_init(), and ssa_safe_config().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ iosf_bunit_write()

void iosf_bunit_write ( int  reg,
uint32_t  val 
)

Definition at line 44 of file iosf.c.

References IOSF_WRITE, iosf_write_port(), and val.

Referenced by pre_mp_init(), soc_after_ram_init(), and ssa_safe_config().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ iosf_ccu_read()

uint32_t iosf_ccu_read ( int  reg)

Definition at line 121 of file iosf.c.

References IOSF_READ, and iosf_read_port().

Here is the call graph for this function:

◆ iosf_ccu_write()

void iosf_ccu_write ( int  reg,
uint32_t  val 
)

Definition at line 126 of file iosf.c.

References IOSF_WRITE, iosf_write_port(), and val.

Here is the call graph for this function:

◆ iosf_cpu_bus_read()

uint32_t iosf_cpu_bus_read ( int  reg)

Definition at line 161 of file iosf.c.

References IOSF_READ, and iosf_read_port().

Referenced by ssa_safe_config().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ iosf_cpu_bus_write()

void iosf_cpu_bus_write ( int  reg,
uint32_t  val 
)

Definition at line 166 of file iosf.c.

References IOSF_WRITE, iosf_write_port(), and val.

Referenced by ssa_safe_config().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ iosf_cunit_read()

uint32_t iosf_cunit_read ( int  reg)

Definition at line 71 of file iosf.c.

References IOSF_READ, and iosf_read_port().

Referenced by ssa_safe_config().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ iosf_cunit_write()

void iosf_cunit_write ( int  reg,
uint32_t  val 
)

Definition at line 76 of file iosf.c.

References IOSF_WRITE, iosf_write_port(), and val.

Referenced by ssa_safe_config().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ iosf_dunit_ch0_read()

uint32_t iosf_dunit_ch0_read ( int  reg)

Definition at line 54 of file iosf.c.

References iosf_dunit_read().

Referenced by print_dram_info().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ iosf_dunit_ch1_read()

uint32_t iosf_dunit_ch1_read ( int  reg)

Definition at line 59 of file iosf.c.

References IOSF_OP_READ_SYSMEMC, IOSF_OPCODE, IOSF_PORT, IOSF_PORT_DUNIT_CH1, and iosf_read_port().

Referenced by print_dram_info().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ iosf_dunit_read()

uint32_t iosf_dunit_read ( int  reg)

Definition at line 49 of file iosf.c.

References IOSF_READ, and iosf_read_port().

Referenced by baytrail_enable_2x_refresh_rate(), iosf_dunit_ch0_read(), and print_dram_info().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ iosf_dunit_write()

void iosf_dunit_write ( int  reg,
uint32_t  val 
)

Definition at line 66 of file iosf.c.

References IOSF_WRITE, iosf_write_port(), and val.

Referenced by baytrail_enable_2x_refresh_rate().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ iosf_lpss_read()

uint32_t iosf_lpss_read ( int  reg)

Definition at line 111 of file iosf.c.

References IOSF_READ, and iosf_read_port().

Here is the call graph for this function:

◆ iosf_lpss_write()

void iosf_lpss_write ( int  reg,
uint32_t  val 
)

Definition at line 116 of file iosf.c.

References IOSF_WRITE, iosf_write_port(), and val.

Here is the call graph for this function:

◆ iosf_port45_read()

uint32_t iosf_port45_read ( int  reg)

Definition at line 181 of file iosf.c.

References IOSF_READ, and iosf_read_port().

Here is the call graph for this function:

◆ iosf_port45_write()

void iosf_port45_write ( int  reg,
uint32_t  val 
)

Definition at line 186 of file iosf.c.

References IOSF_WRITE, iosf_write_port(), and val.

Here is the call graph for this function:

◆ iosf_port46_read()

uint32_t iosf_port46_read ( int  reg)

Definition at line 191 of file iosf.c.

References IOSF_READ, and iosf_read_port().

Here is the call graph for this function:

◆ iosf_port46_write()

void iosf_port46_write ( int  reg,
uint32_t  val 
)

Definition at line 196 of file iosf.c.

References IOSF_WRITE, iosf_write_port(), and val.

Here is the call graph for this function:

◆ iosf_port47_read()

uint32_t iosf_port47_read ( int  reg)

Definition at line 201 of file iosf.c.

References IOSF_READ, and iosf_read_port().

Here is the call graph for this function:

◆ iosf_port47_write()

void iosf_port47_write ( int  reg,
uint32_t  val 
)

Definition at line 206 of file iosf.c.

References IOSF_WRITE, iosf_write_port(), and val.

Here is the call graph for this function:

◆ iosf_port55_read()

uint32_t iosf_port55_read ( int  reg)

Definition at line 211 of file iosf.c.

References IOSF_READ, and iosf_read_port().

Here is the call graph for this function:

◆ iosf_port55_write()

void iosf_port55_write ( int  reg,
uint32_t  val 
)

Definition at line 216 of file iosf.c.

References IOSF_WRITE, iosf_write_port(), and val.

Here is the call graph for this function:

◆ iosf_port58_read()

uint32_t iosf_port58_read ( int  reg)

Definition at line 221 of file iosf.c.

References IOSF_READ, and iosf_read_port().

Referenced by soc_legacy().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ iosf_port58_write()

void iosf_port58_write ( int  reg,
uint32_t  val 
)

Definition at line 226 of file iosf.c.

References IOSF_WRITE, iosf_write_port(), and val.

Referenced by soc_legacy().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ iosf_port59_read()

uint32_t iosf_port59_read ( int  reg)

Definition at line 231 of file iosf.c.

References IOSF_READ, and iosf_read_port().

Here is the call graph for this function:

◆ iosf_port59_write()

void iosf_port59_write ( int  reg,
uint32_t  val 
)

Definition at line 236 of file iosf.c.

References IOSF_WRITE, iosf_write_port(), and val.

Here is the call graph for this function:

◆ iosf_port5a_read()

uint32_t iosf_port5a_read ( int  reg)

Definition at line 241 of file iosf.c.

References IOSF_READ, and iosf_read_port().

Here is the call graph for this function:

◆ iosf_port5a_write()

void iosf_port5a_write ( int  reg,
uint32_t  val 
)

Definition at line 246 of file iosf.c.

References IOSF_WRITE, iosf_write_port(), and val.

Here is the call graph for this function:

◆ iosf_porta2_read()

uint32_t iosf_porta2_read ( int  reg)

Definition at line 251 of file iosf.c.

References IOSF_READ, and iosf_read_port().

Here is the call graph for this function:

◆ iosf_porta2_write()

void iosf_porta2_write ( int  reg,
uint32_t  val 
)

Definition at line 256 of file iosf.c.

References IOSF_WRITE, iosf_write_port(), and val.

Here is the call graph for this function:

◆ iosf_punit_read()

uint32_t iosf_punit_read ( int  reg)

Definition at line 81 of file iosf.c.

References IOSF_READ, iosf_read_port(), and PMC.

Referenced by punit_init().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ iosf_punit_write()

void iosf_punit_write ( int  reg,
uint32_t  val 
)

Definition at line 86 of file iosf.c.

References IOSF_WRITE, iosf_write_port(), PMC, and val.

Referenced by punit_init().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ iosf_read_port()

◆ iosf_scc_read()

uint32_t iosf_scc_read ( int  reg)

Definition at line 141 of file iosf.c.

References IOSF_READ, and iosf_read_port().

Here is the call graph for this function:

◆ iosf_scc_write()

void iosf_scc_write ( int  reg,
uint32_t  val 
)

Definition at line 146 of file iosf.c.

References IOSF_WRITE, iosf_write_port(), and val.

Here is the call graph for this function:

◆ iosf_score_read()

uint32_t iosf_score_read ( int  reg)

Definition at line 131 of file iosf.c.

References IOSF_READ, and iosf_read_port().

Referenced by baytrail_init_scc().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ iosf_score_write()

void iosf_score_write ( int  reg,
uint32_t  val 
)

Definition at line 136 of file iosf.c.

References IOSF_WRITE, iosf_write_port(), and val.

Referenced by baytrail_init_scc().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ iosf_sec_read()

uint32_t iosf_sec_read ( int  reg)

Definition at line 171 of file iosf.c.

References IOSF_READ, and iosf_read_port().

Here is the call graph for this function:

◆ iosf_sec_write()

void iosf_sec_write ( int  reg,
uint32_t  val 
)

Definition at line 176 of file iosf.c.

References IOSF_WRITE, iosf_write_port(), and val.

Here is the call graph for this function:

◆ iosf_ssus_read()

uint32_t iosf_ssus_read ( int  reg)

Definition at line 261 of file iosf.c.

References IOSF_READ, and iosf_read_port().

Here is the call graph for this function:

◆ iosf_ssus_write()

void iosf_ssus_write ( int  reg,
uint32_t  val 
)

Definition at line 266 of file iosf.c.

References IOSF_WRITE, iosf_write_port(), and val.

Here is the call graph for this function:

◆ iosf_usbphy_read()

uint32_t iosf_usbphy_read ( int  reg)

Definition at line 91 of file iosf.c.

References IOSF_READ, and iosf_read_port().

Here is the call graph for this function:

◆ iosf_usbphy_write()

void iosf_usbphy_write ( int  reg,
uint32_t  val 
)

Definition at line 96 of file iosf.c.

References IOSF_WRITE, iosf_write_port(), and val.

Here is the call graph for this function:

◆ iosf_ushphy_read()

uint32_t iosf_ushphy_read ( int  reg)

Definition at line 101 of file iosf.c.

References IOSF_READ, and iosf_read_port().

Here is the call graph for this function:

◆ iosf_ushphy_write()

void iosf_ushphy_write ( int  reg,
uint32_t  val 
)

Definition at line 106 of file iosf.c.

References IOSF_WRITE, iosf_write_port(), and val.

Here is the call graph for this function:

◆ iosf_write_port()