Searched refs:IoPortBaseAddress (Results 1 – 3 of 3) sorted by relevance
/device/linaro/bootloader/edk2/QuarkSocPkg/QuarkNorthCluster/Library/SmbusLib/ |
D | SmbusLib.c | 37 UINTN IoPortBaseAddress; in InternalGetSmbusIoPortBaseAddress() local 40 IoPortBaseAddress = (UINTN) PcdGet16 (PcdSmbaIoBaseAddress); in InternalGetSmbusIoPortBaseAddress() 42 IoPortBaseAddress = (UINTN) LpcPciCfg32 (R_QNC_LPC_SMBUS_BASE) & B_QNC_LPC_SMBUS_BASE_MASK; in InternalGetSmbusIoPortBaseAddress() 48 ASSERT (IoPortBaseAddress != 0); in InternalGetSmbusIoPortBaseAddress() 50 return IoPortBaseAddress; in InternalGetSmbusIoPortBaseAddress() 70 UINTN IoPortBaseAddress in InternalSmBusAcquire() argument 77 IoWrite8 (IoPortBaseAddress + R_QNC_SMBUS_HCTL, 0); in InternalSmBusAcquire() 78 IoWrite8 (IoPortBaseAddress + R_QNC_SMBUS_HD0, 0); in InternalSmBusAcquire() 79 IoWrite8 (IoPortBaseAddress + R_QNC_SMBUS_HD1, 0); in InternalSmBusAcquire() 80 IoWrite8 (IoPortBaseAddress + R_QNC_SMBUS_HSTS, B_QNC_SMBUS_HSTS_ALL); in InternalSmBusAcquire() [all …]
|
/device/linaro/bootloader/edk2/Vlv2TbltDevicePkg/Library/SmbusLib/ |
D | SmbusLib.c | 44 UINTN IoPortBaseAddress; in InternalGetSmbusIoPortBaseAddress() 46 …IoPortBaseAddress = (UINTN) MmioRead32 (MmPciAddress (0, DEFAULT_PCI_BUS_NUMBER_PCH, PCI_DEVICE_NU… in InternalGetSmbusIoPortBaseAddress() 51 ASSERT (IoPortBaseAddress != 0); in InternalGetSmbusIoPortBaseAddress() 53 return IoPortBaseAddress; in InternalGetSmbusIoPortBaseAddress() 72 UINTN IoPortBaseAddress in InternalSmBusAcquire() 77 HostStatus = IoRead8 (IoPortBaseAddress + R_PCH_SMBUS_HSTS); in InternalSmBusAcquire() 84 IoWrite8 (IoPortBaseAddress + R_PCH_SMBUS_HSTS, B_PCH_SMBUS_HSTS_ALL); in InternalSmBusAcquire() 90 IoWrite8 (IoPortBaseAddress + R_PCH_SMBUS_HSTS, HostStatus); in InternalSmBusAcquire() 117 IN UINTN IoPortBaseAddress, in InternalSmBusStart() 127 IoWrite8 (IoPortBaseAddress + R_PCH_SMBUS_HCTL, (UINT8)(HostControl + B_PCH_SMBUS_START)); in InternalSmBusStart() [all …]
|
/device/linaro/bootloader/edk2/QuarkSocPkg/QuarkNorthCluster/QNCInit/Dxe/ |
D | DxeQNCSmbus.c | 64 UINTN IoPortBaseAddress; in GetSmbusIoPortBaseAddress() local 67 IoPortBaseAddress = (UINTN) PcdGet16 (PcdSmbaIoBaseAddress); in GetSmbusIoPortBaseAddress() 69 IoPortBaseAddress = (UINTN) LpcPciCfg32 (R_QNC_LPC_SMBUS_BASE) & B_QNC_LPC_SMBUS_BASE_MASK; in GetSmbusIoPortBaseAddress() 75 ASSERT (IoPortBaseAddress != 0); in GetSmbusIoPortBaseAddress() 77 return IoPortBaseAddress; in GetSmbusIoPortBaseAddress() 85 UINTN IoPortBaseAddress; in InitializeInternal() local 87 IoPortBaseAddress = GetSmbusIoPortBaseAddress (); in InitializeInternal() 97 IoWrite8 (IoPortBaseAddress + R_QNC_SMBUS_HSTS, B_QNC_SMBUS_HSTS_ALL); in InitializeInternal() 102 IoWrite8 (IoPortBaseAddress + R_QNC_SMBUS_HCLK, V_QNC_SMBUS_HCLK_100KHZ); in InitializeInternal()
|