LPB_BASE_OFFSET	EQU	0000FF00H
LPB_MODE	EQU	0000FF00H
LPB_ENABLE	EQU	00000001H
LPB_TYPE_SHIFT	EQU	1
LPB_TYPE_MASK	EQU	0000000EH
LPB_TYPE_CP3	EQU	0
LPB_TYPE_VIDEO16	EQU	1
LPB_TYPE_VIDEO8	EQU	2
LPB_TYPE_CL480	EQU	3
LPB_TYPE_PASSTHRU	EQU	4
LPB_DORESET	EQU	00000010H
LPB_SKIPFIELDS	EQU	00000020H
LPB_BYTESWAP	EQU	00000040H
LPB_YUV422DROP_V2	EQU	00000080H
LPB_VSYNC_HIGH	EQU	00000200H
LPB_HSYNC_HIGH	EQU	00000400H
LPB_DOVSYNC	EQU	00000800H
LPB_DOHSYNC	EQU	00001000H
LPB_DOLOADBASEADDR	EQU	00002000H
LPB_AUTOSYNCPASSTHRU_V2	EQU	00004000H
LPB_BURST_SIZE_MASK	EQU	00030000H
LPB_BURST_SIZE_SHIFT	EQU	16
LPB_BURST_1	EQU	0
LPB_BURST_2	EQU	1
LPB_BURST_3	EQU	2
LPB_BURST_ALL	EQU	3
LPB_VBICAPTURE_V3	EQU	00080000H
LPB_EARLYHSYNC_V2	EQU	00100000H
LPB_FIFOSLOTS_SHIFT	EQU	21
LPB_FIFOSLOTS_MASK_V1	EQU	00600000H
LPB_FIFOSLOTS_MASK_V2	EQU	00E00000H
LPB_FIFOSLOTS_MASK_V3	EQU	00000000H
LPB_CLOCK_LCLK	EQU	01000000H
LPB_IGNOREHALFLINE	EQU	02000000H
LPB_INVERTLCLK	EQU	04000000H
LPB_BASE1ACTIVE_V3	EQU	08000000H
LPB_EVENFIELD_V2	EQU	10000000H
LPB_INVERTFIELD_V2	EQU	20000000H
LPB_DEINTERLACE_V2	EQU	40000000H
LPB_V16DEINTERLACE_V3	EQU	80000000H
LPB_FIFO_STATUS	EQU	0000FF04H
LPB_OSLOTS_SHIFT	EQU	0
LPB_OFLOTS_MASK	EQU	0000000FH
LPB_OFULL	EQU	00000800H
LPB_OEMPTY	EQU	00001000H
LPB_OALMOSTEMPTY	EQU	00002000H
LPB_V0FULL	EQU	00100000H
LPB_V0EMPTY	EQU	00200000H
LPB_V0ALMOSTEMPTY	EQU	00400000H
LPB_V1FULL	EQU	20000000H
LPB_V1EMPTY	EQU	40000000H
LPB_V1ALMOSTEMPTY	EQU	80000000H
LPB_INTERRUPT_FLAGS	EQU	0000FF08H
LPB_INT_OEMPTY	EQU	00000001H
LPB_INT_HSYNC	EQU	00000002H
LPB_INT_VSYNC	EQU	00000004H
LPB_INT_I2CSTART	EQU	00000008H
LPB_INT_VSYNCEND_V3	EQU	00000080H
LPB_IENABLE_OEMPTY	EQU	00010000H
LPB_IENABLE_HSYNC	EQU	00020000H
LPB_IENABLE_VSYNC	EQU	00040000H
LPB_IENABLE_I2CSTART	EQU	00080000H
LPB_IENABLE_VSYNCEND_V3	EQU	00800000H
LPB_SPCLK_LOW	EQU	01000000H
LPB_BASE0	EQU	0000FF0CH
LPB_BASE0_SHIFT	EQU	0
LPB_BASE0_MASK	EQU	003FFFFFH
LPB_BASE1	EQU	0000FF10H
LPB_BASE1_SHIFT	EQU	0
LPB_BASE1_MASK	EQU	003FFFFFH
LPB_CMD	EQU	0000FF14H
LPB_CMD_ADDR_SHIFT	EQU	0
LPB_CMD_ADDR_MASK	EQU	001FFFFFH
LPB_CMD_TYPE_SHIFT	EQU	21
LPB_CMD_TYPE_MASK	EQU	00E00000H
LPB_CMD_WRITE	EQU	0
LPB_CMD_READ	EQU	1
LPB_CMD_OFIFO	EQU	5
LPB_CMD_DATA	EQU	0000FF18H
LPB_GPIO	EQU	0000FF1CH
LPB_GPOUT_SHIFT	EQU	0
LPB_GPOUT_MASK	EQU	0000000FH
LPB_GPIN_SHIFT	EQU	4
LPB_GPIN_MASK	EQU	000000F0H
LPB_I2C	EQU	0000FF20H
LPB_I2C_CLK_WRITE	EQU	00000001H
LPB_I2C_DATA_WRITE	EQU	00000002H
LPB_I2C_CLK_READ	EQU	00000004H
LPB_I2C_DATA_READ	EQU	00000008H
LPB_I2C_ENABLE	EQU	00000010H
LPB_I2C_BIT0MIRROR	EQU	00000100H
LPB_I2C_BIT1MIRROR	EQU	00000200H
LPB_I2C_BIT2MIRROR	EQU	00000400H
LPB_I2C_BIT3MIRROR	EQU	00000800H
LPB_I2C_BIT4MIRROR	EQU	00001000H
LPB_INPUT_SIZE	EQU	0000FF24H
LPB_INPUT_WIDTH_SHIFT	EQU	0
LPB_INPUT_WIDTH_MASK	EQU	00000FFFH
LPB_INPUT_HEIGHT_SHIFT	EQU	16
LPB_INPUT_HEIGHT_MASK	EQU	01FF0000H
LPB_INPUT_OFFSETS	EQU	0000FF28H
LPB_INPUT_HOFFSET_SHIFT	EQU	0
LPB_INPUT_HOFFSET_MASK	EQU	00000FFFH
LPB_INPUT_VOFFSET_SHIFT	EQU	16
LPB_INPUT_VOFFSET_MASK	EQU	01FF0000H
LPB_HDECIMATION_PATTERN	EQU	0000FF2CH
LPB_VDECIMATION_PATTERN	EQU	0000FF30H
LPB_OUTPUT_STRIDE	EQU	0000FF34H
LPB_OUTPUT_STRIDE_SHIFT	EQU	0
LPB_OUTPUT_STRIDE_MASK	EQU	00000FFFH
LPB_INPUT_FIFO	EQU	0000FF40H
LPB_REGS_SIZE	EQU	0000005CH
LPB_FLAGS_INVERTPOLARITY	EQU	01H
ifndef MASM6

_LPB	STRUC
jInputWidthPixelAlign	DB	?
jGUIDIndex	DB	?
jFamily	DB	?
jFlags	DB	?
dwBaseOffset	DB	SIZE DWORD DUP (?)
HDecimationTable	DW	?
VDecimationTable	DW	?
HDecimationSteps	DB	SIZE WORD DUP (?)
VDecimationSteps	DB	SIZE WORD DUP (?)
dwVDecimationPattern	DB	SIZE DWORD DUP (?)
dwNumBuffers	DB	SIZE DWORD DUP (?)
dwBufferSize	DB	SIZE DWORD DUP (?)
fpCurrentSurface	DB	SIZE FLATPTR DUP (?)
ddVideoPortCaps	DB	SIZE DDVIDEOPORTCAPS DUP (?)
_LPB	ENDS
LPB_CanCreate	DWORD <>
LPB_Create	DWORD <>
LPB_Flip	DWORD <>
LPB_GetBandwidth	DWORD <>
LPB_GetInputFormats	DWORD <>
LPB_GetOutputFormats	DWORD <>
LPB_GetField	DWORD <>
LPB_GetLine	DWORD <>
LPB_GetConnect	DWORD <>
LPB_Destroy	DWORD <>
LPB_GetFlipStatus	DWORD <>
LPB_Update	DWORD <>
LPB_WaitForSync	DWORD <>
LPB_GetSignalStatus	DWORD <>
LPB_ColorControl	DWORD <>
endif
