]> err.no Git - linux-2.6/commit
intelfb: add vsync interrupt support
authorEric Hustvedt <ehustvedt@cecropia.com>
Tue, 20 Jun 2006 18:36:41 +0000 (14:36 -0400)
committerDave Airlie <airlied@linux.ie>
Mon, 3 Jul 2006 08:59:46 +0000 (18:59 +1000)
commit7649757bd900bc900adcd95ab08903cdc28342fa
tree4c710d9e458ff3c6731180aca738123886f7adec
parent9a5f019b1a9ea6a75ba36d7c312ff069006ed479
intelfb: add vsync interrupt support

[03/05] intelfb: Implement basic interrupt handling

Functions have been added to enable and disable interrupts using the MMIO registers. Currently only pipe A vsync interrupts are enabled.
A generalized vsync accounting struct is defined, with the intent that it can encapsulate per-pipe vsync related info in the future. Currently a single instance is hard-coded.
The interrupt service routine currently only looks for vsync interrupts on pipe A, and increments a counter and wakes up anyone waiting on it.

This implementation is heavily influenced by similar implementations in the atyfb and matroxfb drivers.

Signed-off-by: Eric Hustvedt <ehustvedt@cecropia.com>
drivers/video/intelfb/intelfb.h
drivers/video/intelfb/intelfbdrv.c
drivers/video/intelfb/intelfbhw.c
drivers/video/intelfb/intelfbhw.h