patch-2.1.110 linux/include/asm-alpha/cia.h
Next file: linux/include/asm-alpha/io.h
Previous file: linux/include/asm-alpha/bitops.h
Back to the patch index
Back to the overall index
- Lines: 51
- Date:
Sun Jul 19 20:44:41 1998
- Orig file:
v2.1.109/linux/include/asm-alpha/cia.h
- Orig date:
Tue Jun 9 11:57:31 1998
diff -u --recursive --new-file v2.1.109/linux/include/asm-alpha/cia.h linux/include/asm-alpha/cia.h
@@ -178,6 +178,7 @@
#define CIA_SPARSE_MEM_R2 (IDENT_ADDR + 0x8400000000UL)
#define CIA_SPARSE_MEM_R3 (IDENT_ADDR + 0x8500000000UL)
#define CIA_DENSE_MEM (IDENT_ADDR + 0x8600000000UL)
+#define DENSE_MEM(addr) CIA_DENSE_MEM
/*
* ALCOR's GRU ASIC registers
@@ -241,6 +242,7 @@
*/
#define vuip volatile unsigned int *
+#define vulp volatile unsigned long *
extern inline unsigned int __inb(unsigned long addr)
{
@@ -491,11 +493,21 @@
return *(vuip) (addr + CIA_DENSE_MEM);
}
+extern inline unsigned long __readq(unsigned long addr)
+{
+ return *(vulp) (addr + CIA_DENSE_MEM);
+}
+
extern inline void __writel(unsigned int b, unsigned long addr)
{
*(vuip) (addr + CIA_DENSE_MEM) = b;
}
+extern inline void __writeq(unsigned long b, unsigned long addr)
+{
+ *(vulp) (addr + CIA_DENSE_MEM) = b;
+}
+
#define inb(port) \
(__builtin_constant_p((port))?__inb(port):_inb(port))
@@ -503,9 +515,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 cia_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