Lines Matching refs:PciIo
60 @param PciIo The pointer to PCI_IO_PROTOCOL.
67 EFI_PCI_IO_PROTOCOL *PciIo,
72 PciIo->Io.Write (
73 PciIo,
84 @param PciIo The pointer to PCI_IO_PROTOCOL.
92 EFI_PCI_IO_PROTOCOL *PciIo,
98 PciIo->Io.Read (
99 PciIo,
112 @param PciIo The pointer to PCI_IO_PROTOCOL.
121 EFI_PCI_IO_PROTOCOL *PciIo,
125 I2cOutb (PciIo, SEQ_ADDRESS_REGISTER, I2C_CONTROL);
126 return (UINT8) ((I2cInb (PciIo, SEQ_DATA_REGISTER) >> Bit ) & 0xfe);
133 @param PciIo The pointer to PCI_IO_PROTOCOL.
140 EFI_PCI_IO_PROTOCOL *PciIo,
146 I2cOutb (PciIo, SEQ_ADDRESS_REGISTER, I2C_CONTROL);
147 Byte = (UINT8) (I2cInb (PciIo, SEQ_DATA_REGISTER) & (UINT8) ~(1 << Bit)) ;
149 I2cOutb (PciIo, SEQ_DATA_REGISTER, (UINT8) (Byte | 0x40));
168 @param PciIo The pointer to PCI_IO_PROTOCOL.
174 EFI_PCI_IO_PROTOCOL *PciIo,
183 I2cPinWrite (PciIo, I2CDAT_OUT, (UINT8) (Data >> (7 - Index)));
184 I2cPinWrite (PciIo, I2CCLK_OUT, 1);
186 I2cPinWrite (PciIo, I2CCLK_OUT, 0);
193 @param PciIo The pointer to PCI_IO_PROTOCOL.
199 EFI_PCI_IO_PROTOCOL *PciIo
210 I2cPinWrite (PciIo, I2CCLK_OUT, 1);
213 Data = (UINT8) (Data | I2cPinRead (PciIo, I2CDAT_IN));
214 I2cPinWrite (PciIo, I2CCLK_OUT, 0);
223 @param PciIo The pointer to PCI_IO_PROTOCOL.
228 EFI_PCI_IO_PROTOCOL *PciIo
234 I2cPinWrite (PciIo, I2CDAT_OUT, 1);
235 I2cPinWrite (PciIo, I2CCLK_OUT, 1);
237 if (I2cPinRead (PciIo, I2CDAT_IN) == 0) {
238 I2cPinWrite (PciIo, I2CDAT_OUT, 1);
248 @param PciIo The pointer to PCI_IO_PROTOCOL.
253 EFI_PCI_IO_PROTOCOL *PciIo
256 I2cPinWrite (PciIo, I2CCLK_OUT, 1);
257 I2cPinWrite (PciIo, I2CDAT_OUT, 1);
258 I2cPinWrite (PciIo, I2CDAT_OUT, 0);
259 I2cPinWrite (PciIo, I2CCLK_OUT, 0);
265 @param PciIo The pointer to PCI_IO_PROTOCOL.
270 EFI_PCI_IO_PROTOCOL *PciIo
276 I2cPinWrite (PciIo, I2CCLK_OUT, 1);
277 I2cPinWrite (PciIo, I2CDAT_OUT, 1);
281 I2cPinWrite (PciIo, I2CDAT_OUT, 0);
282 I2cPinWrite (PciIo, I2CCLK_OUT, 0);
288 @param PciIo The pointer to PCI_IO_PROTOCOL.
293 EFI_PCI_IO_PROTOCOL *PciIo
299 I2cPinWrite (PciIo, I2CDAT_OUT, 0);
300 I2cPinWrite (PciIo, I2CCLK_OUT, 1);
301 I2cPinWrite (PciIo, I2CDAT_OUT, 1);
310 @param PciIo The pointer to PCI_IO_PROTOCOL.
322 EFI_PCI_IO_PROTOCOL *PciIo,
333 I2cStart (PciIo);
338 I2cSendByte (PciIo, (UINT8) (DeviceAddress & 0xfe));
343 if (I2cWaitAck (PciIo) == FALSE) {
350 I2cSendByte (PciIo, RegisterAddress);
355 if (I2cWaitAck (PciIo) == FALSE) {
362 I2cSendByte (PciIo, (UINT8) (DeviceAddress | 0x01));
367 if (I2cWaitAck (PciIo) == FALSE) {
374 *Data = I2cReceiveByte (PciIo);
379 I2cSendAck (PciIo);
384 I2cStop (PciIo);
395 @param PciIo The pointer to PCI_IO_PROTOCOL.
407 EFI_PCI_IO_PROTOCOL *PciIo,
415 I2cStart (PciIo);
419 I2cSendByte (PciIo, (UINT8) (DeviceAddress & 0xfe));
424 if (I2cWaitAck (PciIo) == FALSE) {
431 I2cSendByte (PciIo, RegisterAddress);
436 if (I2cWaitAck (PciIo) == FALSE) {
443 I2cSendByte (PciIo, *Data);
448 if (I2cWaitAck (PciIo) == FALSE) {
455 I2cStop (PciIo);