diff options
author | Ralf Baechle <ralf@linux-mips.org> | 1997-09-12 01:29:55 +0000 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 1997-09-12 01:29:55 +0000 |
commit | 545f435ebcfd94a1e7c20b46efe81b4d6ac4e698 (patch) | |
tree | e9ce4bc598d06374bda906f18365984bf22a526a /include/asm-ppc/ide.h | |
parent | 4291a610eef89d0d5c69d9a10ee6560e1aa36c74 (diff) |
Merge with Linux 2.1.55. More bugfixes and goodies from my private
CVS archive.
Diffstat (limited to 'include/asm-ppc/ide.h')
-rw-r--r-- | include/asm-ppc/ide.h | 22 |
1 files changed, 6 insertions, 16 deletions
diff --git a/include/asm-ppc/ide.h b/include/asm-ppc/ide.h index bc16288a8..4cce72d28 100644 --- a/include/asm-ppc/ide.h +++ b/include/asm-ppc/ide.h @@ -21,10 +21,12 @@ #define ide_sti() sti() -#ifdef CONFIG_PREP - typedef unsigned short ide_ioreg_t; +void ide_init_hwif_ports(ide_ioreg_t *p, ide_ioreg_t base, int *irq); +void prep_ide_init_hwif_ports(ide_ioreg_t *p, ide_ioreg_t base, int *irq); +void pmac_ide_init_hwif_ports(ide_ioreg_t *p, ide_ioreg_t base, int *irq); +#if defined(CONFIG_PREP) || defined(CONFIG_CHRP) static __inline__ int ide_default_irq(ide_ioreg_t base) { switch (base) { @@ -49,18 +51,6 @@ static __inline__ ide_ioreg_t ide_default_io_base(int index) } } -static __inline__ void ide_init_hwif_ports (ide_ioreg_t *p, ide_ioreg_t base, int *irq) -{ - ide_ioreg_t port = base; - int i = 8; - - while (i--) - *p++ = port++; - *p++ = base + 0x206; - if (irq != NULL) - *irq = 0; -} - typedef union { unsigned all : 8; /* all of the bits together */ struct { @@ -89,7 +79,8 @@ static __inline__ void ide_release_region (ide_ioreg_t from, unsigned int extent #define ide_fix_driveid(id) do {} while (0) -#endif +#endif /* CONFIG_CHRP || CONFIG_PREP */ + #ifdef CONFIG_PMAC @@ -107,7 +98,6 @@ extern __inline__ ide_ioreg_t ide_default_io_base(int index) return index; } -extern void ide_init_hwif_ports(ide_ioreg_t *p, ide_ioreg_t base, int *irq); typedef union { unsigned all : 8; /* all of the bits together */ |