Commit b354cab0 authored by Stephen Rothwell's avatar Stephen Rothwell Committed by Paul Mackerras

powerpc: merge ide.h

This is very simple with it being almost all ppc32 with just a couple
of common defines.
Signed-off-by: default avatarStephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
parent 515729ec
/* /*
* linux/include/asm-ppc/ide.h * Copyright (C) 1994-1996 Linus Torvalds & authors
* *
* Copyright (C) 1994-1996 Linus Torvalds & authors */ * This file contains the powerpc architecture specific IDE code.
/*
* This file contains the ppc architecture specific IDE code.
*/ */
#ifndef _ASM_POWERPC_IDE_H
#ifndef __ASMPPC_IDE_H #define _ASM_POWERPC_IDE_H
#define __ASMPPC_IDE_H
#ifdef __KERNEL__ #ifdef __KERNEL__
#ifndef __powerpc64__
#include <linux/sched.h> #include <linux/sched.h>
#include <asm/mpc8xx.h> #include <asm/mpc8xx.h>
#endif
#ifndef MAX_HWIFS #ifndef MAX_HWIFS
#ifdef __powerpc64__
#define MAX_HWIFS 10
#else
#define MAX_HWIFS 8 #define MAX_HWIFS 8
#endif #endif
#endif
#ifndef __powerpc64__
#include <linux/config.h> #include <linux/config.h>
#include <linux/hdreg.h> #include <linux/hdreg.h>
#include <linux/ioport.h> #include <linux/ioport.h>
...@@ -59,9 +62,6 @@ static __inline__ unsigned long ide_default_io_base(int index) ...@@ -59,9 +62,6 @@ static __inline__ unsigned long ide_default_io_base(int index)
return 0; return 0;
} }
#define IDE_ARCH_OBSOLETE_INIT
#define ide_default_io_ctl(base) ((base) + 0x206) /* obsolete */
#ifdef CONFIG_PCI #ifdef CONFIG_PCI
#define ide_init_default_irq(base) (0) #define ide_init_default_irq(base) (0)
#else #else
...@@ -73,6 +73,11 @@ static __inline__ unsigned long ide_default_io_base(int index) ...@@ -73,6 +73,11 @@ static __inline__ unsigned long ide_default_io_base(int index)
#define ide_ack_intr(hwif) (hwif->hw.ack_intr ? hwif->hw.ack_intr(hwif) : 1) #define ide_ack_intr(hwif) (hwif->hw.ack_intr ? hwif->hw.ack_intr(hwif) : 1)
#endif #endif
#endif /* __powerpc64__ */
#define IDE_ARCH_OBSOLETE_INIT
#define ide_default_io_ctl(base) ((base) + 0x206) /* obsolete */
#endif /* __KERNEL__ */ #endif /* __KERNEL__ */
#endif /* __ASMPPC_IDE_H */ #endif /* _ASM_POWERPC_IDE_H */
/*
* linux/include/asm-ppc/ide.h
*
* Copyright (C) 1994-1996 Linus Torvalds & authors
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version
* 2 of the License, or (at your option) any later version.
*/
/*
* This file contains the ppc64 architecture specific IDE code.
*/
#ifndef __ASMPPC64_IDE_H
#define __ASMPPC64_IDE_H
#ifdef __KERNEL__
#ifndef MAX_HWIFS
# define MAX_HWIFS 10
#endif
#define IDE_ARCH_OBSOLETE_INIT
#define ide_default_io_ctl(base) ((base) + 0x206) /* obsolete */
#endif /* __KERNEL__ */
#endif /* __ASMPPC64_IDE_H */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment