ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-2.6.6.tar.bz2
[linux-2.6.git] / drivers / ide / pci / it8172.h
1 #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
21 static ide_pci_device_t it8172_chipsets[] __devinitdata = {
22         {       /* 0 */
23                 .vendor         = PCI_VENDOR_ID_ITE,
24                 .device         = PCI_DEVICE_ID_ITE_IT8172G,
25                 .name           = "IT8172G",
26                 .init_setup     = init_setup_it8172,
27                 .init_chipset   = init_chipset_it8172,
28                 .init_iops      = NULL,
29                 .init_hwif      = init_hwif_it8172,
30                 .channels       = 2,
31                 .autodma        = AUTODMA,
32                 .enablebits     = {{0x00,0x00,0x00}, {0x40,0x00,0x01}},
33                 .bootable       = ON_BOARD,
34                 .extra          = 0,
35         },{
36                 .vendor         = 0,
37                 .device         = 0,
38                 .channels       = 0,
39                 .bootable       = EOL,
40         }
41 };
42
43 #endif /* ITE8172G_H */