diff options
author | Eric Hustvedt <ehustvedt@cecropia.com> | 2006-06-20 22:36:41 +0400 |
---|---|---|
committer | Dave Airlie <airlied@linux.ie> | 2006-07-03 12:59:46 +0400 |
commit | 9a5f019b1a9ea6a75ba36d7c312ff069006ed479 (patch) | |
tree | 03fb6003c48a7d8bd0df2bc40678f8bc601015f1 /drivers/video/intelfb/intelfbhw.h | |
parent | 3ce6fb4358bce6aced489f798138795163ad3f7c (diff) | |
download | linux-9a5f019b1a9ea6a75ba36d7c312ff069006ed479.tar.xz |
intelfb: add vsync interrupt support
[02/05] intelfb: Add interrupt related register definitions
Add constants for accessing HWSTAM, IER, IIR, and IMR registers.
Add constants for interrupt types supported by the 8xx and 9xx chipsets.
The registers are also stored in the hwstate struct and dumped in the debug routine.
Signed-off-by: Eric Hustvedt <ehustvedt@cecropia.com>
Diffstat (limited to 'drivers/video/intelfb/intelfbhw.h')
-rw-r--r-- | drivers/video/intelfb/intelfbhw.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/drivers/video/intelfb/intelfbhw.h b/drivers/video/intelfb/intelfbhw.h index 258235149913..8d2e36972fc8 100644 --- a/drivers/video/intelfb/intelfbhw.h +++ b/drivers/video/intelfb/intelfbhw.h @@ -88,6 +88,19 @@ #define INSTDONE 0x2090 #define PRI_RING_EMPTY 1 +#define HWSTAM 0x2098 +#define IER 0x20A0 +#define IIR 0x20A4 +#define IMR 0x20A8 +#define VSYNC_PIPE_A_INTERRUPT (1 << 7) +#define PIPE_A_EVENT_INTERRUPT (1 << 4) +#define VSYNC_PIPE_B_INTERRUPT (1 << 5) +#define PIPE_B_EVENT_INTERRUPT (1 << 4) +#define HOST_PORT_EVENT_INTERRUPT (1 << 3) +#define CAPTURE_EVENT_INTERRUPT (1 << 2) +#define USER_DEFINED_INTERRUPT (1 << 1) +#define BREAKPOINT_INTERRUPT 1 + #define INSTPM 0x20c0 #define SYNC_FLUSH_ENABLE (1 << 5) |