blob: 3958726664bad268c0e185a462f6859bfe3e67f5 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001/*
2 * linux/include/asm-m68k/ide.h
3 *
4 * Copyright (C) 1994-1996 Linus Torvalds & authors
5 */
6
7/* Copyright(c) 1996 Kars de Jong */
8/* Based on the ide driver from 1.2.13pl8 */
9
10/*
11 * Credits (alphabetical):
12 *
13 * - Bjoern Brauel
14 * - Kars de Jong
15 * - Torsten Ebeling
16 * - Dwight Engen
17 * - Thorsten Floeck
18 * - Roman Hodek
19 * - Guenther Kelleter
20 * - Chris Lawrence
21 * - Michael Rausch
22 * - Christian Sauer
23 * - Michael Schmitz
24 * - Jes Soerensen
25 * - Michael Thurm
26 * - Geert Uytterhoeven
27 */
28
29#ifndef _M68K_IDE_H
30#define _M68K_IDE_H
31
32#ifdef __KERNEL__
Linus Torvalds1da177e2005-04-16 15:20:36 -070033#include <asm/setup.h>
34#include <asm/io.h>
35#include <asm/irq.h>
36
Linus Torvalds1da177e2005-04-16 15:20:36 -070037/*
38 * Get rid of defs from io.h - ide has its private and conflicting versions
39 * Since so far no single m68k platform uses ISA/PCI I/O space for IDE, we
40 * always use the `raw' MMIO versions
41 */
Linus Torvalds1da177e2005-04-16 15:20:36 -070042#undef readb
43#undef readw
Linus Torvalds1da177e2005-04-16 15:20:36 -070044#undef writeb
45#undef writew
Linus Torvalds1da177e2005-04-16 15:20:36 -070046
Linus Torvalds1da177e2005-04-16 15:20:36 -070047#define readb in_8
48#define readw in_be16
49#define __ide_mm_insw(port, addr, n) raw_insw((u16 *)port, addr, n)
Linus Torvalds1da177e2005-04-16 15:20:36 -070050#define __ide_mm_insl(port, addr, n) raw_insl((u32 *)port, addr, n)
51#define writeb(val, port) out_8(port, val)
52#define writew(val, port) out_be16(port, val)
53#define __ide_mm_outsw(port, addr, n) raw_outsw((u16 *)port, addr, n)
Linus Torvalds1da177e2005-04-16 15:20:36 -070054#define __ide_mm_outsl(port, addr, n) raw_outsl((u32 *)port, addr, n)
Linus Torvalds1da177e2005-04-16 15:20:36 -070055
Linus Torvalds1da177e2005-04-16 15:20:36 -070056#endif /* __KERNEL__ */
57#endif /* _M68K_IDE_H */