Go to the source code of this file.
◆ I2C_IO_BASE
◆ I2cSetFrontpanelLed()
Definition at line 188 of file xboxi2c.c.
189{
192}
GLboolean GLboolean GLboolean b
static BOOLEAN I2CTransmitWord(UCHAR bPicAddressI2cFormat, USHORT wDataToWrite)
Referenced by XboxSetLED().
◆ I2CTransmitByteGetReturn()
Definition at line 175 of file xboxi2c.c.
176{
177 return ReadfromSMBus(bPicAddressI2cFormat, bDataToWrite, 1, Return);
178}
static BOOLEAN ReadfromSMBus(UCHAR Address, UCHAR bRegister, UCHAR Size, ULONG *Data_to_smbus)
◆ I2CTransmitWord()
Definition at line 182 of file xboxi2c.c.
183{
184 return WriteToSMBus(bPicAddressI2cFormat,(wDataToWrite>>8)&0xff,1,(wDataToWrite&0xff));
185}
static BOOLEAN WriteToSMBus(UCHAR Address, UCHAR bRegister, UCHAR Size, ULONG Data_to_smbus)
Referenced by I2cSetFrontpanelLed().
◆ ReadfromSMBus()
Definition at line 98 of file xboxi2c.c.
99{
100 int nRetriesToLive=50;
101
103 {
104 ;
105 }
106
107 while (0 != nRetriesToLive--)
108 {
111
114
117
119 {
120 case 4:
122 break;
123 case 2:
125 break;
126 default:
128 break;
129 }
130
132
133 while (0 == (
b & 0x36))
134 {
136 }
137
139 {
140
141 }
142
144 {
145
146 }
147 else
148 {
150 {
151 case 4:
157 break;
158 case 2:
160 break;
161 default:
163 break;
164 }
165
166
168 }
169 }
170
172}
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)
_Must_inspect_result_ _In_ WDFDEVICE _In_ PWDF_DEVICE_PROPERTY_DATA _In_ DEVPROPTYPE _In_ ULONG Size
Referenced by I2CTransmitByteGetReturn().
◆ WriteToSMBus()
Definition at line 27 of file xboxi2c.c.
28{
29 int nRetriesToLive=50;
30
32 {
33 ;
34 }
35
36 while(nRetriesToLive--)
37 {
40
43
45 {
46 case 4:
52 break;
53 case 2:
55 break;
56 default:
58 break;
59 }
60
61
64
66 {
67 case 4:
69 break;
70 case 2:
72 break;
73 default:
75 break;
76 }
77
79
81 {
83 }
84
86 {
88 }
89
91 }
92
94}
VOID StallExecutionProcessor(ULONG Microseconds)
Referenced by I2CTransmitWord().
◆ XboxSetLED()
Definition at line 198 of file xboxi2c.c.
198 {
201
208 case 'r':
210 break;
211 case 'g':
213 break;
214 case 'o':
217 break;
218 }
220 }
222 }
223}
ACPI_SIZE strlen(const char *String)
GLint GLint GLint GLint GLint x
GLdouble GLdouble GLdouble r
static void I2cSetFrontpanelLed(UCHAR b)
Referenced by MachInit().