patch-2.1.110 linux/include/asm-alpha/jensen.h
Next file: linux/include/asm-alpha/lca.h
Previous file: linux/include/asm-alpha/io.h
Back to the patch index
Back to the overall index
- Lines: 34
- Date:
Sun Jul 19 20:44:41 1998
- Orig file:
v2.1.109/linux/include/asm-alpha/jensen.h
- Orig date:
Tue Oct 8 23:54:05 1996
diff -u --recursive --new-file v2.1.109/linux/include/asm-alpha/jensen.h linux/include/asm-alpha/jensen.h
@@ -230,6 +230,17 @@
return *(volatile unsigned int *) ((addr << 7) + EISA_MEM + 0x60);
}
+extern inline unsigned long __readq(unsigned long addr)
+{
+ unsigned long r0, r1;
+ __set_hae(addr);
+ addr &= __HAE_MASK;
+ addr = (addr << 7) + EISA_MEM + 0x60;
+ r0 = *(volatile unsigned int *) (addr);
+ r1 = *(volatile unsigned int *) (addr + (4 << 7));
+ return r1 << 32 | r0;
+}
+
extern inline void __writeb(unsigned short b, unsigned long addr)
{
__set_hae(addr);
@@ -249,6 +260,15 @@
__set_hae(addr);
addr &= __HAE_MASK;
*(volatile unsigned int *) ((addr << 7) + EISA_MEM + 0x60) = b;
+}
+
+extern inline void __writeq(unsigned long b, unsigned long addr)
+{
+ __set_hae(addr);
+ addr &= __HAE_MASK;
+ addr = (addr << 7) + EISA_MEM + 0x60;
+ *(volatile unsigned int *) (addr) = b;
+ *(volatile unsigned int *) (addr + (4 << 7)) = b >> 32;
}
/*
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov