tifm_sd: separate command flags, socket flags and register bit masks
[linux-2.6/next.git] / include / asm-parisc / ide.h
blobb27bf7aeb2564697325a3509cee430e9a39a61de
1 /*
2 * linux/include/asm-parisc/ide.h
4 * Copyright (C) 1994-1996 Linus Torvalds & authors
5 */
7 /*
8 * This file contains the PARISC architecture specific IDE code.
9 */
11 #ifndef __ASM_PARISC_IDE_H
12 #define __ASM_PARISC_IDE_H
14 #ifdef __KERNEL__
16 #ifndef MAX_HWIFS
17 #define MAX_HWIFS 2
18 #endif
20 #define IDE_ARCH_OBSOLETE_INIT
21 #define ide_default_io_ctl(base) ((base) + 0x206) /* obsolete */
23 #define ide_request_irq(irq,hand,flg,dev,id) request_irq((irq),(hand),(flg),(dev),(id))
24 #define ide_free_irq(irq,dev_id) free_irq((irq), (dev_id))
25 #define ide_request_region(from,extent,name) request_region((from), (extent), (name))
26 #define ide_release_region(from,extent) release_region((from), (extent))
27 /* Generic I/O and MEMIO string operations. */
29 #define __ide_insw insw
30 #define __ide_insl insl
31 #define __ide_outsw outsw
32 #define __ide_outsl outsl
34 static __inline__ void __ide_mm_insw(void __iomem *port, void *addr, u32 count)
36 while (count--) {
37 *(u16 *)addr = __raw_readw(port);
38 addr += 2;
42 static __inline__ void __ide_mm_insl(void __iomem *port, void *addr, u32 count)
44 while (count--) {
45 *(u32 *)addr = __raw_readl(port);
46 addr += 4;
50 static __inline__ void __ide_mm_outsw(void __iomem *port, void *addr, u32 count)
52 while (count--) {
53 __raw_writew(*(u16 *)addr, port);
54 addr += 2;
58 static __inline__ void __ide_mm_outsl(void __iomem *port, void *addr, u32 count)
60 while (count--) {
61 __raw_writel(*(u32 *)addr, port);
62 addr += 4;
66 #endif /* __KERNEL__ */
68 #endif /* __ASM_PARISC_IDE_H */