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
f2999e4e
Commit
f2999e4e
authored
Apr 25, 2006
by
David Woodhouse
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Export only the appropriate GS_xxx flags to userspace from generic_serial.h
Signed-off-by:
David Woodhouse
<
dwmw2@infradead.org
>
parent
25478bb2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
include/linux/generic_serial.h
include/linux/generic_serial.h
+4
-2
No files found.
include/linux/generic_serial.h
View file @
f2999e4e
...
@@ -12,6 +12,7 @@
...
@@ -12,6 +12,7 @@
#ifndef GENERIC_SERIAL_H
#ifndef GENERIC_SERIAL_H
#define GENERIC_SERIAL_H
#define GENERIC_SERIAL_H
#ifdef __KERNEL__
#include <linux/mutex.h>
#include <linux/mutex.h>
struct
real_driver
{
struct
real_driver
{
...
@@ -54,6 +55,7 @@ struct gs_port {
...
@@ -54,6 +55,7 @@ struct gs_port {
spinlock_t
driver_lock
;
spinlock_t
driver_lock
;
};
};
#endif
/* __KERNEL__ */
/* Flags */
/* Flags */
/* Warning: serial.h defines some ASYNC_ flags, they say they are "only"
/* Warning: serial.h defines some ASYNC_ flags, they say they are "only"
...
@@ -75,7 +77,7 @@ struct gs_port {
...
@@ -75,7 +77,7 @@ struct gs_port {
#define GS_DEBUG_FLOW 0x00000020
#define GS_DEBUG_FLOW 0x00000020
#define GS_DEBUG_WRITE 0x00000040
#define GS_DEBUG_WRITE 0x00000040
#ifdef __KERNEL__
void
gs_put_char
(
struct
tty_struct
*
tty
,
unsigned
char
ch
);
void
gs_put_char
(
struct
tty_struct
*
tty
,
unsigned
char
ch
);
int
gs_write
(
struct
tty_struct
*
tty
,
int
gs_write
(
struct
tty_struct
*
tty
,
const
unsigned
char
*
buf
,
int
count
);
const
unsigned
char
*
buf
,
int
count
);
...
@@ -94,5 +96,5 @@ int gs_init_port(struct gs_port *port);
...
@@ -94,5 +96,5 @@ int gs_init_port(struct gs_port *port);
int
gs_setserial
(
struct
gs_port
*
port
,
struct
serial_struct
__user
*
sp
);
int
gs_setserial
(
struct
gs_port
*
port
,
struct
serial_struct
__user
*
sp
);
int
gs_getserial
(
struct
gs_port
*
port
,
struct
serial_struct
__user
*
sp
);
int
gs_getserial
(
struct
gs_port
*
port
,
struct
serial_struct
__user
*
sp
);
void
gs_got_break
(
struct
gs_port
*
port
);
void
gs_got_break
(
struct
gs_port
*
port
);
#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