• Home
  • Raw
  • Download

Lines Matching refs:IoPortBaseAddress

44   UINTN     IoPortBaseAddress;  in InternalGetSmbusIoPortBaseAddress()
46IoPortBaseAddress = (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()
133 HostStatus = IoRead8 (IoPortBaseAddress + R_PCH_SMBUS_HSTS); in InternalSmBusStart()
143 IoWrite8 (IoPortBaseAddress + R_PCH_SMBUS_HSTS, B_PCH_SMBUS_ERRORS); in InternalSmBusStart()
148 AuxiliaryStatus = IoRead8 (IoPortBaseAddress + R_PCH_SMBUS_AUXS); in InternalSmBusStart()
181 UINTN IoPortBaseAddress; in InternalSmBusNonBlock()
184 IoPortBaseAddress = InternalGetSmbusIoPortBaseAddress (); in InternalSmBusNonBlock()
189 ReturnStatus = InternalSmBusAcquire (IoPortBaseAddress); in InternalSmBusNonBlock()
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()
227 ReturnStatus = InternalSmBusStart (IoPortBaseAddress, HostControl); in InternalSmBusNonBlock()
232 Value = (UINT16)(IoRead8 (IoPortBaseAddress + R_PCH_SMBUS_HD1) << 8); in InternalSmBusNonBlock()
233 Value = (UINT16)(Value | IoRead8 (IoPortBaseAddress + R_PCH_SMBUS_HD0)); in InternalSmBusNonBlock()
238 IoWrite8 (IoPortBaseAddress + R_PCH_SMBUS_HSTS, B_PCH_SMBUS_HSTS_ALL); in InternalSmBusNonBlock()
239 IoWrite8 (IoPortBaseAddress + R_PCH_SMBUS_AUXS, B_PCH_SMBUS_CRCE); in InternalSmBusNonBlock()
645 UINTN IoPortBaseAddress; in InternalSmBusBlock()
648 IoPortBaseAddress = InternalGetSmbusIoPortBaseAddress (); in InternalSmBusBlock()
655 ReturnStatus = InternalSmBusAcquire (IoPortBaseAddress); in InternalSmBusBlock()
672 IoWrite8 (IoPortBaseAddress + R_PCH_SMBUS_HCMD, (UINT8) SMBUS_LIB_COMMAND (SmBusAddress)); in InternalSmBusBlock()
677 IoWrite8 (IoPortBaseAddress + R_PCH_SMBUS_AUXC, AuxiliaryControl); in InternalSmBusBlock()
682 IoRead8 (IoPortBaseAddress + R_PCH_SMBUS_HCTL); in InternalSmBusBlock()
688 IoWrite8 (IoPortBaseAddress + R_PCH_SMBUS_HD0, (UINT8) BytesCount); in InternalSmBusBlock()
694 IoWrite8 (IoPortBaseAddress + R_PCH_SMBUS_HBD, WriteBuffer[Index]); in InternalSmBusBlock()
701 IoWrite8 (IoPortBaseAddress + R_PCH_SMBUS_TSA, (UINT8) SmBusAddress); in InternalSmBusBlock()
706 ReturnStatus = InternalSmBusStart (IoPortBaseAddress, HostControl); in InternalSmBusBlock()
715 BytesCount = IoRead8 (IoPortBaseAddress + R_PCH_SMBUS_HD0); in InternalSmBusBlock()
721 ReadBuffer[Index] = IoRead8 (IoPortBaseAddress + R_PCH_SMBUS_HBD); in InternalSmBusBlock()
729 IoWrite8 (IoPortBaseAddress + R_PCH_SMBUS_HSTS, B_PCH_SMBUS_HSTS_ALL); in InternalSmBusBlock()
730 IoWrite8 (IoPortBaseAddress + R_PCH_SMBUS_AUXS, B_PCH_SMBUS_CRCE); in InternalSmBusBlock()