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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [linux/] [linux-2.4/] [drivers/] [ide/] [pci/] [via82cxxx.h] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1275 phoenix
#ifndef VIA82CXXX_H
2
#define VIA82CXXX_H
3
 
4
#include <linux/config.h>
5
#include <linux/pci.h>
6
#include <linux/ide.h>
7
 
8
#define DISPLAY_VIA_TIMINGS
9
 
10
#if defined(DISPLAY_VIA_TIMINGS) && defined(CONFIG_PROC_FS)
11
#include <linux/stat.h>
12
#include <linux/proc_fs.h>
13
 
14
static u8 via_proc;
15
 
16
static int via_get_info(char *, char **, off_t, int);
17
 
18
static ide_pci_host_proc_t via_procs[] __initdata = {
19
        {
20
                .name           = "via",
21
                .set            = 1,
22
                .get_info       = via_get_info,
23
                .parent         = NULL,
24
        },
25
};
26
#endif /* DISPLAY_VIA_TIMINGS && CONFIG_PROC_FS */
27
 
28
static unsigned int init_chipset_via82cxxx(struct pci_dev *, const char *);
29
static void init_hwif_via82cxxx(ide_hwif_t *);
30
static void init_dma_via82cxxx(ide_hwif_t *, unsigned long);
31
 
32
static ide_pci_device_t via82cxxx_chipsets[] __devinitdata = {
33
        {       /* 0 */
34
                .vendor         = PCI_VENDOR_ID_VIA,
35
                .device         = PCI_DEVICE_ID_VIA_82C576_1,
36
                .name           = "VP_IDE",
37
                .init_chipset   = init_chipset_via82cxxx,
38
                .init_iops      = NULL,
39
                .init_hwif      = init_hwif_via82cxxx,
40
                .init_dma       = init_dma_via82cxxx,
41
                .channels       = 2,
42
                .autodma        = NOAUTODMA,
43
                .enablebits     = {{0x40,0x02,0x02}, {0x40,0x01,0x01}},
44
                .bootable       = ON_BOARD,
45
                .extra          = 0,
46
        },{     /* 1 */
47
                .vendor         = PCI_VENDOR_ID_VIA,
48
                .device         = PCI_DEVICE_ID_VIA_82C586_1,
49
                .name           = "VP_IDE",
50
                .init_chipset   = init_chipset_via82cxxx,
51
                .init_iops      = NULL,
52
                .init_hwif      = init_hwif_via82cxxx,
53
                .init_dma       = init_dma_via82cxxx,
54
                .channels       = 2,
55
                .autodma        = NOAUTODMA,
56
                .enablebits     = {{0x40,0x02,0x02}, {0x40,0x01,0x01}},
57
                .bootable       = ON_BOARD,
58
                .extra          = 0,
59
        },{
60
                .vendor         = 0,
61
                .device         = 0,
62
                .channels       = 0,
63
                .bootable       = EOL,
64
        }
65
};
66
 
67
#endif /* VIA82CXXX_H */

powered by: WebSVN 2.1.0

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