1#ifndef __LINUX_PCI_GAMEPORT_H 2#define __LINUX_PCI_GAMEPORT_H 3 4/* 5 * Public interfaces for attaching a PCI gameport directly to the 6 * soundcard when it shares the same PCI ident 7 */ 8 9#define PCIGAME_4DWAVE 0 10#define PCIGAME_VORTEX 1 11#define PCIGAME_VORTEX2 2 12 13 14struct pcigame_data { 15 int gcr; /* Gameport control register */ 16 int legacy; /* Legacy port location */ 17 int axes; /* Axes start */ 18 int axsize; /* Axis field size */ 19 int axmax; /* Axis field max value */ 20 int adcmode; /* Value to enable ADC mode in GCR */ 21}; 22 23struct pcigame { 24 struct gameport gameport; 25 struct pci_dev *dev; 26 unsigned char *base; 27 struct pcigame_data *data; 28}; 29 30 31#if defined(CONFIG_INPUT_PCIGAME) || defined(CONFIG_INPUT_PCIGAME_MODULE) 32extern struct pcigame *pcigame_attach(struct pci_dev *dev, int type); 33extern void pcigame_detach(struct pcigame *game); 34#else 35#define pcigame_attach(a,b) NULL 36#define pcigame_detach(a) 37#endif 38 39#endif 40