aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/gameport.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/gameport.h')
-rw-r--r--include/linux/gameport.h26
1 files changed, 3 insertions, 23 deletions
diff --git a/include/linux/gameport.h b/include/linux/gameport.h
index b986be513406..bb7de09e8d57 100644
--- a/include/linux/gameport.h
+++ b/include/linux/gameport.h
@@ -1,6 +1,3 @@
1#ifndef _GAMEPORT_H
2#define _GAMEPORT_H
3
4/* 1/*
5 * Copyright (c) 1999-2002 Vojtech Pavlik 2 * Copyright (c) 1999-2002 Vojtech Pavlik
6 * 3 *
@@ -8,8 +5,9 @@
8 * under the terms of the GNU General Public License version 2 as published by 5 * under the terms of the GNU General Public License version 2 as published by
9 * the Free Software Foundation. 6 * the Free Software Foundation.
10 */ 7 */
8#ifndef _GAMEPORT_H
9#define _GAMEPORT_H
11 10
12#ifdef __KERNEL__
13#include <asm/io.h> 11#include <asm/io.h>
14#include <linux/types.h> 12#include <linux/types.h>
15#include <linux/list.h> 13#include <linux/list.h>
@@ -17,6 +15,7 @@
17#include <linux/device.h> 15#include <linux/device.h>
18#include <linux/timer.h> 16#include <linux/timer.h>
19#include <linux/slab.h> 17#include <linux/slab.h>
18#include <uapi/linux/gameport.h>
20 19
21struct gameport { 20struct gameport {
22 21
@@ -166,24 +165,6 @@ void gameport_unregister_driver(struct gameport_driver *drv);
166 module_driver(__gameport_driver, gameport_register_driver, \ 165 module_driver(__gameport_driver, gameport_register_driver, \
167 gameport_unregister_driver) 166 gameport_unregister_driver)
168 167
169#endif /* __KERNEL__ */
170
171#define GAMEPORT_MODE_DISABLED 0
172#define GAMEPORT_MODE_RAW 1
173#define GAMEPORT_MODE_COOKED 2
174
175#define GAMEPORT_ID_VENDOR_ANALOG 0x0001
176#define GAMEPORT_ID_VENDOR_MADCATZ 0x0002
177#define GAMEPORT_ID_VENDOR_LOGITECH 0x0003
178#define GAMEPORT_ID_VENDOR_CREATIVE 0x0004
179#define GAMEPORT_ID_VENDOR_GENIUS 0x0005
180#define GAMEPORT_ID_VENDOR_INTERACT 0x0006
181#define GAMEPORT_ID_VENDOR_MICROSOFT 0x0007
182#define GAMEPORT_ID_VENDOR_THRUSTMASTER 0x0008
183#define GAMEPORT_ID_VENDOR_GRAVIS 0x0009
184#define GAMEPORT_ID_VENDOR_GUILLEMOT 0x000a
185
186#ifdef __KERNEL__
187 168
188static inline void gameport_trigger(struct gameport *gameport) 169static inline void gameport_trigger(struct gameport *gameport)
189{ 170{
@@ -235,5 +216,4 @@ static inline void gameport_set_poll_interval(struct gameport *gameport, unsigne
235void gameport_start_polling(struct gameport *gameport); 216void gameport_start_polling(struct gameport *gameport);
236void gameport_stop_polling(struct gameport *gameport); 217void gameport_stop_polling(struct gameport *gameport);
237 218
238#endif /* __KERNEL__ */
239#endif 219#endif