diff options
| author | Stephen Rothwell <sfr@canb.auug.org.au> | 2005-11-07 20:20:34 -0500 |
|---|---|---|
| committer | Paul Mackerras <paulus@samba.org> | 2005-11-07 20:20:34 -0500 |
| commit | b354cab0763080df3735dcd0c64a545f266cc9e2 (patch) | |
| tree | 4fa1fd9cf5053a0f4cc5f49ba66126ef23e182e7 | |
| parent | 515729ece1e515546e9f49713b012cfbc41747ed (diff) | |
powerpc: merge ide.h
This is very simple with it being almost all ppc32 with just a couple
of common defines.
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
| -rw-r--r-- | include/asm-powerpc/ide.h (renamed from include/asm-ppc/ide.h) | 29 | ||||
| -rw-r--r-- | include/asm-ppc64/ide.h | 30 |
2 files changed, 17 insertions, 42 deletions
diff --git a/include/asm-ppc/ide.h b/include/asm-powerpc/ide.h index 7d6e6599fac4..da5f640480cf 100644 --- a/include/asm-ppc/ide.h +++ b/include/asm-powerpc/ide.h | |||
| @@ -1,24 +1,27 @@ | |||
| 1 | /* | 1 | /* |
| 2 | * linux/include/asm-ppc/ide.h | 2 | * Copyright (C) 1994-1996 Linus Torvalds & authors |
| 3 | * | 3 | * |
| 4 | * Copyright (C) 1994-1996 Linus Torvalds & authors */ | 4 | * This file contains the powerpc architecture specific IDE code. |
| 5 | |||
| 6 | /* | ||
| 7 | * This file contains the ppc architecture specific IDE code. | ||
| 8 | */ | 5 | */ |
| 9 | 6 | #ifndef _ASM_POWERPC_IDE_H | |
| 10 | #ifndef __ASMPPC_IDE_H | 7 | #define _ASM_POWERPC_IDE_H |
| 11 | #define __ASMPPC_IDE_H | ||
| 12 | 8 | ||
| 13 | #ifdef __KERNEL__ | 9 | #ifdef __KERNEL__ |
| 14 | 10 | ||
| 11 | #ifndef __powerpc64__ | ||
| 15 | #include <linux/sched.h> | 12 | #include <linux/sched.h> |
| 16 | #include <asm/mpc8xx.h> | 13 | #include <asm/mpc8xx.h> |
| 14 | #endif | ||
| 17 | 15 | ||
| 18 | #ifndef MAX_HWIFS | 16 | #ifndef MAX_HWIFS |
| 17 | #ifdef __powerpc64__ | ||
| 18 | #define MAX_HWIFS 10 | ||
| 19 | #else | ||
| 19 | #define MAX_HWIFS 8 | 20 | #define MAX_HWIFS 8 |
| 20 | #endif | 21 | #endif |
| 22 | #endif | ||
| 21 | 23 | ||
| 24 | #ifndef __powerpc64__ | ||
| 22 | #include <linux/config.h> | 25 | #include <linux/config.h> |
| 23 | #include <linux/hdreg.h> | 26 | #include <linux/hdreg.h> |
| 24 | #include <linux/ioport.h> | 27 | #include <linux/ioport.h> |
| @@ -59,9 +62,6 @@ static __inline__ unsigned long ide_default_io_base(int index) | |||
| 59 | return 0; | 62 | return 0; |
| 60 | } | 63 | } |
| 61 | 64 | ||
| 62 | #define IDE_ARCH_OBSOLETE_INIT | ||
| 63 | #define ide_default_io_ctl(base) ((base) + 0x206) /* obsolete */ | ||
| 64 | |||
| 65 | #ifdef CONFIG_PCI | 65 | #ifdef CONFIG_PCI |
| 66 | #define ide_init_default_irq(base) (0) | 66 | #define ide_init_default_irq(base) (0) |
| 67 | #else | 67 | #else |
| @@ -73,6 +73,11 @@ static __inline__ unsigned long ide_default_io_base(int index) | |||
| 73 | #define ide_ack_intr(hwif) (hwif->hw.ack_intr ? hwif->hw.ack_intr(hwif) : 1) | 73 | #define ide_ack_intr(hwif) (hwif->hw.ack_intr ? hwif->hw.ack_intr(hwif) : 1) |
| 74 | #endif | 74 | #endif |
| 75 | 75 | ||
| 76 | #endif /* __powerpc64__ */ | ||
| 77 | |||
| 78 | #define IDE_ARCH_OBSOLETE_INIT | ||
| 79 | #define ide_default_io_ctl(base) ((base) + 0x206) /* obsolete */ | ||
| 80 | |||
| 76 | #endif /* __KERNEL__ */ | 81 | #endif /* __KERNEL__ */ |
| 77 | 82 | ||
| 78 | #endif /* __ASMPPC_IDE_H */ | 83 | #endif /* _ASM_POWERPC_IDE_H */ |
diff --git a/include/asm-ppc64/ide.h b/include/asm-ppc64/ide.h deleted file mode 100644 index 0aae1c590c0e..000000000000 --- a/include/asm-ppc64/ide.h +++ /dev/null | |||
| @@ -1,30 +0,0 @@ | |||
| 1 | /* | ||
| 2 | * linux/include/asm-ppc/ide.h | ||
| 3 | * | ||
| 4 | * Copyright (C) 1994-1996 Linus Torvalds & authors | ||
| 5 | * | ||
| 6 | * This program is free software; you can redistribute it and/or | ||
| 7 | * modify it under the terms of the GNU General Public License | ||
| 8 | * as published by the Free Software Foundation; either version | ||
| 9 | * 2 of the License, or (at your option) any later version. | ||
| 10 | */ | ||
| 11 | |||
| 12 | /* | ||
| 13 | * This file contains the ppc64 architecture specific IDE code. | ||
| 14 | */ | ||
| 15 | |||
| 16 | #ifndef __ASMPPC64_IDE_H | ||
| 17 | #define __ASMPPC64_IDE_H | ||
| 18 | |||
| 19 | #ifdef __KERNEL__ | ||
| 20 | |||
| 21 | #ifndef MAX_HWIFS | ||
| 22 | # define MAX_HWIFS 10 | ||
| 23 | #endif | ||
| 24 | |||
| 25 | #define IDE_ARCH_OBSOLETE_INIT | ||
| 26 | #define ide_default_io_ctl(base) ((base) + 0x206) /* obsolete */ | ||
| 27 | |||
| 28 | #endif /* __KERNEL__ */ | ||
| 29 | |||
| 30 | #endif /* __ASMPPC64_IDE_H */ | ||
