Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
c20f0856
Commit
c20f0856
authored
Jul 23, 2002
by
Geert Uytterhoeven
Committed by
Linus Torvalds
Jul 23, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] M68k update (part 48)
console.wait_key was removed
parent
65458d5a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
48 deletions
+5
-48
arch/m68k/mac/debug.c
arch/m68k/mac/debug.c
+0
-17
drivers/char/amiserial.c
drivers/char/amiserial.c
+5
-31
No files found.
arch/m68k/mac/debug.c
View file @
c20f0856
...
...
@@ -235,20 +235,6 @@ void mac_scca_console_write (struct console *co, const char *str,
}
}
#if defined(CONFIG_SERIAL_CONSOLE) || defined(DEBUG_SERIAL)
int
mac_sccb_console_wait_key
(
struct
console
*
co
)
{
int
i
;
do
{
for
(
i
=
uSEC
;
i
>
0
;
--
i
)
barrier
();
}
while
(
!
(
scc
.
cha_b_ctrl
&
0x01
)
);
/* wait for rx buf filled */
for
(
i
=
uSEC
;
i
>
0
;
--
i
)
barrier
();
return
(
scc
.
cha_b_data
);
}
#endif
/* The following two functions do a quick'n'dirty initialization of the MFP or
* SCC serial ports. They're used by the debugging interface, kgdb, and the
...
...
@@ -390,9 +376,6 @@ void __init mac_debug_init(void)
/* Mac printer port */
mac_init_scc_port
(
B9600
|
CS8
,
1
);
mac_console_driver
.
write
=
mac_sccb_console_write
;
#ifdef CONFIG_SERIAL_CONSOLE
mac_console_driver
.
wait_key
=
mac_sccb_console_wait_key
;
#endif
scc_port
=
1
;
}
#endif
...
...
drivers/char/amiserial.c
View file @
c20f0856
...
...
@@ -2306,43 +2306,17 @@ static void serial_console_write(struct console *co, const char *s,
custom
.
intena
=
IF_SETCLR
|
(
intena
&
IF_TBE
);
}
/*
* Receive character from the serial port
*/
static
int
serial_console_wait_key
(
struct
console
*
co
)
{
unsigned
short
intena
=
custom
.
intenar
;
int
ch
;
custom
.
intena
=
IF_RBF
;
while
(
!
(
custom
.
intreqr
&
IF_RBF
))
barrier
();
ch
=
custom
.
serdatr
&
0xff
;
custom
.
intreq
=
IF_RBF
;
custom
.
intena
=
IF_SETCLR
|
(
intena
&
IF_RBF
);
return
ch
;
}
static
kdev_t
serial_console_device
(
struct
console
*
c
)
{
return
mk_kdev
(
TTY_MAJOR
,
64
);
}
static
struct
console
sercons
=
{
"ttyS"
,
serial_console_write
,
NULL
,
serial_console_device
,
serial_console_wait_key
,
NULL
,
NULL
,
CON_PRINTBUFFER
,
-
1
,
0
,
NULL
.
name
=
"ttyS"
,
.
write
=
serial_console_write
,
.
device
=
serial_console_device
,
.
flags
=
CON_PRINTBUFFER
,
.
index
=
-
1
,
};
/*
...
...
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