diff options
author | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-16 18:20:36 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-16 18:20:36 -0400 |
commit | 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (patch) | |
tree | 0bba044c4ce775e45a88a51686b5d9f90697ea9d /include/asm-m68k/zorro.h |
Linux-2.6.12-rc2v2.6.12-rc2
Initial git repository build. I'm not bothering with the full history,
even though we have it. We can create a separate "historical" git
archive of that later if we want to, and in the meantime it's about
3.2GB when imported into git - space that would just make the early
git days unnecessarily complicated, when we don't have a lot of good
infrastructure for it.
Let it rip!
Diffstat (limited to 'include/asm-m68k/zorro.h')
-rw-r--r-- | include/asm-m68k/zorro.h | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/include/asm-m68k/zorro.h b/include/asm-m68k/zorro.h new file mode 100644 index 000000000000..cf816588bedb --- /dev/null +++ b/include/asm-m68k/zorro.h | |||
@@ -0,0 +1,45 @@ | |||
1 | #ifndef _ASM_M68K_ZORRO_H | ||
2 | #define _ASM_M68K_ZORRO_H | ||
3 | |||
4 | #include <asm/raw_io.h> | ||
5 | |||
6 | #define z_readb raw_inb | ||
7 | #define z_readw raw_inw | ||
8 | #define z_readl raw_inl | ||
9 | |||
10 | #define z_writeb raw_outb | ||
11 | #define z_writew raw_outw | ||
12 | #define z_writel raw_outl | ||
13 | |||
14 | #define z_memset_io(a,b,c) memset((void *)(a),(b),(c)) | ||
15 | #define z_memcpy_fromio(a,b,c) memcpy((a),(void *)(b),(c)) | ||
16 | #define z_memcpy_toio(a,b,c) memcpy((void *)(a),(b),(c)) | ||
17 | |||
18 | static inline void *z_remap_nocache_ser(unsigned long physaddr, | ||
19 | unsigned long size) | ||
20 | { | ||
21 | return __ioremap(physaddr, size, IOMAP_NOCACHE_SER); | ||
22 | } | ||
23 | |||
24 | static inline void *z_remap_nocache_nonser(unsigned long physaddr, | ||
25 | unsigned long size) | ||
26 | { | ||
27 | return __ioremap(physaddr, size, IOMAP_NOCACHE_NONSER); | ||
28 | } | ||
29 | |||
30 | static inline void *z_remap_writethrough(unsigned long physaddr, | ||
31 | unsigned long size) | ||
32 | { | ||
33 | return __ioremap(physaddr, size, IOMAP_WRITETHROUGH); | ||
34 | } | ||
35 | static inline void *z_remap_fullcache(unsigned long physaddr, | ||
36 | unsigned long size) | ||
37 | { | ||
38 | return __ioremap(physaddr, size, IOMAP_FULL_CACHING); | ||
39 | } | ||
40 | |||
41 | #define z_unmap iounmap | ||
42 | #define z_iounmap iounmap | ||
43 | #define z_ioremap z_remap_nocache_ser | ||
44 | |||
45 | #endif /* _ASM_M68K_ZORRO_H */ | ||