aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Hustvedt <ehustvedt@cecropia.com>2006-06-20 14:36:41 -0400
committerDave Airlie <airlied@linux.ie>2006-07-03 04:59:46 -0400
commit3ce6fb4358bce6aced489f798138795163ad3f7c (patch)
tree233894f62ac13a02bc88300e596f212656adc4d6
parent0fe6e2d2928e089d16ec5ed7ba634c1d60916020 (diff)
intelfb: add vsync interrupt support
[01/05] intelfb: Add 16-bit register access macros This patch adds macros to read and write two-byte MMIO registers. The interrupt-related registers are all word-sized, rather than long-sized. Signed-off-by: Eric Hustvedt <ehustvedt@cecropia.com>
-rw-r--r--drivers/video/intelfb/intelfbhw.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/video/intelfb/intelfbhw.h b/drivers/video/intelfb/intelfbhw.h
index 10acda098b71..258235149913 100644
--- a/drivers/video/intelfb/intelfbhw.h
+++ b/drivers/video/intelfb/intelfbhw.h
@@ -468,9 +468,12 @@
468 468
469/* I/O macros */ 469/* I/O macros */
470#define INREG8(addr) readb((u8 __iomem *)(dinfo->mmio_base + (addr))) 470#define INREG8(addr) readb((u8 __iomem *)(dinfo->mmio_base + (addr)))
471#define INREG16(addr) readw((u16 __iomem *)(dinfo->mmio_base + (addr)))
471#define INREG(addr) readl((u32 __iomem *)(dinfo->mmio_base + (addr))) 472#define INREG(addr) readl((u32 __iomem *)(dinfo->mmio_base + (addr)))
472#define OUTREG8(addr, val) writeb((val),(u8 __iomem *)(dinfo->mmio_base + \ 473#define OUTREG8(addr, val) writeb((val),(u8 __iomem *)(dinfo->mmio_base + \
473 (addr))) 474 (addr)))
475#define OUTREG16(addr, val) writew((val),(u16 __iomem *)(dinfo->mmio_base + \
476 (addr)))
474#define OUTREG(addr, val) writel((val),(u32 __iomem *)(dinfo->mmio_base + \ 477#define OUTREG(addr, val) writel((val),(u32 __iomem *)(dinfo->mmio_base + \
475 (addr))) 478 (addr)))
476 479