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

Subversion Repositories or1k

[/] [or1k/] [tags/] [LINUX_2_4_26_OR32/] [linux/] [linux-2.4/] [include/] [linux/] [pci_gameport.h] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1275 phoenix
#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
 
14
struct 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
 
23
struct 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)
32
extern struct pcigame *pcigame_attach(struct pci_dev *dev, int type);
33
extern 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

powered by: WebSVN 2.1.0

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