pci_gameport.h
上传用户:jlfgdled
上传日期:2013-04-10
资源大小:33168k
文件大小:1k
源码类别:

Linux/Unix编程

开发平台:

Unix_Linux

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