OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [linux/] [linux-2.4/] [include/] [asm-arm/] [arch-riscstation/] [ide.h] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1276 phoenix
/*
2
 *  linux/include/asm-arm/arch-rs/ide.h
3
 *
4
 *  Copyright (C) 1997 Russell King
5
 *  Copyright (C) 2002 Ben Dooks
6
 *
7
 * This program is free software; you can redistribute it and/or modify
8
 * it under the terms of the GNU General Public License version 2 as
9
 * published by the Free Software Foundation.
10
 *
11
 *  Modifications:
12
 *   29-07-1998 RMK     Major re-work of IDE architecture specific code
13
 */
14
 
15
#include <asm/irq.h>
16
 
17
/*
18
 * Set up a hw structure for a specified data port, control port and IRQ.
19
 * This should follow whatever the default interface uses.
20
 */
21
 
22
static __inline__ void
23
ide_init_hwif_ports(hw_regs_t *hw, int data_port, int ctrl_port, int *irq)
24
{
25
        ide_ioreg_t reg = (ide_ioreg_t) data_port;
26
        int i;
27
 
28
        memset(hw, 0, sizeof(*hw));
29
 
30
        for (i = IDE_DATA_OFFSET; i <= IDE_STATUS_OFFSET; i++) {
31
                hw->io_ports[i] = reg;
32
                reg += 1;
33
        }
34
        hw->io_ports[IDE_CONTROL_OFFSET] = (ide_ioreg_t) ctrl_port;
35
        if (irq)
36
                *irq = 0;
37
}
38
 
39
/* we initialise our ide devices from the main ide core, due to problems
40
 * with doing it in this function
41
*/
42
 
43
static __inline__ void
44
ide_init_default_hwifs(void)
45
{
46
}

powered by: WebSVN 2.1.0

© copyright 1999-2025 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.