Home
last modified time | relevance | path

Searched refs:PcdGet16 (Results 1 – 25 of 74) sorted by relevance

123

/device/linaro/bootloader/edk2/PcAtChipsetPkg/Library/AcpiTimerLib/
DAcpiTimerLib.c61 ASSERT (PcdGet16 (PcdAcpiIoPciBarRegisterOffset) != 0xFFFF); in AcpiTimerLibConstructor()
62 ASSERT (PcdGet16 (PcdAcpiIoPortBaseAddress) != 0xFFFF); in AcpiTimerLibConstructor()
69 if (PcdGet16 (PcdAcpiIoPciBarRegisterOffset) == 0x0000) { in AcpiTimerLibConstructor()
78 ASSERT (PcdGet16 (PcdAcpiIoPciEnableRegisterOffset) != 0xFFFF); in AcpiTimerLibConstructor()
86 EnableRegister = PcdGet16 (PcdAcpiIoPciEnableRegisterOffset); in AcpiTimerLibConstructor()
94 PCI_LIB_ADDRESS (Bus, Device, Function, PcdGet16 (PcdAcpiIoPciBarRegisterOffset)), in AcpiTimerLibConstructor()
95 PcdGet16 (PcdAcpiIoPortBaseAddress) in AcpiTimerLibConstructor()
121 Port = PcdGet16 (PcdAcpiIoPortBaseAddress); in InternalAcpiGetAcpiTimerIoPort()
128 if (PcdGet16 (PcdAcpiIoPciBarRegisterOffset) != 0x0000) { in InternalAcpiGetAcpiTimerIoPort()
133 PcdGet16 (PcdAcpiIoPciBarRegisterOffset) in InternalAcpiGetAcpiTimerIoPort()
[all …]
/device/linaro/bootloader/edk2/QuarkSocPkg/QuarkNorthCluster/Library/ResetSystemLib/
DResetSystemLib.c160 IoWrite16 (PcdGet16 (PcdPm1blkIoBaseAddress) + R_QNC_PM1BLK_PM1E, 0); in ResetShutdown()
172 IoWrite32 (PcdGet16 (PcdGbaIoBaseAddress) + R_QNC_GPIO_RGGPE_RESUME_WELL, 0); in ResetShutdown()
181 …IoAndThenOr32 (PcdGet16 (PcdPm1blkIoBaseAddress) + R_QNC_PM1BLK_PM1C, 0xffffc3ff, B_QNC_PM1BLK_PM1… in ResetShutdown()
228 IoWrite16 (PcdGet16 (PcdGpe0blkIoBaseAddress) + R_QNC_GPE0BLK_SMIE, 0); in EnterS3WithImmediateWake()
246 IoWrite16 (PcdGet16 (PcdPm1blkIoBaseAddress) + R_QNC_PM1BLK_PM1E, B_QNC_PM1BLK_PM1E_PWAKED); in EnterS3WithImmediateWake()
251 IoWrite16 (PcdGet16 (PcdPm1blkIoBaseAddress) + R_QNC_PM1BLK_PM1S, B_QNC_PM1BLK_PM1S_ALL); in EnterS3WithImmediateWake()
303 Data16 = IoRead16 (PcdGet16 (PcdPm1blkIoBaseAddress) + R_QNC_PM1BLK_PM1E); in EnterS3WithImmediateWake()
304 …IoWrite16 (PcdGet16 (PcdPm1blkIoBaseAddress) + R_QNC_PM1BLK_PM1E, (Data16 | B_QNC_PM1BLK_PM1E_RTC)… in EnterS3WithImmediateWake()
309 Data32 = IoRead32 (PcdGet16 (PcdPm1blkIoBaseAddress) + R_QNC_PM1BLK_PM1C); in EnterS3WithImmediateWake()
311 IoWrite32 (PcdGet16 (PcdPm1blkIoBaseAddress) + R_QNC_PM1BLK_PM1C, Data32); in EnterS3WithImmediateWake()
[all …]
/device/linaro/bootloader/edk2/QuarkPlatformPkg/Acpi/Dxe/AcpiPlatform/
DAcpiPlatform.c218 *(UINT32 *)DsdtPointer = PcdGet16(PcdPmbaIoBaseAddress); in DsdtTableUpdate()
402 FadtHeader1->SmiCmd = PcdGet16(PcdSmmActivationPort); in AcpiUpdateTable()
403 FadtHeader1->Pm1aEvtBlk = PcdGet16(PcdPm1blkIoBaseAddress); in AcpiUpdateTable()
404 FadtHeader1->Pm1aCntBlk = PcdGet16(PcdPm1blkIoBaseAddress) + R_QNC_PM1BLK_PM1C; in AcpiUpdateTable()
405 FadtHeader1->PmTmrBlk = PcdGet16(PcdPm1blkIoBaseAddress) + R_QNC_PM1BLK_PM1T; in AcpiUpdateTable()
406 FadtHeader1->Gpe0Blk = PcdGet16(PcdGpe0blkIoBaseAddress); in AcpiUpdateTable()
410 FadtHeader2->SmiCmd = PcdGet16(PcdSmmActivationPort); in AcpiUpdateTable()
411 FadtHeader2->Pm1aEvtBlk = PcdGet16(PcdPm1blkIoBaseAddress); in AcpiUpdateTable()
412 FadtHeader2->Pm1aCntBlk = PcdGet16(PcdPm1blkIoBaseAddress) + R_QNC_PM1BLK_PM1C; in AcpiUpdateTable()
413 FadtHeader2->PmTmrBlk = PcdGet16(PcdPm1blkIoBaseAddress) + R_QNC_PM1BLK_PM1T; in AcpiUpdateTable()
[all …]
/device/linaro/bootloader/edk2/QuarkSocPkg/QuarkNorthCluster/Smm/Dxe/SmmControlDxe/
DSmmControlDriver.c132 PM1BLK_Base = PcdGet16 (PcdPm1blkIoBaseAddress); in SmmClear()
133 GPE0BLK_Base = PcdGet16 (PcdGpe0blkIoBaseAddress); in SmmClear()
183 GPE0BLK_Base = PcdGet16 (PcdGpe0blkIoBaseAddress); in Activate()
213 IoWrite8 (PcdGet16 (PcdSmmDataPort), 0xFF); in Activate()
215 IoWrite8 (PcdGet16 (PcdSmmDataPort), *DataPort); in Activate()
222 IoWrite8 (PcdGet16 (PcdSmmActivationPort), 0xFF); in Activate()
224 IoWrite8 (PcdGet16 (PcdSmmActivationPort), *CommandPort); in Activate()
281 PM1BLK_Base = PcdGet16 (PcdPm1blkIoBaseAddress); in SmmControl2Init()
282 GPE0BLK_Base = PcdGet16 (PcdGpe0blkIoBaseAddress); in SmmControl2Init()
/device/linaro/bootloader/edk2/QuarkSocPkg/QuarkNorthCluster/Smm/DxeSmm/QncSmmDispatcher/QNC/
DQNCSmmHelpers.c160 Pm1Cnt = IoRead32(PcdGet16 (PcdPm1blkIoBaseAddress) + R_QNC_PM1BLK_PM1C); in QNCSmmClearSmi()
172 IoOr16((PcdGet16 (PcdPm1blkIoBaseAddress) + R_QNC_PM1BLK_PM1S), Pm1Sts); in QNCSmmClearSmi()
214 Pm1Cnt = IoRead32(PcdGet16 (PcdPm1blkIoBaseAddress) + R_QNC_PM1BLK_PM1C); in QNCSmmGetSciEn()
249 …ASSERT ((PcdGet16 (PcdPm1blkIoBaseAddress) != 0x0) && ((PcdGet16 (PcdPm1blkIoBaseAddress) & 0x1) !… in ReadBitDesc()
262 Register = (UINT64) IoRead8 (PcdGet16 (PcdPm1blkIoBaseAddress) + BitDesc->Reg.Data.acpi); in ReadBitDesc()
266 Register = (UINT64) IoRead16 (PcdGet16 (PcdPm1blkIoBaseAddress) + BitDesc->Reg.Data.acpi); in ReadBitDesc()
270 Register = (UINT64) IoRead32 (PcdGet16 (PcdPm1blkIoBaseAddress) + BitDesc->Reg.Data.acpi); in ReadBitDesc()
427 …ASSERT ((PcdGet16 (PcdPm1blkIoBaseAddress) != 0x0) && ((PcdGet16 (PcdPm1blkIoBaseAddress) & 0x1) !… in WriteBitDesc()
440 …IoAndThenOr8 (PcdGet16 (PcdPm1blkIoBaseAddress) + BitDesc->Reg.Data.acpi, (UINT8)AndVal, (UINT8)Or… in WriteBitDesc()
444 …IoAndThenOr16 (PcdGet16 (PcdPm1blkIoBaseAddress) + BitDesc->Reg.Data.acpi, (UINT16)AndVal, (UINT16… in WriteBitDesc()
[all …]
DQNCSmmSx.c47 Pm1Cnt = IoRead32 (PcdGet16 (PcdPm1blkIoBaseAddress) + R_QNC_PM1BLK_PM1C); in SxGetContext()
134 Pm1Cnt = IoOr32 (PcdGet16 (PcdPm1blkIoBaseAddress) + R_QNC_PM1BLK_PM1C, B_QNC_PM1BLK_PM1C_SLPEN); in QNCSmmSxGoToSleep()
140 Pm1Cnt = IoRead32 (PcdGet16 (PcdPm1blkIoBaseAddress) + R_QNC_PM1BLK_PM1C); in QNCSmmSxGoToSleep()
148 IoWrite32 (PcdGet16 (PcdPm1blkIoBaseAddress) + R_QNC_PM1BLK_PM1C, Pm1Cnt); in QNCSmmSxGoToSleep()
/device/linaro/bootloader/edk2/QuarkPlatformPkg/Platform/Dxe/Setup/
DQNCRegTable.c59 PcdGet16(PcdQuarkAgent0IR) in PlatformInitQNCRegs()
62 PcdGet16(PcdQuarkAgent1IR) in PlatformInitQNCRegs()
65 PcdGet16(PcdQuarkAgent2IR) in PlatformInitQNCRegs()
68 PcdGet16(PcdQuarkAgent3IR) in PlatformInitQNCRegs()
/device/linaro/bootloader/edk2/QuarkPlatformPkg/Platform/Dxe/SmbiosMiscDxe/
DMiscSystemSlotDesignationFunction.c83 SMBIOSlotConfig.SMBIOSSystemSlot[0].SlotId = PcdGet16(PcdSMBIOSSystemSlot1Id); in GetMiscSLotConfigFromPcd()
91 SMBIOSlotConfig.SMBIOSSystemSlot[1].SlotId = PcdGet16(PcdSMBIOSSystemSlot2Id); in GetMiscSLotConfigFromPcd()
99 SMBIOSlotConfig.SMBIOSSystemSlot[2].SlotId = PcdGet16(PcdSMBIOSSystemSlot3Id); in GetMiscSLotConfigFromPcd()
107 SMBIOSlotConfig.SMBIOSSystemSlot[3].SlotId = PcdGet16(PcdSMBIOSSystemSlot4Id); in GetMiscSLotConfigFromPcd()
115 SMBIOSlotConfig.SMBIOSSystemSlot[4].SlotId = PcdGet16(PcdSMBIOSSystemSlot5Id); in GetMiscSLotConfigFromPcd()
123 SMBIOSlotConfig.SMBIOSSystemSlot[5].SlotId = PcdGet16(PcdSMBIOSSystemSlot6Id); in GetMiscSLotConfigFromPcd()
131 SMBIOSlotConfig.SMBIOSSystemSlot[6].SlotId = PcdGet16(PcdSMBIOSSystemSlot7Id); in GetMiscSLotConfigFromPcd()
139 SMBIOSlotConfig.SMBIOSSystemSlot[7].SlotId = PcdGet16(PcdSMBIOSSystemSlot8Id); in GetMiscSLotConfigFromPcd()
147 SMBIOSlotConfig.SMBIOSSystemSlot[8].SlotId = PcdGet16(PcdSMBIOSSystemSlot9Id); in GetMiscSLotConfigFromPcd()
155 SMBIOSlotConfig.SMBIOSSystemSlot[9].SlotId = PcdGet16(PcdSMBIOSSystemSlot10Id); in GetMiscSLotConfigFromPcd()
[all …]
/device/linaro/bootloader/edk2/QuarkSocPkg/QuarkNorthCluster/Library/QNCSmmLib/
DQNCSmmLib.c48 PM1BLK_Base = PcdGet16 (PcdPm1blkIoBaseAddress); in InternalTriggerSmi()
67 IoWrite8 (PcdGet16 (PcdSmmDataPort), Data); in InternalTriggerSmi()
72 IoWrite8 (PcdGet16 (PcdSmmActivationPort), PcdGet8 (PcdSmmActivationData)); in InternalTriggerSmi()
139 (IoRead8 (PcdGet16 (PcdSmmActivationPort)) == PcdGet8 (PcdSmmActivationData))) { in InternalGetSwSmiData()
140 Data = IoRead8 (PcdGet16 (PcdSmmDataPort)); in InternalGetSwSmiData()
/device/linaro/bootloader/edk2/QuarkSocPkg/QuarkNorthCluster/Library/IntelQNCLib/
DIntelQNCLib.c43 …QNCPortWrite (QUARK_NC_RMU_SB_PORT_ID, QNC_MSG_TMPM_REG_PMBA, (BIT31 | PcdGet16 (PcdPmbaIoBaseAddr… in PeiQNCPreMemInit()
47 LpcPciCfg32 (R_QNC_LPC_SMBUS_BASE) = BIT31 | PcdGet16 (PcdSmbaIoBaseAddress); in PeiQNCPreMemInit()
48 LpcPciCfg32 (R_QNC_LPC_GBA_BASE) = BIT31 | PcdGet16 (PcdGbaIoBaseAddress); in PeiQNCPreMemInit()
49 LpcPciCfg32 (R_QNC_LPC_PM1BLK) = BIT31 | PcdGet16 (PcdPm1blkIoBaseAddress); in PeiQNCPreMemInit()
50 LpcPciCfg32 (R_QNC_LPC_GPE0BLK) = BIT31 | PcdGet16 (PcdGpe0blkIoBaseAddress); in PeiQNCPreMemInit()
51 LpcPciCfg32 (R_QNC_LPC_WDTBA) = BIT31 | PcdGet16 (PcdWdtbaIoBaseAddress); in PeiQNCPreMemInit()
153 Pm1Sts = IoRead16 (PcdGet16 (PcdPm1blkIoBaseAddress) + R_QNC_PM1BLK_PM1S); in QNCCheckS3AndClearState()
154 Pm1En = IoRead16 (PcdGet16 (PcdPm1blkIoBaseAddress) + R_QNC_PM1BLK_PM1E); in QNCCheckS3AndClearState()
155 Pm1Cnt = IoRead16 (PcdGet16 (PcdPm1blkIoBaseAddress) + R_QNC_PM1BLK_PM1C); in QNCCheckS3AndClearState()
163 IoWrite16 (PcdGet16 (PcdPm1blkIoBaseAddress) + R_QNC_PM1BLK_PM1E, 0); in QNCCheckS3AndClearState()
[all …]
/device/linaro/bootloader/edk2/QuarkSocPkg/QuarkNorthCluster/Smm/Pei/SmmControlPei/
DSmmControlPei.c105 PM1BLK_Base = PcdGet16 (PcdPm1blkIoBaseAddress); in SmmClear()
106 GPE0BLK_Base = PcdGet16 (PcdGpe0blkIoBaseAddress); in SmmClear()
154 GPE0BLK_Base = PcdGet16 (PcdGpe0blkIoBaseAddress); in SmmTrigger()
172 IoWrite8 (PcdGet16 (PcdSmmActivationPort), Data); in SmmTrigger()
/device/linaro/bootloader/edk2/OvmfPkg/Library/ResetSystemLib/
DResetSystemLib.c30 IoBitFieldWrite16 (PcdGet16 (PcdAcpiPmBaseAddress) + 4, 10, 13, (UINT16) SuspendType); in AcpiPmControl()
31 IoOr16 (PcdGet16 (PcdAcpiPmBaseAddress) + 4, BIT13); in AcpiPmControl()
/device/linaro/bootloader/edk2/IntelFrameworkModulePkg/Universal/StatusCode/RuntimeDxe/
DRtMemoryStatusCodeWorker.c35 PcdGet16 (PcdStatusCodeMemorySize) * 1024 in RtMemoryStatusCodeInitializeWorker()
42 (PcdGet16 (PcdStatusCodeMemorySize) * 1024) / sizeof (MEMORY_STATUSCODE_RECORD); in RtMemoryStatusCodeInitializeWorker()
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/StatusCodeHandler/Smm/
DMemoryStatusCodeWorker.c33 …_HEADER *)AllocateZeroPool (sizeof (RUNTIME_MEMORY_STATUSCODE_HEADER) + PcdGet16 (PcdStatusCodeMem… in MemoryStatusCodeInitializeWorker()
36 …mSmmMemoryStatusCodeTable->MaxRecordsNumber = (PcdGet16 (PcdStatusCodeMemorySize) * 1024) / sizeof… in MemoryStatusCodeInitializeWorker()
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/StatusCodeHandler/RuntimeDxe/
DMemoryStatusCodeWorker.c35 PcdGet16 (PcdStatusCodeMemorySize) * 1024 in RtMemoryStatusCodeInitializeWorker()
42 (PcdGet16 (PcdStatusCodeMemorySize) * 1024) / sizeof (MEMORY_STATUSCODE_RECORD); in RtMemoryStatusCodeInitializeWorker()
/device/linaro/bootloader/edk2/IntelFrameworkModulePkg/Universal/StatusCode/Pei/
DMemoryStausCodeWorker.c38PcdGet16 (PcdStatusCodeMemorySize) * 1024 + sizeof (MEMORY_STATUSCODE_PACKET_HEADER) in MemoryStatusCodeInitializeWorker()
42 …PacketHeader->MaxRecordsNumber = (PcdGet16 (PcdStatusCodeMemorySize) * 1024) / sizeof (MEMORY_STAT… in MemoryStatusCodeInitializeWorker()
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/StatusCodeHandler/Pei/
DMemoryStausCodeWorker.c38PcdGet16 (PcdStatusCodeMemorySize) * 1024 + sizeof (MEMORY_STATUSCODE_PACKET_HEADER) in MemoryStatusCodeInitializeWorker()
42 …PacketHeader->MaxRecordsNumber = (PcdGet16 (PcdStatusCodeMemorySize) * 1024) / sizeof (MEMORY_STAT… in MemoryStatusCodeInitializeWorker()
/device/linaro/bootloader/edk2/IntelFrameworkModulePkg/Bus/Isa/IsaFloppyPei/
DFloppyPeim.c321 StatusRegister = IoRead8 ((UINT16) (PcdGet16 (PcdFdcBaseAddress) + FDC_REGISTER_MSR)); in FdcDRQReady()
370 Data = IoRead8 ((UINT16) (PcdGet16 (PcdFdcBaseAddress) + FDC_REGISTER_DTR)); in DataInByte()
406 IoWrite8 ((UINT16) (PcdGet16 (PcdFdcBaseAddress) + FDC_REGISTER_DTR), Data); in DataOutByte()
526 StatusRegister = IoRead8 ((UINT16) (PcdGet16 (PcdFdcBaseAddress) + FDC_REGISTER_MSR)); in FdcWaitForBSYClear()
580 IoWrite8 ((UINT16) (PcdGet16 (PcdFdcBaseAddress) + FDC_REGISTER_DOR), Data); in FdcReset()
592 IoWrite8 ((UINT16) (PcdGet16 (PcdFdcBaseAddress) + FDC_REGISTER_DOR), Data); in FdcReset()
605 IoWrite8 ((UINT16) (PcdGet16 (PcdFdcBaseAddress) + FDC_REGISTER_CCR), 0x0); in FdcReset()
686 IoWrite8 ((UINT16) (PcdGet16 (PcdFdcBaseAddress) + FDC_REGISTER_DOR), Data); in MotorOn()
721 IoWrite8 ((UINT16) (PcdGet16 (PcdFdcBaseAddress) + FDC_REGISTER_DOR), Data); in MotorOff()
947 Data = IoRead8 ((UINT16) (PcdGet16 (PcdFdcBaseAddress) + FDC_REGISTER_DIR)); in DisketChanged()
[all …]
/device/linaro/bootloader/edk2/Vlv2TbltDevicePkg/Library/IntelPchAcpiTimerLib/
DIntelPchAcpiTimerLib.c55 ((PcdGet16 (PcdPchAcpiIoPortBaseAddress) & B_PCH_LPC_ACPI_BASE_BAR) | B_PCH_LPC_ACPI_BASE_EN) in IntelPchAcpiTimerLibConstructor()
75 return IoRead32 (PcdGet16 (PcdPchAcpiIoPortBaseAddress) + R_PCH_ACPI_PM1_TMR); in InternalAcpiGetTimerTick()
/device/linaro/bootloader/edk2/OvmfPkg/Library/PlatformDebugLibIoPort/
DDebugLib.c97 IoWrite8 (PcdGet16(PcdDebugIoPort), *Ptr); in DebugPrint()
144 IoWrite8 (PcdGet16(PcdDebugIoPort), *Ptr); in DebugAssert()
/device/linaro/bootloader/edk2/SourceLevelDebugPkg/Library/DebugAgent/SecPeiDebugAgent/
DSecPeiDebugAgentLib.c283 … EFI_SIZE_TO_PAGES (sizeof(DEBUG_AGENT_MAILBOX) + PcdGet16(PcdDebugPortHandleBufferSize)), in DebugAgentCallbackMemoryDiscoveredPpi()
295 …CopyMem (NewMailbox + 1, (VOID *)(UINTN)Mailbox->DebugPortHandle, PcdGet16(PcdDebugPortHandleBuffe… in DebugAgentCallbackMemoryDiscoveredPpi()
469 … EFI_SIZE_TO_PAGES (sizeof(DEBUG_AGENT_MAILBOX) + PcdGet16(PcdDebugPortHandleBufferSize)), in InitializeDebugAgent()
483 …CopyMem (NewMailbox + 1, (VOID *)(UINTN)Mailbox->DebugPortHandle, PcdGet16(PcdDebugPortHandleBuffe… in InitializeDebugAgent()
674 BufferSize = PcdGet16(PcdDebugPortHandleBufferSize); in InitializeDebugAgentPhase2()
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/BdsDxe/
DHwErrRecSupport.c32 HardwareErrorRecordLevel = PcdGet16 (PcdHardwareErrorRecordLevel); in InitializeHwErrRecSupport()
/device/linaro/bootloader/edk2/IntelFrameworkModulePkg/Universal/BdsDxe/
DHwErrRecSupport.c32 HardwareErrorRecordLevel = PcdGet16 (PcdHardwareErrorRecordLevel); in InitializeHwErrRecSupport()
/device/linaro/bootloader/edk2/OvmfPkg/Library/AcpiTimerLib/
DDxeAcpiTimerLib.c51 HostBridgeDevId = PcdGet16 (PcdOvmfHostBridgePciDevId); in AcpiTimerLibConstructor()
/device/linaro/bootloader/edk2/QuarkPlatformPkg/Platform/Dxe/PlatformInit/
DPlatformInitDxe.c88 Status = PlatformLedInit ((EFI_PLATFORM_TYPE)PcdGet16 (PcdPlatformType)); in PlatformInit()

123