nvidia.h 1.29 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56
#ifndef NFORCE_H
#define NFORCE_H

#include <linux/config.h>
#include <linux/pci.h>
#include <linux/ide.h>

#define DISPLAY_NFORCE_TIMINGS

#if defined(DISPLAY_NFORCE_TIMINGS) && defined(CONFIG_PROC_FS)
#include <linux/stat.h>
#include <linux/proc_fs.h>

static u8 nforce_proc;

static int nforce_get_info(char *, char **, off_t, int);

static ide_pci_host_proc_t nforce_procs[] __initdata = {
	{
		name:		"nforce",
		set:		1,
		get_info:	nforce_get_info,
		parent:		NULL,
	},
};
#endif  /* defined(DISPLAY_NFORCE_TIMINGS) && defined(CONFIG_PROC_FS) */

static void init_setup_nforce(struct pci_dev *, ide_pci_device_t *);
static unsigned int init_chipset_nforce(struct pci_dev *, const char *);
static void init_hwif_nforce(ide_hwif_t *);
static void init_dma_nforce(ide_hwif_t *, unsigned long);

static ide_pci_device_t nvidia_chipsets[] __initdata = {
	{
		vendor:		PCI_VENDOR_ID_NVIDIA,
		device:		PCI_DEVICE_ID_NVIDIA_NFORCE_IDE,
		name:		"NFORCE",
		init_setup:	init_setup_nforce,
		init_chipset:	init_chipset_nforce,
		init_iops:	NULL,
		init_hwif:	init_hwif_nforce,
		init_dma:	init_dma_nforce,
		channels:	2,
		autodma:	AUTODMA,
		enablebits:	{{0x50,0x01,0x01}, {0x50,0x02,0x02}},
		bootable:	ON_BOARD,
		extra:		0,
	},{
		vendor:		0,
		device:		0,
		channels:	0,
		bootable:	EOL,
	}
};

#endif /* NFORCE_H */