patch-2_6_7-vs1_9_1_12
[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                 .name           = "IT8172G",
24                 .init_setup     = init_setup_it8172,
25                 .init_chipset   = init_chipset_it8172,
26                 .init_hwif      = init_hwif_it8172,
27                 .channels       = 2,
28                 .autodma        = AUTODMA,
29                 .enablebits     = {{0x00,0x00,0x00}, {0x40,0x00,0x01}},
30                 .bootable       = ON_BOARD,
31         }
32 };
33
34 #endif /* ITE8172G_H */