// video.h
typedef struct _VIDEO_PORT_I2C_INTERFACE {
IN USHORT Size;
IN USHORT Version;
OUT PVOID Context;
OUT PINTERFACE_REFERENCE InterfaceReference;
OUT PINTERFACE_DEREFERENCE InterfaceDereference;
OUT PI2C_START I2CStart;
OUT PI2C_STOP I2CStop;
OUT PI2C_WRITE I2CWrite;
OUT PI2C_READ I2CRead;
} VIDEO_PORT_I2C_INTERFACE, *PVIDEO_PORT_I2C_INTERFACE;
View the official Windows Driver Kit DDI referenceNo description available.
The VIDEO_PORT_I2C_INTERFACE structure describes the I2C service routines provided by the video port driver.
SizeSpecifies the size in bytes of this structure.
VersionSpecifies the version of the interface to be returned by the miniport driver. The current interface version is defined in video.h, and has the form VIDEO_PORT_I2C_INTERFACE_N.
ContextPointer to a miniport driver-defined context for the interface.
InterfaceReferencePointer to the video port driver-implemented reference routine for this interface.
InterfaceDereferencePointer to the video port driver-implemented dereference routine for this interface.
I2CStartPointer to the video port driver's I2CStart routine.
I2CStopPointer to the video port driver's I2CStop routine.
I2CWritePointer to the video port driver's I2CWrite routine.
I2CReadPointer to the video port driver's I2CRead routine.
PnP video miniport drivers that can use I²C should fill in the Size and Version members of this structure, and then call VideoPortQueryServices, which initializes the remaining members of this structure.