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));
ACPI_SIZE strlen(const char *String)
GLint GLint GLint GLint GLint x
GLdouble GLdouble GLdouble r
GLboolean GLboolean GLboolean b
VOID NTAPI WRITE_PORT_USHORT(IN PUSHORT Port, IN USHORT Value)
USHORT NTAPI READ_PORT_USHORT(IN PUSHORT Port)
#define READ_PORT_UCHAR(p)
#define WRITE_PORT_UCHAR(p, d)
VOID StallExecutionProcessor(ULONG Microseconds)
_Must_inspect_result_ _In_ WDFDEVICE _In_ PWDF_DEVICE_PROPERTY_DATA _In_ DEVPROPTYPE _In_ ULONG Size
BOOLEAN I2CTransmitByteGetReturn(UCHAR bPicAddressI2cFormat, UCHAR bDataToWrite, ULONG *Return)
static BOOLEAN I2CTransmitWord(UCHAR bPicAddressI2cFormat, USHORT wDataToWrite)
static BOOLEAN ReadfromSMBus(UCHAR Address, UCHAR bRegister, UCHAR Size, ULONG *Data_to_smbus)
static BOOLEAN WriteToSMBus(UCHAR Address, UCHAR bRegister, UCHAR Size, ULONG Data_to_smbus)
static void I2cSetFrontpanelLed(UCHAR b)
void XboxSetLED(PCSTR pattern)