diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2008-10-20 17:38:14 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-10-20 17:40:31 -0400 |
commit | e3d2f927f788adcdabc42f8a1616f6cc56c53bbe (patch) | |
tree | ff051e33cff49e23f4c4ef84360f22cf7a1998c9 /arch/parisc/include/asm/ide.h | |
parent | a9b6148d25f15ddfe9d7a7f3e526fdb64e7cf7da (diff) | |
parent | 81e192d6ce303b6792aa38ff35f41a1a7357f23a (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/kyle/parisc-2.6
* git://git.kernel.org/pub/scm/linux/kernel/git/kyle/parisc-2.6:
parisc: convert to generic compat_sys_ptrace
parisc: add rtc platform driver
parisc: initialize unwinder much earlier
parisc: add new syscalls
parisc: hijack jump to start_kernel
parisc: add pdc_coproc_cfg_unlocked and set_firmware_width_unlocked
parisc: move include/asm-parisc to arch/parisc/include/asm
parisc: move pdc_result to real2.S
parisc: unify CCIO_COLLECT_STATS implementation
parisc: add arch/parisc/kernel/.gitignore
parisc: ropes.h - fix <asm-parisc/*> -> <asm/*>
parisc: parisc-agp - fix <asm-parisc/*> -> <asm/*>
Resolve remove/rename conflict: include/asm-parisc/a.out.h is no longer
relevant.
Diffstat (limited to 'arch/parisc/include/asm/ide.h')
-rw-r--r-- | arch/parisc/include/asm/ide.h | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/arch/parisc/include/asm/ide.h b/arch/parisc/include/asm/ide.h new file mode 100644 index 000000000000..81700a2321cf --- /dev/null +++ b/arch/parisc/include/asm/ide.h | |||
@@ -0,0 +1,57 @@ | |||
1 | /* | ||
2 | * linux/include/asm-parisc/ide.h | ||
3 | * | ||
4 | * Copyright (C) 1994-1996 Linus Torvalds & authors | ||
5 | */ | ||
6 | |||
7 | /* | ||
8 | * This file contains the PARISC architecture specific IDE code. | ||
9 | */ | ||
10 | |||
11 | #ifndef __ASM_PARISC_IDE_H | ||
12 | #define __ASM_PARISC_IDE_H | ||
13 | |||
14 | #ifdef __KERNEL__ | ||
15 | |||
16 | /* Generic I/O and MEMIO string operations. */ | ||
17 | |||
18 | #define __ide_insw insw | ||
19 | #define __ide_insl insl | ||
20 | #define __ide_outsw outsw | ||
21 | #define __ide_outsl outsl | ||
22 | |||
23 | static __inline__ void __ide_mm_insw(void __iomem *port, void *addr, u32 count) | ||
24 | { | ||
25 | while (count--) { | ||
26 | *(u16 *)addr = __raw_readw(port); | ||
27 | addr += 2; | ||
28 | } | ||
29 | } | ||
30 | |||
31 | static __inline__ void __ide_mm_insl(void __iomem *port, void *addr, u32 count) | ||
32 | { | ||
33 | while (count--) { | ||
34 | *(u32 *)addr = __raw_readl(port); | ||
35 | addr += 4; | ||
36 | } | ||
37 | } | ||
38 | |||
39 | static __inline__ void __ide_mm_outsw(void __iomem *port, void *addr, u32 count) | ||
40 | { | ||
41 | while (count--) { | ||
42 | __raw_writew(*(u16 *)addr, port); | ||
43 | addr += 2; | ||
44 | } | ||
45 | } | ||
46 | |||
47 | static __inline__ void __ide_mm_outsl(void __iomem *port, void *addr, u32 count) | ||
48 | { | ||
49 | while (count--) { | ||
50 | __raw_writel(*(u32 *)addr, port); | ||
51 | addr += 4; | ||
52 | } | ||
53 | } | ||
54 | |||
55 | #endif /* __KERNEL__ */ | ||
56 | |||
57 | #endif /* __ASM_PARISC_IDE_H */ | ||