blob: ce87a4441ca34887f80bb28ad60e3d172e76d232 [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001/* SPDX-License-Identifier: GPL-2.0 */
Linus Torvalds1da177e2005-04-16 15:20:36 -07002/*
Stephen Rothwellb354cab2005-11-08 12:20:34 +11003 * Copyright (C) 1994-1996 Linus Torvalds & authors
Linus Torvalds1da177e2005-04-16 15:20:36 -07004 *
Stephen Rothwellb354cab2005-11-08 12:20:34 +11005 * This file contains the powerpc architecture specific IDE code.
Linus Torvalds1da177e2005-04-16 15:20:36 -07006 */
Stephen Rothwellb354cab2005-11-08 12:20:34 +11007#ifndef _ASM_POWERPC_IDE_H
8#define _ASM_POWERPC_IDE_H
Linus Torvalds1da177e2005-04-16 15:20:36 -07009
Adrian Bunk1f490602008-08-18 21:40:03 +020010#include <linux/compiler.h>
Stephen Rothwell73ea9e12006-09-19 17:30:20 +100011#include <asm/io.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -070012
Benjamin Herrenschmidt4cb3cee2006-11-11 17:25:10 +110013#define __ide_mm_insw(p, a, c) readsw((void __iomem *)(p), (a), (c))
14#define __ide_mm_insl(p, a, c) readsl((void __iomem *)(p), (a), (c))
15#define __ide_mm_outsw(p, a, c) writesw((void __iomem *)(p), (a), (c))
16#define __ide_mm_outsl(p, a, c) writesl((void __iomem *)(p), (a), (c))
Stephen Rothwell73ea9e12006-09-19 17:30:20 +100017
Stephen Rothwellb354cab2005-11-08 12:20:34 +110018#endif /* _ASM_POWERPC_IDE_H */