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

Subversion Repositories or1k

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1275 phoenix
#ifndef ITE8172G_H
2
#define ITE8172G_H
3
 
4
#include <linux/config.h>
5
#include <linux/pci.h>
6
#include <linux/ide.h>
7
 
8
static u8 it8172_ratemask(ide_drive_t *drive);
9
static u8 it8172_ratefilter(ide_drive_t *drive, u8 speed);
10
static void it8172_tune_drive(ide_drive_t *drive, u8 pio);
11
static u8 it8172_dma_2_pio(u8 xfer_rate);
12
static int it8172_tune_chipset(ide_drive_t *drive, u8 xferspeed);
13
#ifdef CONFIG_BLK_DEV_IDEDMA
14
static int it8172_config_chipset_for_dma(ide_drive_t *drive);
15
#endif
16
 
17
static void init_setup_it8172(struct pci_dev *, ide_pci_device_t *);
18
static unsigned int init_chipset_it8172(struct pci_dev *, const char *);
19
static void init_hwif_it8172(ide_hwif_t *);
20
static void init_dma_it8172(ide_hwif_t *, unsigned long);
21
 
22
static ide_pci_device_t it8172_chipsets[] __devinitdata = {
23
        {       /* 0 */
24
                .vendor         = PCI_VENDOR_ID_ITE,
25
                .device         = PCI_DEVICE_ID_ITE_IT8172G,
26
                .name           = "IT8172G",
27
                .init_setup     = init_setup_it8172,
28
                .init_chipset   = init_chipset_it8172,
29
                .init_iops      = NULL,
30
                .init_hwif      = init_hwif_it8172,
31
                .init_dma       = init_dma_it8172,
32
                .channels       = 2,
33
                .autodma        = AUTODMA,
34
                .enablebits     = {{0x00,0x00,0x00}, {0x40,0x00,0x01}},
35
                .bootable       = ON_BOARD,
36
                .extra          = 0,
37
        },{
38
                .vendor         = 0,
39
                .device         = 0,
40
                .channels       = 0,
41
                .bootable       = EOL,
42
        }
43
};
44
 
45
#endif /* ITE8172G_H */

powered by: WebSVN 2.1.0

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