Lines Matching refs:PciIo
39 EFI_PCI_IO_PROTOCOL *PciIo, in I2cOutb() argument
44 PciIo->Io.Write ( in I2cOutb()
45 PciIo, in I2cOutb()
64 EFI_PCI_IO_PROTOCOL *PciIo, in I2cInb() argument
70 PciIo->Io.Read ( in I2cInb()
71 PciIo, in I2cInb()
93 EFI_PCI_IO_PROTOCOL *PciIo, in I2cPinRead() argument
97 I2cOutb (PciIo, SEQ_ADDRESS_REGISTER, I2C_CONTROL); in I2cPinRead()
98 return (UINT8) ((I2cInb (PciIo, SEQ_DATA_REGISTER) >> Bit ) & 0xfe); in I2cPinRead()
112 EFI_PCI_IO_PROTOCOL *PciIo, in I2cPinWrite() argument
118 I2cOutb (PciIo, SEQ_ADDRESS_REGISTER, I2C_CONTROL); in I2cPinWrite()
119 Byte = (UINT8) (I2cInb (PciIo, SEQ_DATA_REGISTER) & (UINT8) ~(1 << Bit)) ; in I2cPinWrite()
121 I2cOutb (PciIo, SEQ_DATA_REGISTER, (UINT8) (Byte | 0x40)); in I2cPinWrite()
146 EFI_PCI_IO_PROTOCOL *PciIo, in I2cSendByte() argument
155 I2cPinWrite (PciIo, I2CDAT_OUT, (UINT8) (Data >> (7 - Index))); in I2cSendByte()
156 I2cPinWrite (PciIo, I2CCLK_OUT, 1); in I2cSendByte()
158 I2cPinWrite (PciIo, I2CCLK_OUT, 0); in I2cSendByte()
171 EFI_PCI_IO_PROTOCOL *PciIo in I2cReceiveByte() argument
182 I2cPinWrite (PciIo, I2CCLK_OUT, 1); in I2cReceiveByte()
185 Data = (UINT8) (Data | I2cPinRead (PciIo, I2CDAT_IN)); in I2cReceiveByte()
186 I2cPinWrite (PciIo, I2CCLK_OUT, 0); in I2cReceiveByte()
200 EFI_PCI_IO_PROTOCOL *PciIo in I2cWaitAck() argument
206 I2cPinWrite (PciIo, I2CDAT_OUT, 1); in I2cWaitAck()
207 I2cPinWrite (PciIo, I2CCLK_OUT, 1); in I2cWaitAck()
209 if (I2cPinRead (PciIo, I2CDAT_IN) == 0) { in I2cWaitAck()
210 I2cPinWrite (PciIo, I2CDAT_OUT, 1); in I2cWaitAck()
225 EFI_PCI_IO_PROTOCOL *PciIo in I2cSendAck() argument
228 I2cPinWrite (PciIo, I2CCLK_OUT, 1); in I2cSendAck()
229 I2cPinWrite (PciIo, I2CDAT_OUT, 1); in I2cSendAck()
230 I2cPinWrite (PciIo, I2CDAT_OUT, 0); in I2cSendAck()
231 I2cPinWrite (PciIo, I2CCLK_OUT, 0); in I2cSendAck()
242 EFI_PCI_IO_PROTOCOL *PciIo in I2cStart() argument
248 I2cPinWrite (PciIo, I2CCLK_OUT, 1); in I2cStart()
249 I2cPinWrite (PciIo, I2CDAT_OUT, 1); in I2cStart()
253 I2cPinWrite (PciIo, I2CDAT_OUT, 0); in I2cStart()
254 I2cPinWrite (PciIo, I2CCLK_OUT, 0); in I2cStart()
265 EFI_PCI_IO_PROTOCOL *PciIo in I2cStop() argument
271 I2cPinWrite (PciIo, I2CDAT_OUT, 0); in I2cStop()
272 I2cPinWrite (PciIo, I2CCLK_OUT, 1); in I2cStop()
273 I2cPinWrite (PciIo, I2CDAT_OUT, 1); in I2cStop()
294 EFI_PCI_IO_PROTOCOL *PciIo, in I2cReadByte() argument
305 I2cStart (PciIo); in I2cReadByte()
310 I2cSendByte (PciIo, (UINT8) (DeviceAddress & 0xfe)); in I2cReadByte()
315 if (I2cWaitAck (PciIo) == FALSE) { in I2cReadByte()
322 I2cSendByte (PciIo, RegisterAddress); in I2cReadByte()
327 if (I2cWaitAck (PciIo) == FALSE) { in I2cReadByte()
334 I2cSendByte (PciIo, (UINT8) (DeviceAddress | 0x01)); in I2cReadByte()
339 if (I2cWaitAck (PciIo) == FALSE) { in I2cReadByte()
346 *Data = I2cReceiveByte (PciIo); in I2cReadByte()
351 I2cSendAck (PciIo); in I2cReadByte()
356 I2cStop (PciIo); in I2cReadByte()
379 EFI_PCI_IO_PROTOCOL *PciIo, in I2cWriteByte() argument
387 I2cStart (PciIo); in I2cWriteByte()
391 I2cSendByte (PciIo, (UINT8) (DeviceAddress & 0xfe)); in I2cWriteByte()
396 if (I2cWaitAck (PciIo) == FALSE) { in I2cWriteByte()
403 I2cSendByte (PciIo, RegisterAddress); in I2cWriteByte()
408 if (I2cWaitAck (PciIo) == FALSE) { in I2cWriteByte()
415 I2cSendByte (PciIo, *Data); in I2cWriteByte()
420 if (I2cWaitAck (PciIo) == FALSE) { in I2cWriteByte()
427 I2cStop (PciIo); in I2cWriteByte()