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

Subversion Repositories or1k

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1275 phoenix
#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
#if defined(DISPLAY_HPT34X_TIMINGS) && defined(CONFIG_PROC_FS)
17
#include <linux/stat.h>
18
#include <linux/proc_fs.h>
19
 
20
static u8 hpt34x_proc;
21
 
22
static int hpt34x_get_info(char *, char **, off_t, int);
23
 
24
static ide_pci_host_proc_t hpt34x_procs[] __initdata = {
25
        {
26
                .name           = "hpt34x",
27
                .set            = 1,
28
                .get_info       = hpt34x_get_info,
29
                .parent         = NULL,
30
        },
31
};
32
#endif  /* defined(DISPLAY_HPT34X_TIMINGS) && defined(CONFIG_PROC_FS) */
33
 
34
static unsigned int init_chipset_hpt34x(struct pci_dev *, const char *);
35
static void init_hwif_hpt34x(ide_hwif_t *);
36
static void init_dma_hpt34x(ide_hwif_t *, unsigned long);
37
 
38
static ide_pci_device_t hpt34x_chipsets[] __devinitdata = {
39
        {       /* 0 */
40
                .vendor         = PCI_VENDOR_ID_TTI,
41
                .device         = PCI_DEVICE_ID_TTI_HPT343,
42
                .name           = "HPT34X",
43
                .init_chipset   = init_chipset_hpt34x,
44
                .init_iops      = NULL,
45
                .init_hwif      = init_hwif_hpt34x,
46
                .init_dma       = init_dma_hpt34x,
47
                .channels       = 2,
48
                .autodma        = NOAUTODMA,
49
                .enablebits     = {{0x00,0x00,0x00}, {0x00,0x00,0x00}},
50
                .bootable       = NEVER_BOARD,
51
                .extra          = 16
52
        },{
53
                .vendor         = 0,
54
                .device         = 0,
55
                .channels       = 0,
56
                .bootable       = EOL,
57
        }
58
};
59
 
60
#endif /* HPT34X_H */

powered by: WebSVN 2.1.0

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