xref: /OK3568_Linux_fs/kernel/arch/powerpc/include/asm/ide.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun /* SPDX-License-Identifier: GPL-2.0 */
2*4882a593Smuzhiyun /*
3*4882a593Smuzhiyun  *  Copyright (C) 1994-1996 Linus Torvalds & authors
4*4882a593Smuzhiyun  *
5*4882a593Smuzhiyun  *  This file contains the powerpc architecture specific IDE code.
6*4882a593Smuzhiyun  */
7*4882a593Smuzhiyun #ifndef _ASM_POWERPC_IDE_H
8*4882a593Smuzhiyun #define _ASM_POWERPC_IDE_H
9*4882a593Smuzhiyun 
10*4882a593Smuzhiyun #include <linux/compiler.h>
11*4882a593Smuzhiyun #include <asm/io.h>
12*4882a593Smuzhiyun 
13*4882a593Smuzhiyun #define __ide_mm_insw(p, a, c)	readsw((void __iomem *)(p), (a), (c))
14*4882a593Smuzhiyun #define __ide_mm_insl(p, a, c)	readsl((void __iomem *)(p), (a), (c))
15*4882a593Smuzhiyun #define __ide_mm_outsw(p, a, c)	writesw((void __iomem *)(p), (a), (c))
16*4882a593Smuzhiyun #define __ide_mm_outsl(p, a, c)	writesl((void __iomem *)(p), (a), (c))
17*4882a593Smuzhiyun 
18*4882a593Smuzhiyun #endif /* _ASM_POWERPC_IDE_H */
19