ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-2.6.6.tar.bz2
[linux-2.6.git] / drivers / ide / pci / hpt34x.h
1 #ifndef HPT34X_H
2 #define HPT34X_H
3
4 #include <linux/config.h>
5 #include <linux/pci.h>
6 #include <linux/ide.h>
7
8 #define HPT343_DEBUG_DRIVE_INFO         0
9
10 #ifndef SPLIT_BYTE
11 #define SPLIT_BYTE(B,H,L)       ((H)=(B>>4), (L)=(B-((B>>4)<<4)))
12 #endif
13
14 #undef DISPLAY_HPT34X_TIMINGS
15
16 static unsigned int init_chipset_hpt34x(struct pci_dev *, const char *);
17 static void init_hwif_hpt34x(ide_hwif_t *);
18
19 static ide_pci_device_t hpt34x_chipsets[] __devinitdata = {
20         {       /* 0 */
21                 .vendor         = PCI_VENDOR_ID_TTI,
22                 .device         = PCI_DEVICE_ID_TTI_HPT343,
23                 .name           = "HPT34X",
24                 .init_chipset   = init_chipset_hpt34x,
25                 .init_iops      = NULL,
26                 .init_hwif      = init_hwif_hpt34x,
27                 .channels       = 2,
28                 .autodma        = NOAUTODMA,
29                 .enablebits     = {{0x00,0x00,0x00}, {0x00,0x00,0x00}},
30                 .bootable       = NEVER_BOARD,
31                 .extra          = 16
32         },{
33                 .vendor         = 0,
34                 .device         = 0,
35                 .channels       = 0,
36                 .bootable       = EOL,
37         }
38 };
39
40 #endif /* HPT34X_H */