linux-fbdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 2.6.17-rc6-mm2 1/5] intelfb: RESEND - add vsync interrupt support
@ 2006-06-20 18:31 Dennis Munsie
  0 siblings, 0 replies; only message in thread
From: Dennis Munsie @ 2006-06-20 18:31 UTC (permalink / raw)
  To: linux-fbdev-devel

From: Eric Hustvedt <ehustvedt@cecropia.com>

[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>
---

 drivers/video/intelfb/intelfbhw.h |    3 +++
 1 file changed, 3 insertions(+)

diff -X linux-2.6.17-rc4-cecropia/Documentation/dontdiff -Naurp linux-2.6.17-rc4-cecropia/drivers/video/intelfb/intelfbhw.h linux-2.6.17-rc4-stable/drivers/video/intelfb/intelfbhw.h
--- linux-2.6.17-rc4-cecropia/drivers/video/intelfb/intelfbhw.h	2006-05-26 10:06:30.000000000 -0600
+++ linux-2.6.17-rc4-stable/drivers/video/intelfb/intelfbhw.h	2006-06-07 11:14:18.000000000 -0600
@@ -468,9 +474,12 @@
 
 /* I/O macros */
 #define INREG8(addr)	      readb((u8 __iomem *)(dinfo->mmio_base + (addr)))
+#define INREG16(addr)	      readw((u16 __iomem *)(dinfo->mmio_base + (addr)))
 #define INREG(addr)	      readl((u32 __iomem *)(dinfo->mmio_base + (addr)))
 #define OUTREG8(addr, val)    writeb((val),(u8 __iomem *)(dinfo->mmio_base + \
 							   (addr)))
+#define OUTREG16(addr, val)    writew((val),(u16 __iomem *)(dinfo->mmio_base + \
+							   (addr)))
 #define OUTREG(addr, val)     writel((val),(u32 __iomem *)(dinfo->mmio_base + \
                                      (addr)))

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-06-20 18:47 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-06-20 18:31 [PATCH 2.6.17-rc6-mm2 1/5] intelfb: RESEND - add vsync interrupt support Dennis Munsie

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).