/device/linaro/bootloader/edk2/QuarkSocPkg/QuarkNorthCluster/Library/ResetSystemLib/ |
D | ResetSystemLib.c | 80 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/ |
D | Platform.c | 344 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/ |
D | 8259.c | 64 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/ |
D | SmbusLib.c | 84 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/ |
D | SmbusLib.c | 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() 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/ |
D | ResetSystemLib.c | 58 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/ |
D | LegacySpeaker.c | 49 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/ |
D | SerialPortLib.c | 94 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/ |
D | GdbSerialLib.c | 139 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/ |
D | Cmos.c | 36 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/ |
D | SioInit.c | 119 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()
|
D | SerialPortLib.c | 80 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/ |
D | LegacySpeaker.c | 61 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()
|
D | PchInitPeim.c | 83 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/ |
D | Platform.c | 717 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/ |
D | RtLedStatusCode.c | 183 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/ |
D | ResetSystemLib.c | 69 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/ |
D | OpalIdeMode.c | 542 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/ |
D | LegacyCmos.c | 34 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/ |
D | PostCode.c | 48 IoWrite8 (0x80, (UINT8)(Value)); in GluePostCode() 84 IoWrite8 (0x80, (UINT8)(Value)); in GluePostCodeWithDescription()
|
/device/linaro/bootloader/edk2/PcAtChipsetPkg/Library/ResetSystemLib/ |
D | ResetSystemLib.c | 35 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/ |
D | FloppyPeim.c | 406 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/ |
D | Metronome.c | 110 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/ |
D | SmmControlDriver.c | 211 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/ |
D | AtapiPeim.c | 714 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 …]
|