Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
25478bb2
Commit
25478bb2
authored
Apr 25, 2006
by
David Woodhouse
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use __KERNEL__ to hide kernel-private bits of linux/gameport.h
Signed-off-by:
David Woodhouse
<
dwmw2@infradead.org
>
parent
72b9760b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
include/linux/gameport.h
include/linux/gameport.h
+6
-0
No files found.
include/linux/gameport.h
View file @
25478bb2
...
@@ -9,6 +9,7 @@
...
@@ -9,6 +9,7 @@
* the Free Software Foundation.
* the Free Software Foundation.
*/
*/
#ifdef __KERNEL__
#include <asm/io.h>
#include <asm/io.h>
#include <linux/list.h>
#include <linux/list.h>
#include <linux/mutex.h>
#include <linux/mutex.h>
...
@@ -154,6 +155,8 @@ static inline void gameport_register_driver(struct gameport_driver *drv)
...
@@ -154,6 +155,8 @@ static inline void gameport_register_driver(struct gameport_driver *drv)
void
gameport_unregister_driver
(
struct
gameport_driver
*
drv
);
void
gameport_unregister_driver
(
struct
gameport_driver
*
drv
);
#endif
/* __KERNEL__ */
#define GAMEPORT_MODE_DISABLED 0
#define GAMEPORT_MODE_DISABLED 0
#define GAMEPORT_MODE_RAW 1
#define GAMEPORT_MODE_RAW 1
#define GAMEPORT_MODE_COOKED 2
#define GAMEPORT_MODE_COOKED 2
...
@@ -169,6 +172,8 @@ void gameport_unregister_driver(struct gameport_driver *drv);
...
@@ -169,6 +172,8 @@ void gameport_unregister_driver(struct gameport_driver *drv);
#define GAMEPORT_ID_VENDOR_GRAVIS 0x0009
#define GAMEPORT_ID_VENDOR_GRAVIS 0x0009
#define GAMEPORT_ID_VENDOR_GUILLEMOT 0x000a
#define GAMEPORT_ID_VENDOR_GUILLEMOT 0x000a
#ifdef __KERNEL__
static
inline
void
gameport_trigger
(
struct
gameport
*
gameport
)
static
inline
void
gameport_trigger
(
struct
gameport
*
gameport
)
{
{
if
(
gameport
->
trigger
)
if
(
gameport
->
trigger
)
...
@@ -219,4 +224,5 @@ static inline void gameport_set_poll_interval(struct gameport *gameport, unsigne
...
@@ -219,4 +224,5 @@ static inline void gameport_set_poll_interval(struct gameport *gameport, unsigne
void
gameport_start_polling
(
struct
gameport
*
gameport
);
void
gameport_start_polling
(
struct
gameport
*
gameport
);
void
gameport_stop_polling
(
struct
gameport
*
gameport
);
void
gameport_stop_polling
(
struct
gameport
*
gameport
);
#endif
/* __KERNEL__ */
#endif
#endif
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment