atiirq.h
来自「WinCE 3.0 BSP, 包含Inter SA1110, Intel_815」· C头文件 代码 · 共 128 行
H
128 行
/*^^*
* File: ATIIRQ.H
*
* Notes: This file is provided under strict non-disclosure agreements
* it is and remains the property of ATI Technologies Inc.
* Any use of this file or the information it contains to
* develop products commercial or otherwise must be with the
* permission of ATI Technologies Inc.
*
* Copyright (C) 1998, ATI Technologies Inc.
*^^*/
#ifndef _ATIIRQ_H_
#define _ATIIRQ_H_
/***********************************************************************************************
* Defines & Structures
***********************************************************************************************/
typedef struct tag_IRQCallbackInfo
{
DWORD dwIRQSource;
DWORD dwIRQCount;
DWORD dwIRQEnableId;
DWORD dwFlags;
DWORD dwData;
DWORD dwReserved1;
DWORD dwReserved2;
DWORD dwReserved3;
} IRQCALLBACKINFO, * PIRQCALLBACKINFO;
typedef void \
( STDMETHODCALLTYPE * IRQ_CALLBACK)( DWORD dwClientContext, PIRQCALLBACKINFO pIRQCallbackInfo);
typedef struct tag_IRQControl
{
DWORD Command;
DWORD IRQClient;
DWORD IRQEnableId;
DWORD Status;
DWORD dwIRQSource;
DWORD Flags;
DWORD CallbackMethod;
IRQ_CALLBACK Callback;
DWORD dwClientContext;
DWORD dwReserved1;
DWORD dwReserved2;
DWORD dwReserved3;
DWORD dwReserved4;
} IRQControl, * PIRQControl;
// IRQ Commands
#define IRQ_COMMAND_QUERY 0x00000001
#define IRQ_COMMAND_ENABLE_IRQ_SOURCE 0x00000002
#define IRQ_COMMAND_DISABLE_IRQ_SOURCE 0x00000004
// IRQ Clients
#define IRQ_CLIENT_I2C_PROVIDER 0x00000001
#define IRQ_CLIENT_GPIO_PROVIDER 0x00000002
#define IRQ_CLIENT_NON_WDM_DRIVER 0x00000040
//
// NOTE: Support for the following IRQ Clients is not
// curently implimented
//
#define IRQ_CLIENT_BM_PROVIDER 0x00000004
#define IRQ_CLIENT_MPP_PROVIDER 0x00000008
#define IRQ_CLIENT_VIP_PROVIDER 0x00000010
#define IRQ_CLIENT_WDM_DRIVER 0x00000020
#define IRQ_CLIENT_RING3_IRQ_MANAGER 0x00000080
#define IRQ_CLIENT_STREAM_PROVIDER 0x00000100
//
// End NOTE
//
// IRQ Callback Methods
#define IRQ_CALLBACK_DIRECT 0x00000001
#define IRQ_CALLBACK_EVENT 0x00000002
// IRQ Sources
#define IRQ_SOURCE_CRTC_VBLANK 0x00000001
#define IRQ_SOURCE_CRTC_VLINE 0x00000002
#define IRQ_SOURCE_SNAPSHOT 0x00000004
#define IRQ_SOURCE_BUSMASTER_EOL 0x00000008
#define IRQ_SOURCE_I2C 0x00000010
#define IRQ_SOURCE_MPP_GP 0x00000020
#define IRQ_SOURCE_GUI_IDLE 0x00000040
#define IRQ_SOURCE_VIPH 0x00000080
#define IRQ_SOURCE_CAP0_BUF0 0x00000100
#define IRQ_SOURCE_CAP0_BUF0_EVEN 0x00000200
#define IRQ_SOURCE_CAP0_BUF1 0x00000400
#define IRQ_SOURCE_CAP0_BUF1_EVEN 0x00000800
#define IRQ_SOURCE_CAP0_VBI0 0x00001000
#define IRQ_SOURCE_CAP0_VBI1 0x00002000
#define IRQ_SOURCE_CAP0_ONESHOT 0x00004000
#define IRQ_SOURCE_CAP0_ANC0 0x00008000
#define IRQ_SOURCE_CAP0_ANC1 0x00010000
#define IRQ_SOURCE_CAP1_BUF0 0x00020000
#define IRQ_SOURCE_CAP1_BUF0_EVEN 0x00040000
#define IRQ_SOURCE_CAP1_BUF1 0x00080000
#define IRQ_SOURCE_CAP1_BUF1_EVEN 0x00100000
#define IRQ_SOURCE_CAP1_VBI0 0x00200000
#define IRQ_SOURCE_CAP1_VBI1 0x00400000
#define IRQ_SOURCE_CAP1_ONESHOT 0x00800000
#define IRQ_SOURCE_CAP1_ANC0 0x01000000
#define IRQ_SOURCE_CAP1_ANC1 0x02000000
#define IRQ_SOURCE_OVERLAY_EOF 0x04000000
#define IRQ_SOURCE_CRTC_VSYNC 0x08000000
// IRQ Status
#define IRQ_STATUS_NOERROR 0x00000001
#define IRQ_STATUS_ERROR 0x00000002
#define IRQ_STATUS_IRQ_NOT_ENABLED 0x00000004
#define IRQ_STATUS_IRQ_SOURCE_NOTSUPPORTED 0x00000008
#define IRQ_STATUS_IRQ_SOURCE_LIST_FULL 0x00000010
#define IRQ_STATUS_CALLBACK_NOTDEFINED 0x00000020
// Flags
#define IRQ_FLAG_FIELD_POLARITY 0x00000001
#endif // _ATIIRQ_H_
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?