patch-2.1.110 linux/include/asm-alpha/apecs.h

Next file: linux/include/asm-alpha/bitops.h
Previous file: linux/fs/super.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.109/linux/include/asm-alpha/apecs.h linux/include/asm-alpha/apecs.h
@@ -211,6 +211,7 @@
 #define APECS_IO			(IDENT_ADDR + 0x1c0000000UL)
 #define APECS_SPARSE_MEM		(IDENT_ADDR + 0x200000000UL)
 #define APECS_DENSE_MEM		        (IDENT_ADDR + 0x300000000UL)
+#define DENSE_MEM(addr)			APECS_DENSE_MEM
 
 /*
  * Bit definitions for I/O Controller status register 0:
@@ -286,6 +287,7 @@
  */
 
 #define vuip	volatile unsigned int *
+#define vulp	volatile unsigned long *
 
 extern inline unsigned int __inb(unsigned long addr)
 {
@@ -374,6 +376,11 @@
 	return *(vuip) (addr + APECS_DENSE_MEM);
 }
 
+extern inline unsigned long __readq(unsigned long addr)
+{
+	return *(vulp) (addr + APECS_DENSE_MEM);
+}
+
 extern inline void __writeb(unsigned char b, unsigned long addr)
 {
 	unsigned long msb;
@@ -407,6 +414,11 @@
 	*(vuip) (addr + APECS_DENSE_MEM) = b;
 }
 
+extern inline void __writeq(unsigned long b, unsigned long addr)
+{
+	*(vulp) (addr + APECS_DENSE_MEM) = b;
+}
+
 #define inb(port) \
 (__builtin_constant_p((port))?__inb(port):_inb(port))
 
@@ -414,9 +426,12 @@
 (__builtin_constant_p((port))?__outb((x),(port)):_outb((x),(port)))
 
 #define readl(a)	__readl((unsigned long)(a))
+#define readq(a)	__readq((unsigned long)(a))
 #define writel(v,a)	__writel((v),(unsigned long)(a))
+#define writeq(v,a)	__writeq((v),(unsigned long)(a))
 
 #undef vuip
+#undef vulp
 
 extern unsigned long apecs_init (unsigned long mem_start,
 				 unsigned long mem_end);

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov