27#define DDC_EEPROM_ADDRESS 0xA0
35#define READ_SDA() (i2c->ReadDataLine(HwDeviceExtension))
36#define READ_SCL() (i2c->ReadClockLine(HwDeviceExtension))
37#define WRITE_SDA(state) (i2c->WriteDataLine(HwDeviceExtension, state))
38#define WRITE_SCL(state) (i2c->WriteClockLine(HwDeviceExtension, state))
41#define DELAY_HALF() KeDelayExecutionThread(KernelMode, FALSE, &HalfPeriodDelay)
51 for (Bit = (1 << 7); Bit != 0; Bit >>= 1)
73 INFO_(VIDEOPRT,
"I2CWrite: %s\n", Ack ?
"Ack" :
"Nak");
89 for (Bit = (1 << 7); Bit != 0; Bit >>= 1)
132 WARN_(VIDEOPRT,
"I2CStart: Bus is not free!\n");
142 I2CStop(HwDeviceExtension, i2c);
143 WARN_(VIDEOPRT,
"I2CStart: Device not found (Address = 0x%x)\n",
Address);
147 INFO_(VIDEOPRT,
"I2CStart: SUCCESS!\n");
174 PVOID HwDeviceExtension,
186 TRACE_(VIDEOPRT,
"VideoPortDDCMonitorHelper()\n");
191 WARN_(VIDEOPRT,
"ddc->Size != %d (%d)\n",
sizeof (ddc), ddc->
Size);
199 if (!
I2CWrite(HwDeviceExtension, i2c, 0x00))
212 I2CStop(HwDeviceExtension, i2c);
220 WARN_(VIDEOPRT,
"VideoPortDDCMonitorHelper(): Invalid EDID header!\n");
224 INFO_(VIDEOPRT,
"VideoPortDDCMonitorHelper(): EDID version %d rev. %d\n",
pBuffer[18],
pBuffer[19]);
225 INFO_(VIDEOPRT,
"VideoPortDDCMonitorHelper() - SUCCESS!\n");
static BOOL I2CRepStart(PVOID HwDeviceExtension, PI2C_CALLBACKS i2c, UCHAR Address)
static UCHAR I2CRead(PVOID HwDeviceExtension, PI2C_CALLBACKS i2c, BOOL Ack)
static BOOL I2CWrite(PVOID HwDeviceExtension, PI2C_CALLBACKS i2c, UCHAR Data)
#define DDC_EEPROM_ADDRESS
static BOOL I2CStart(PVOID HwDeviceExtension, PI2C_CALLBACKS i2c, UCHAR Address)
static LARGE_INTEGER HalfPeriodDelay
BOOLEAN NTAPI VideoPortDDCMonitorHelper(PVOID HwDeviceExtension, PVOID I2CFunctions, PUCHAR pEdidBuffer, ULONG EdidBufferSize)
static VOID I2CStop(PVOID HwDeviceExtension, PI2C_CALLBACKS i2c)
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
struct _DDC_CONTROL * PDDC_CONTROL
#define ASSERT_IRQL_LESS_OR_EQUAL(x)
IN I2C_CALLBACKS I2CCallbacks
#define RtlZeroMemory(Destination, Length)
ActualNumberDriverObjects * sizeof(PDRIVER_OBJECT)) PDRIVER_OBJECT *DriverObjectList