linux-old/drivers/ide/pci/alim15x3.h
<<
>>
Prefs
   1#ifndef ALI15X3_H
   2#define ALI15X3_H
   3
   4#include <linux/config.h>
   5#include <linux/pci.h>
   6#include <linux/ide.h>
   7
   8#define DISPLAY_ALI_TIMINGS
   9
  10#if defined(DISPLAY_ALI_TIMINGS) && defined(CONFIG_PROC_FS)
  11#include <linux/stat.h>
  12#include <linux/proc_fs.h>
  13
  14static u8 ali_proc;
  15
  16static int ali_get_info(char *, char **, off_t, int);
  17
  18static ide_pci_host_proc_t ali_procs[] __initdata = {
  19        {
  20                .name           = "ali",
  21                .set            = 1,
  22                .get_info       = ali_get_info,
  23                .parent         = NULL,
  24        },
  25};
  26#endif /* DISPLAY_ALI_TIMINGS && CONFIG_PROC_FS */
  27
  28static unsigned int init_chipset_ali15x3(struct pci_dev *, const char *);
  29static void init_hwif_common_ali15x3(ide_hwif_t *);
  30static void init_hwif_ali15x3(ide_hwif_t *);
  31static void init_dma_ali15x3(ide_hwif_t *, unsigned long);
  32
  33static ide_pci_device_t ali15x3_chipsets[] __devinitdata = {
  34        {       /* 0 */
  35                .vendor         = PCI_VENDOR_ID_AL,
  36                .device         = PCI_DEVICE_ID_AL_M5229,
  37                .name           = "ALI15X3",
  38                .init_chipset   = init_chipset_ali15x3,
  39                .init_iops      = NULL,
  40                .init_hwif      = init_hwif_ali15x3,
  41                .init_dma       = init_dma_ali15x3,
  42                .channels       = 2,
  43                .autodma        = AUTODMA,
  44                .enablebits     = {{0x00,0x00,0x00}, {0x00,0x00,0x00}},
  45                .bootable       = ON_BOARD,
  46                .extra          = 0
  47        },{
  48                .vendor         = 0,
  49                .device         = 0,
  50                .channels       = 0,
  51                .bootable       = EOL,
  52        }
  53};
  54
  55#endif /* ALI15X3 */
  56
lxr.linux.no kindly hosted by Redpill Linpro AS, provider of Linux consulting and operations services since 1995.