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
dc1493af
Commit
dc1493af
authored
Jun 29, 2008
by
Jesper Nilsson
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'cris_debug_port_fix' into cris
parents
bdb144b6
3aa30df3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
7 deletions
+13
-7
arch/cris/arch-v10/kernel/debugport.c
arch/cris/arch-v10/kernel/debugport.c
+13
-7
No files found.
arch/cris/arch-v10/kernel/debugport.c
View file @
dc1493af
...
@@ -426,12 +426,18 @@ static int dummy_write(struct tty_struct * tty,
...
@@ -426,12 +426,18 @@ static int dummy_write(struct tty_struct * tty,
return
count
;
return
count
;
}
}
static
int
static
int
dummy_write_room
(
struct
tty_struct
*
tty
)
dummy_write_room
(
struct
tty_struct
*
tty
)
{
{
return
8192
;
return
8192
;
}
}
static
const
struct
tty_operations
dummy_ops
=
{
.
open
=
dummy_open
,
.
close
=
dummy_close
,
.
write
=
dummy_write
,
.
write_room
=
dummy_write_room
,
};
void
__init
void
__init
init_dummy_console
(
void
)
init_dummy_console
(
void
)
{
{
...
@@ -444,14 +450,14 @@ init_dummy_console(void)
...
@@ -444,14 +450,14 @@ init_dummy_console(void)
dummy_driver
.
type
=
TTY_DRIVER_TYPE_SERIAL
;
dummy_driver
.
type
=
TTY_DRIVER_TYPE_SERIAL
;
dummy_driver
.
subtype
=
SERIAL_TYPE_NORMAL
;
dummy_driver
.
subtype
=
SERIAL_TYPE_NORMAL
;
dummy_driver
.
init_termios
=
tty_std_termios
;
dummy_driver
.
init_termios
=
tty_std_termios
;
/* Normally B9600 default... */
dummy_driver
.
init_termios
.
c_cflag
=
dummy_driver
.
init_termios
.
c_cflag
=
B115200
|
CS8
|
CREAD
|
HUPCL
|
CLOCAL
;
/* is normally B9600 default... */
B115200
|
CS8
|
CREAD
|
HUPCL
|
CLOCAL
;
dummy_driver
.
flags
=
TTY_DRIVER_REAL_RAW
|
TTY_DRIVER_DYNAMIC_DEV
;
dummy_driver
.
flags
=
TTY_DRIVER_REAL_RAW
|
TTY_DRIVER_DYNAMIC_DEV
;
dummy_driver
.
init_termios
.
c_ispeed
=
115200
;
dummy_driver
.
init_termios
.
c_ospeed
=
115200
;
dummy_driver
.
open
=
dummy_open
;
dummy_driver
.
ops
=
&
dummy_ops
;
dummy_driver
.
close
=
dummy_close
;
dummy_driver
.
write
=
dummy_write
;
dummy_driver
.
write_room
=
dummy_write_room
;
if
(
tty_register_driver
(
&
dummy_driver
))
if
(
tty_register_driver
(
&
dummy_driver
))
panic
(
"Couldn't register dummy serial driver
\n
"
);
panic
(
"Couldn't register dummy serial driver
\n
"
);
}
}
...
...
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