Home
last modified time | relevance | path

Searched refs:IoWrite8 (Results 1 – 25 of 96) sorted by relevance

1234

/device/linaro/bootloader/edk2/QuarkSocPkg/QuarkNorthCluster/Library/ResetSystemLib/
DResetSystemLib.c80 IoWrite8 (PCAT_RTC_ADDRESS_REGISTER, RTC_ADDRESS_REGISTER_A); in WaitForRTCUpdate()
84 IoWrite8 (PCAT_RTC_ADDRESS_REGISTER, RTC_ADDRESS_REGISTER_A); in WaitForRTCUpdate()
90 IoWrite8 (PCAT_RTC_ADDRESS_REGISTER, RTC_ADDRESS_REGISTER_A); in WaitForRTCUpdate()
95 IoWrite8 (PCAT_RTC_ADDRESS_REGISTER, RTC_ADDRESS_REGISTER_A); in WaitForRTCUpdate()
120 IoWrite8 (RST_CNT, B_RST_CNT_COLD_RST); in ResetCold()
140 IoWrite8 (RST_CNT, B_RST_CNT_WARM_RST); in ResetWarm()
233 IoWrite8 (PCAT_RTC_ADDRESS_REGISTER, RTC_ADDRESS_REGISTER_B); in EnterS3WithImmediateWake()
235 IoWrite8 (PCAT_RTC_DATA_REGISTER, (Data8 & ~BIT5)); in EnterS3WithImmediateWake()
240 IoWrite8 (PCAT_RTC_ADDRESS_REGISTER, RTC_ADDRESS_REGISTER_C); in EnterS3WithImmediateWake()
258 IoWrite8 (PCAT_RTC_ADDRESS_REGISTER, RTC_ADDRESS_SECONDS); in EnterS3WithImmediateWake()
[all …]
/device/linaro/bootloader/edk2/Vlv2TbltDevicePkg/PlatformPei/
DPlatform.c344 IoWrite8(SmbusBase+R_PCH_SMBUS_HSTS, 0xFE); in AcquireBus()
350 IoWrite8(SmbusBase+R_PCH_SMBUS_HSTS, StsReg); in AcquireBus()
455 IoWrite8 (R_PCH_RTC_INDEX2, R_PCH_RTC_REGISTERA);
489 IoWrite8 (R_PCH_RTC_INDEX2, R_PCH_RTC_YEAR);
490 IoWrite8 (R_PCH_RTC_TARGET2, 0x0FF);
491 IoWrite8 (R_PCH_RTC_INDEX2, R_PCH_RTC_MONTH);
492 IoWrite8 (R_PCH_RTC_TARGET2, 0x0FF);
493 IoWrite8 (R_PCH_RTC_INDEX2, R_PCH_RTC_DAYOFMONTH);
494 IoWrite8 (R_PCH_RTC_TARGET2, 0x0FF);
495 IoWrite8 (R_PCH_RTC_INDEX2, R_PCH_RTC_DAYOFWEEK);
[all …]
/device/linaro/bootloader/edk2/PcAtChipsetPkg/8259InterruptControllerDxe/
D8259.c64 IoWrite8 (LEGACY_8259_MASK_REGISTER_MASTER, (UINT8) Mask); in Interrupt8259WriteMask()
65 IoWrite8 (LEGACY_8259_MASK_REGISTER_SLAVE, (UINT8) (Mask >> 8)); in Interrupt8259WriteMask()
66 IoWrite8 (LEGACY_8259_EDGE_LEVEL_TRIGGERED_REGISTER_MASTER, (UINT8) EdgeLevel); in Interrupt8259WriteMask()
67 IoWrite8 (LEGACY_8259_EDGE_LEVEL_TRIGGERED_REGISTER_SLAVE, (UINT8) (EdgeLevel >> 8)); in Interrupt8259WriteMask()
149 IoWrite8 (LEGACY_8259_CONTROL_REGISTER_SLAVE, 0x11); in Interrupt8259SetVectorBase()
154 IoWrite8 (LEGACY_8259_MASK_REGISTER_SLAVE, mSlaveBase); in Interrupt8259SetVectorBase()
159 IoWrite8 (LEGACY_8259_MASK_REGISTER_SLAVE, 0x02); in Interrupt8259SetVectorBase()
164 IoWrite8 (LEGACY_8259_MASK_REGISTER_SLAVE, 0x01); in Interrupt8259SetVectorBase()
169 IoWrite8 (LEGACY_8259_MASK_REGISTER_SLAVE, Mask); in Interrupt8259SetVectorBase()
191 IoWrite8 (LEGACY_8259_CONTROL_REGISTER_MASTER, 0x11); in Interrupt8259SetVectorBase()
[all …]
/device/linaro/bootloader/edk2/Vlv2TbltDevicePkg/Library/SmbusLib/
DSmbusLib.c84 IoWrite8 (IoPortBaseAddress + R_PCH_SMBUS_HSTS, B_PCH_SMBUS_HSTS_ALL); in InternalSmBusAcquire()
90 IoWrite8 (IoPortBaseAddress + R_PCH_SMBUS_HSTS, HostStatus); in InternalSmBusAcquire()
127 IoWrite8 (IoPortBaseAddress + R_PCH_SMBUS_HCTL, (UINT8)(HostControl + B_PCH_SMBUS_START)); in InternalSmBusStart()
143 IoWrite8 (IoPortBaseAddress + R_PCH_SMBUS_HSTS, B_PCH_SMBUS_ERRORS); in InternalSmBusStart()
206 IoWrite8 (IoPortBaseAddress + R_PCH_SMBUS_HCMD, (UINT8) SMBUS_LIB_COMMAND (SmBusAddress)); in InternalSmBusNonBlock()
211 IoWrite8 (IoPortBaseAddress + R_PCH_SMBUS_HD0, (UINT8) Value); in InternalSmBusNonBlock()
212 IoWrite8 (IoPortBaseAddress + R_PCH_SMBUS_HD1, (UINT8) (Value >> 8)); in InternalSmBusNonBlock()
217 IoWrite8 (IoPortBaseAddress + R_PCH_SMBUS_AUXC, AuxiliaryControl); in InternalSmBusNonBlock()
222 IoWrite8 (IoPortBaseAddress + R_PCH_SMBUS_TSA, (UINT8) SmBusAddress); in InternalSmBusNonBlock()
238 IoWrite8 (IoPortBaseAddress + R_PCH_SMBUS_HSTS, B_PCH_SMBUS_HSTS_ALL); in InternalSmBusNonBlock()
[all …]
/device/linaro/bootloader/edk2/QuarkSocPkg/QuarkNorthCluster/Library/SmbusLib/
DSmbusLib.c77 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()
116 IoWrite8 (IoPortBaseAddress + R_QNC_SMBUS_HCTL, HostControl + B_QNC_SMBUS_START); in InternalSmBusStart()
131 IoWrite8 (IoPortBaseAddress + R_QNC_SMBUS_HSTS, (B_QNC_SMBUS_DERR | B_QNC_SMBUS_BERR)); in InternalSmBusStart()
176 IoWrite8 (IoPortBaseAddress + R_QNC_SMBUS_HCMD, (UINT8) SMBUS_LIB_COMMAND (SmBusAddress)); in InternalSmBusNonBlock()
180 IoWrite8 (IoPortBaseAddress + R_QNC_SMBUS_HD0, (UINT8) Value); in InternalSmBusNonBlock()
181 IoWrite8 (IoPortBaseAddress + R_QNC_SMBUS_HD1, (UINT8) (Value >> 8)); in InternalSmBusNonBlock()
187 IoWrite8 (IoPortBaseAddress + R_QNC_SMBUS_TSA, (UINT8) SmBusAddress); in InternalSmBusNonBlock()
[all …]
/device/linaro/bootloader/edk2/Vlv2TbltDevicePkg/Library/ResetSystemLib/
DResetSystemLib.c58 IoWrite8 (0x72, CMOS_RESET_TYPE_BY_OS); in PlatformResetHook()
59 IoWrite8 (0x73, ResetType); in PlatformResetHook()
78 IoWrite8 (RESET_GENERATOR_PORT, 0x2); in ResetCold()
79 IoWrite8 (RESET_GENERATOR_PORT, 0x6); in ResetCold()
96 IoWrite8 (RESET_GENERATOR_PORT, 0x0); in ResetWarm()
97 IoWrite8 (RESET_GENERATOR_PORT, 0x4); in ResetWarm()
/device/linaro/bootloader/edk2/Vlv2TbltDevicePkg/PlatformDxe/
DLegacySpeaker.c49 IoWrite8(EFI_SPEAKER_CONTROL_PORT, Data); in TurnOnSpeaker()
68 IoWrite8(EFI_SPEAKER_CONTROL_PORT, Data); in TurnOffSpeaker()
124 IoWrite8(EFI_TIMER_CONTROL_PORT, Data); in ProgramToneFrequency()
127 IoWrite8(EFI_TIMER_2_PORT, Data); in ProgramToneFrequency()
129 IoWrite8(EFI_TIMER_2_PORT, Data); in ProgramToneFrequency()
/device/linaro/bootloader/edk2/PcAtChipsetPkg/Library/SerialIoLib/
DSerialPortLib.c94 IoWrite8 ((UINTN) (gUartBase + LCR_OFFSET), OutputData); in SerialPortInitialize()
99 IoWrite8 ((UINTN) (gUartBase + BAUD_HIGH_OFFSET), (UINT8) (Divisor >> 8)); in SerialPortInitialize()
100 IoWrite8 ((UINTN) (gUartBase + BAUD_LOW_OFFSET), (UINT8) (Divisor & 0xff)); in SerialPortInitialize()
106 IoWrite8 ((UINTN) (gUartBase + LCR_OFFSET), OutputData); in SerialPortInitialize()
153 IoWrite8 ((UINT16) gUartBase, *Buffer++); in SerialPortWrite()
270 IoWrite8 ((UINT16) gUartBase + MCR_OFFSET, Mcr); in SerialPortSetControl()
473 IoWrite8 ((UINTN) (gUartBase + LCR_OFFSET), OutputData); in SerialPortSetAttributes()
478 IoWrite8 ((UINTN) (gUartBase + BAUD_HIGH_OFFSET), (UINT8) (Divisor >> 8)); in SerialPortSetAttributes()
479 IoWrite8 ((UINTN) (gUartBase + BAUD_LOW_OFFSET), (UINT8) (Divisor & 0xff)); in SerialPortSetAttributes()
485 IoWrite8 ((UINTN) (gUartBase + LCR_OFFSET), OutputData); in SerialPortSetAttributes()
/device/linaro/bootloader/edk2/EmbeddedPkg/Library/GdbSerialLib/
DGdbSerialLib.c139 IoWrite8 (gPort + LCR_OFFSET, OutputData); in GdbSerialInit()
144 IoWrite8 (gPort + BAUD_HIGH_OFFSET, (UINT8)(Divisor >> 8)); in GdbSerialInit()
145 IoWrite8 (gPort + BAUD_LOW_OFFSET, (UINT8)(Divisor & 0xff)); in GdbSerialInit()
152 IoWrite8 (gPort + LCR_OFFSET, OutputData); in GdbSerialInit()
156 IoWrite8 (gPort + FCR_SHADOW_OFFSET, ENABLE_FIFO); in GdbSerialInit()
238 IoWrite8 (gPort, Char); in GdbPutChar()
/device/linaro/bootloader/edk2/OvmfPkg/PlatformPei/
DCmos.c36 IoWrite8 (0x70, (UINT8) Index); in CmosRead8()
60 IoWrite8 (0x70, (UINT8) Index); in CmosWrite8()
61 IoWrite8 (0x71, Value); in CmosWrite8()
/device/linaro/bootloader/edk2/Vlv2TbltDevicePkg/Library/SerialPortLib/
DSioInit.c119 IoWrite8 (IndexPort, WPCN381U_DEV_ID_REGISTER); // Winbond WPCN381U Device ID register is 0x20 in InitializeSio()
126 IoWrite8 (IndexPort, mSioTableWpcn381u[Index].Register); in InitializeSio()
127 IoWrite8 (DataPort, mSioTableWpcn381u[Index].Value); in InitializeSio()
136 IoWrite8 (IndexPort, mSioTableWdcp376[Index].Register); in InitializeSio()
137 IoWrite8 (DataPort, mSioTableWdcp376[Index].Value); in InitializeSio()
DSerialPortLib.c80 IoWrite8 (gComBase + LCR_OFFSET, OutputData); in UARTInitialize()
85 IoWrite8 (gComBase + BAUD_HIGH_OFFSET, (UINT8) (Divisor >> 8)); in UARTInitialize()
86 IoWrite8 (gComBase + BAUD_LOW_OFFSET, (UINT8) (Divisor & 0xff)); in UARTInitialize()
92 IoWrite8 (gComBase + LCR_OFFSET, OutputData); in UARTInitialize()
154 IoWrite8 ((UINT16) PcdGet64 (PcdSerialRegisterBase), *Buffer++); in UARTDbgOut()
/device/linaro/bootloader/edk2/Vlv2TbltDevicePkg/PlatformInitPei/
DLegacySpeaker.c61 IoWrite8(EFI_SPEAKER_CONTROL_PORT, Data); in TurnOnSpeaker()
82 IoWrite8(EFI_SPEAKER_CONTROL_PORT, Data); in TurnOffSpeaker()
129 IoWrite8(EFI_TIMER_CONTROL_PORT, Data); in ProgramToneFrequency()
132 IoWrite8(EFI_TIMER_2_PORT, Data); in ProgramToneFrequency()
134 IoWrite8(EFI_TIMER_2_PORT, Data); in ProgramToneFrequency()
DPchInitPeim.c83 IoWrite8(R_PCH_RTC_EXT_INDEX, Address); in WriteCmosBank1Byte()
94 IoWrite8(R_PCH_RTC_EXT_INDEX, Address);
95 IoWrite8(R_PCH_RTC_EXT_TARGET, Data);
340 IoWrite8 ( in IchReset()
345 IoWrite8 ( in IchReset()
391 IoWrite8(R_PCH_RTC_INDEX, R_PCH_RTC_REGISTERB);
394 IoWrite8(R_PCH_RTC_TARGET, Data8);
396 IoWrite8(R_PCH_RTC_INDEX, R_PCH_RTC_REGISTERB);
398 IoWrite8(R_PCH_RTC_TARGET, Data8);
403 IoWrite8(R_PCH_RTC_INDEX, R_PCH_RTC_REGISTERA);
[all …]
/device/linaro/bootloader/edk2/Vlv2TbltDevicePkg/PlatformSmm/
DPlatform.c717 IoWrite8 (PCAT_RTC_ADDRESS_REGISTER, RTC_ADDRESS_REGISTER_D); in EnableAcpiCallback()
718 IoWrite8 (PCAT_RTC_DATA_REGISTER, 0x0); in EnableAcpiCallback()
897 IoWrite8(PCAT_RTC_ADDRESS_REGISTER, RTC_ADDRESS_REGISTER_B); in EnableS5WakeOnRtc()
905 IoWrite8(PCAT_RTC_ADDRESS_REGISTER, RTC_ADDRESS_REGISTER_D); in EnableS5WakeOnRtc()
910 IoWrite8(PCAT_RTC_DATA_REGISTER, CmosData); in EnableS5WakeOnRtc()
921 IoWrite8(PCAT_RTC_ADDRESS_REGISTER, RTC_ADDRESS_SECOND_ALARM); in EnableS5WakeOnRtc()
923 IoWrite8(PCAT_RTC_DATA_REGISTER, mWakeupSecond); in EnableS5WakeOnRtc()
933 IoWrite8(PCAT_RTC_ADDRESS_REGISTER, RTC_ADDRESS_MINUTE_ALARM); in EnableS5WakeOnRtc()
935 IoWrite8(PCAT_RTC_DATA_REGISTER, mWakeupMinute); in EnableS5WakeOnRtc()
945 IoWrite8(PCAT_RTC_ADDRESS_REGISTER, RTC_ADDRESS_HOUR_ALARM); in EnableS5WakeOnRtc()
[all …]
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Sample/Platform/Generic/RuntimeDxe/StatusCode/Lib/RtLedStatusCode/
DRtLedStatusCode.c183 IoWrite8 (ConfigPort, OutputData); in RtLedInitializeStatusCode()
186 IoWrite8 (DataPort, OutputData); in RtLedInitializeStatusCode()
255 IoWrite8 (DataOffset, PinData); in SendDataToPort()
288 IoWrite8 (StrobeOffset, StrobeData); in StrobeData()
295 IoWrite8 (StrobeOffset, StrobeData); in StrobeData()
/device/linaro/bootloader/edk2/OvmfPkg/Library/ResetSystemLib/
DResetSystemLib.c69 IoWrite8 (0xCF9, BIT2 | BIT1); // 1st choice: PIIX3 RCR, RCPU|SRST in ResetCold()
72 IoWrite8 (0x64, 0xfe); // 2nd choice: keyboard controller in ResetCold()
89 IoWrite8 (0x64, 0xfe); in ResetWarm()
/device/linaro/bootloader/edk2/SecurityPkg/Tcg/Opal/OpalPasswordSmm/
DOpalIdeMode.c542 IoWrite8 (IdeRegisters->Head, (UINT8) (0xe0 | DeviceHead)); in AtaIssueCommand()
556 IoWrite8 (IdeRegisters->ErrOrFeature, AtaCommandBlock->AtaFeaturesExp); in AtaIssueCommand()
557 IoWrite8 (IdeRegisters->ErrOrFeature, AtaCommandBlock->AtaFeatures); in AtaIssueCommand()
562 IoWrite8 (IdeRegisters->SectorCount, AtaCommandBlock->AtaSectorCountExp); in AtaIssueCommand()
563 IoWrite8 (IdeRegisters->SectorCount, AtaCommandBlock->AtaSectorCount); in AtaIssueCommand()
568 IoWrite8 (IdeRegisters->SectorNumber, AtaCommandBlock->AtaSectorNumberExp); in AtaIssueCommand()
569 IoWrite8 (IdeRegisters->SectorNumber, AtaCommandBlock->AtaSectorNumber); in AtaIssueCommand()
571 IoWrite8 (IdeRegisters->CylinderLsb, AtaCommandBlock->AtaCylinderLowExp); in AtaIssueCommand()
572 IoWrite8 (IdeRegisters->CylinderLsb, AtaCommandBlock->AtaCylinderLow); in AtaIssueCommand()
574 IoWrite8 (IdeRegisters->CylinderMsb, AtaCommandBlock->AtaCylinderHighExp); in AtaIssueCommand()
[all …]
/device/linaro/bootloader/edk2/IntelFrameworkModulePkg/Csm/LegacyBiosDxe/
DLegacyCmos.c34 IoWrite8 (PORT_70, Index); in LegacyReadStandardCmos()
53 IoWrite8 (PORT_70, Index); in LegacyWriteStandardCmos()
54 return IoWrite8 (PORT_71, Value); in LegacyWriteStandardCmos()
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BasePostCodeLibPort80/
DPostCode.c48 IoWrite8 (0x80, (UINT8)(Value)); in GluePostCode()
84 IoWrite8 (0x80, (UINT8)(Value)); in GluePostCodeWithDescription()
/device/linaro/bootloader/edk2/PcAtChipsetPkg/Library/ResetSystemLib/
DResetSystemLib.c35 IoWrite8 ((UINTN) PcdGet64 (PcdResetControlRegister), PcdGet8 (PcdResetControlValueColdReset)); in ResetCold()
51 IoWrite8 ((UINTN) PcdGet64 (PcdResetControlRegister), PcdGet8 (PcdResetControlValueColdReset)); in ResetWarm()
/device/linaro/bootloader/edk2/IntelFrameworkModulePkg/Bus/Isa/IsaFloppyPei/
DFloppyPeim.c406 IoWrite8 ((UINT16) (PcdGet16 (PcdFdcBaseAddress) + FDC_REGISTER_DTR), Data); in DataOutByte()
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()
1231 IoWrite8 ((UINT16) (PcdGet16 (PcdFdcBaseAddress) + FDC_REGISTER_CCR), 0x0); in Setup()
1262 IoWrite8 (R_8237_DMA_WRSMSK_CH0_3, B_8237_DMA_WRSMSK_CMS | 2); in SetDMA()
1267 IoWrite8 (R_8237_DMA_CBPR_CH0_3, B_8237_DMA_WRSMSK_CMS | 2); in SetDMA()
1272 IoWrite8 (R_8237_DMA_CHMODE_CH0_3, V_8237_DMA_CHMODE_SINGLE | V_8237_DMA_CHMODE_IO2MEM | 2); in SetDMA()
[all …]
/device/linaro/bootloader/edk2/DuetPkg/LegacyMetronome/
DMetronome.c110 IoWrite8 (TIMER1_CONTROL_PORT, LOAD_COUNTER1_LSB); in InstallMetronome()
111 IoWrite8 (TIMER1_COUNT_PORT, COUNTER1_COUNT); in InstallMetronome()
/device/linaro/bootloader/edk2/QuarkSocPkg/QuarkNorthCluster/Smm/Dxe/SmmControlDxe/
DSmmControlDriver.c211 IoWrite8 (PcdGet16 (PcdSmmDataPort), 0xFF); in Activate()
213 IoWrite8 (PcdGet16 (PcdSmmDataPort), *DataPort); in Activate()
220 IoWrite8 (PcdGet16 (PcdSmmActivationPort), 0xFF); in Activate()
222 IoWrite8 (PcdGet16 (PcdSmmActivationPort), *CommandPort); in Activate()
/device/linaro/bootloader/edk2/MdeModulePkg/Bus/Pci/IdeBusPei/
DAtapiPeim.c714 IoWrite8 (HeadRegister, (UINT8) ((Device << 4) | 0xe0)); in CheckPowerMode()
720 IoWrite8 (SectorCountRegister, SectorCountValue); in CheckPowerMode()
725 IoWrite8 (HeadRegister, (UINT8) ((Device << 4) | 0xe0)); in CheckPowerMode()
732 IoWrite8 (HeadRegister, (UINT8) ((Device << 4) | 0xe0)); in CheckPowerMode()
736 IoWrite8 (CommandRegister, AtaCommand); in CheckPowerMode()
776 IoWrite8 (HeadRegister, (UINT8) ((Device << 4) | 0xe0)); in CheckPowerMode()
784 IoWrite8 (SectorCountRegister, SectorCountValue); in CheckPowerMode()
1285 IoWrite8 (HeadReg, (UINT8) ((Device << 4) | 0xe0)); in ATAPIIdentify()
1300 IoWrite8 (SectorCountReg, 0); in ATAPIIdentify()
1301 IoWrite8 (SectorNumberReg, 0); in ATAPIIdentify()
[all …]

1234