24 #define I2C_IO_BASE 0xc000 29 int nRetriesToLive=50;
36 while(nRetriesToLive--)
100 int nRetriesToLive=50;
107 while (0 != nRetriesToLive--)
133 while (0 == (
b & 0x36))
177 return ReadfromSMBus(bPicAddressI2cFormat, bDataToWrite, 1, Return);
184 return WriteToSMBus(bPicAddressI2cFormat,(wDataToWrite>>8)&0xff,1,(wDataToWrite&0xff));
VOID StallExecutionProcessor(ULONG Microseconds)
VOID NTAPI WRITE_PORT_USHORT(IN PUSHORT Port, IN USHORT Value)
#define READ_PORT_UCHAR(p)
ACPI_SIZE strlen(const char *String)
GLdouble GLdouble GLdouble r
IN PVOID IN PVOID IN USHORT IN USHORT Size
GLint GLint GLint GLint GLint x
static BOOLEAN I2CTransmitWord(UCHAR bPicAddressI2cFormat, USHORT wDataToWrite)
GLboolean GLboolean GLboolean b
BOOLEAN I2CTransmitByteGetReturn(UCHAR bPicAddressI2cFormat, UCHAR bDataToWrite, ULONG *Return)
static void I2cSetFrontpanelLed(UCHAR b)
#define WRITE_PORT_UCHAR(p, d)
void XboxSetLED(PCSTR pattern)
static BOOLEAN WriteToSMBus(UCHAR Address, UCHAR bRegister, UCHAR Size, ULONG Data_to_smbus)
static BOOLEAN ReadfromSMBus(UCHAR Address, UCHAR bRegister, UCHAR Size, ULONG *Data_to_smbus)
USHORT NTAPI READ_PORT_USHORT(IN PUSHORT Port)