Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Linux-御风守护者
linux
提交
ce8337cb
L
linux
项目概览
Linux-御风守护者
/
linux
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
L
linux
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
ce8337cb
编写于
1月 21, 2006
作者:
R
Russell King
提交者:
Russell King
1月 21, 2006
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[SERIAL] Don't use ASYNC_ constants with the uart_port structure
Signed-off-by:
N
Russell King
<
rmk+kernel@arm.linux.org.uk
>
上级
f91a3715
变更
8
隐藏空白更改
内联
并排
Showing
8 changed file
with
68 addition
and
68 deletion
+68
-68
drivers/serial/21285.c
drivers/serial/21285.c
+1
-1
drivers/serial/amba-pl010.c
drivers/serial/amba-pl010.c
+2
-2
drivers/serial/clps711x.c
drivers/serial/clps711x.c
+2
-2
drivers/serial/imx.c
drivers/serial/imx.c
+2
-2
drivers/serial/sa1100.c
drivers/serial/sa1100.c
+3
-3
drivers/serial/serial_lh7a40x.c
drivers/serial/serial_lh7a40x.c
+3
-3
drivers/serial/sh-sci.c
drivers/serial/sh-sci.c
+48
-48
drivers/serial/sunsu.c
drivers/serial/sunsu.c
+7
-7
未找到文件。
drivers/serial/21285.c
浏览文件 @
ce8337cb
...
...
@@ -366,7 +366,7 @@ static struct uart_port serial21285_port = {
.
irq
=
NO_IRQ
,
.
fifosize
=
16
,
.
ops
=
&
serial21285_ops
,
.
flags
=
ASYNC
_BOOT_AUTOCONF
,
.
flags
=
UPF
_BOOT_AUTOCONF
,
};
static
void
serial21285_setup_ports
(
void
)
...
...
drivers/serial/amba-pl010.c
浏览文件 @
ce8337cb
...
...
@@ -566,7 +566,7 @@ static struct uart_amba_port amba_ports[UART_NR] = {
.
uartclk
=
14745600
,
.
fifosize
=
16
,
.
ops
=
&
amba_pl010_pops
,
.
flags
=
ASYNC
_BOOT_AUTOCONF
,
.
flags
=
UPF
_BOOT_AUTOCONF
,
.
line
=
0
,
},
.
dtr_mask
=
1
<<
5
,
...
...
@@ -581,7 +581,7 @@ static struct uart_amba_port amba_ports[UART_NR] = {
.
uartclk
=
14745600
,
.
fifosize
=
16
,
.
ops
=
&
amba_pl010_pops
,
.
flags
=
ASYNC
_BOOT_AUTOCONF
,
.
flags
=
UPF
_BOOT_AUTOCONF
,
.
line
=
1
,
},
.
dtr_mask
=
1
<<
7
,
...
...
drivers/serial/clps711x.c
浏览文件 @
ce8337cb
...
...
@@ -410,7 +410,7 @@ static struct uart_port clps711x_ports[UART_NR] = {
.
fifosize
=
16
,
.
ops
=
&
clps711x_pops
,
.
line
=
0
,
.
flags
=
ASYNC
_BOOT_AUTOCONF
,
.
flags
=
UPF
_BOOT_AUTOCONF
,
},
{
.
iobase
=
SYSCON2
,
...
...
@@ -419,7 +419,7 @@ static struct uart_port clps711x_ports[UART_NR] = {
.
fifosize
=
16
,
.
ops
=
&
clps711x_pops
,
.
line
=
1
,
.
flags
=
ASYNC
_BOOT_AUTOCONF
,
.
flags
=
UPF
_BOOT_AUTOCONF
,
}
};
...
...
drivers/serial/imx.c
浏览文件 @
ce8337cb
...
...
@@ -674,7 +674,7 @@ static struct imx_port imx_ports[] = {
.
irq
=
UART1_MINT_RX
,
.
uartclk
=
16000000
,
.
fifosize
=
8
,
.
flags
=
ASYNC
_BOOT_AUTOCONF
,
.
flags
=
UPF
_BOOT_AUTOCONF
,
.
ops
=
&
imx_pops
,
.
line
=
0
,
},
...
...
@@ -690,7 +690,7 @@ static struct imx_port imx_ports[] = {
.
irq
=
UART2_MINT_RX
,
.
uartclk
=
16000000
,
.
fifosize
=
8
,
.
flags
=
ASYNC
_BOOT_AUTOCONF
,
.
flags
=
UPF
_BOOT_AUTOCONF
,
.
ops
=
&
imx_pops
,
.
line
=
1
,
},
...
...
drivers/serial/sa1100.c
浏览文件 @
ce8337cb
...
...
@@ -665,21 +665,21 @@ void __init sa1100_register_uart(int idx, int port)
sa1100_ports
[
idx
].
port
.
membase
=
(
void
__iomem
*
)
&
Ser1UTCR0
;
sa1100_ports
[
idx
].
port
.
mapbase
=
_Ser1UTCR0
;
sa1100_ports
[
idx
].
port
.
irq
=
IRQ_Ser1UART
;
sa1100_ports
[
idx
].
port
.
flags
=
ASYNC
_BOOT_AUTOCONF
;
sa1100_ports
[
idx
].
port
.
flags
=
UPF
_BOOT_AUTOCONF
;
break
;
case
2
:
sa1100_ports
[
idx
].
port
.
membase
=
(
void
__iomem
*
)
&
Ser2UTCR0
;
sa1100_ports
[
idx
].
port
.
mapbase
=
_Ser2UTCR0
;
sa1100_ports
[
idx
].
port
.
irq
=
IRQ_Ser2ICP
;
sa1100_ports
[
idx
].
port
.
flags
=
ASYNC
_BOOT_AUTOCONF
;
sa1100_ports
[
idx
].
port
.
flags
=
UPF
_BOOT_AUTOCONF
;
break
;
case
3
:
sa1100_ports
[
idx
].
port
.
membase
=
(
void
__iomem
*
)
&
Ser3UTCR0
;
sa1100_ports
[
idx
].
port
.
mapbase
=
_Ser3UTCR0
;
sa1100_ports
[
idx
].
port
.
irq
=
IRQ_Ser3UART
;
sa1100_ports
[
idx
].
port
.
flags
=
ASYNC
_BOOT_AUTOCONF
;
sa1100_ports
[
idx
].
port
.
flags
=
UPF
_BOOT_AUTOCONF
;
break
;
default:
...
...
drivers/serial/serial_lh7a40x.c
浏览文件 @
ce8337cb
...
...
@@ -506,7 +506,7 @@ static struct uart_port_lh7a40x lh7a40x_ports[DEV_NR] = {
.
uartclk
=
14745600
/
2
,
.
fifosize
=
16
,
.
ops
=
&
lh7a40x_uart_ops
,
.
flags
=
ASYNC
_BOOT_AUTOCONF
,
.
flags
=
UPF
_BOOT_AUTOCONF
,
.
line
=
0
,
},
},
...
...
@@ -519,7 +519,7 @@ static struct uart_port_lh7a40x lh7a40x_ports[DEV_NR] = {
.
uartclk
=
14745600
/
2
,
.
fifosize
=
16
,
.
ops
=
&
lh7a40x_uart_ops
,
.
flags
=
ASYNC
_BOOT_AUTOCONF
,
.
flags
=
UPF
_BOOT_AUTOCONF
,
.
line
=
1
,
},
},
...
...
@@ -532,7 +532,7 @@ static struct uart_port_lh7a40x lh7a40x_ports[DEV_NR] = {
.
uartclk
=
14745600
/
2
,
.
fifosize
=
16
,
.
ops
=
&
lh7a40x_uart_ops
,
.
flags
=
ASYNC
_BOOT_AUTOCONF
,
.
flags
=
UPF
_BOOT_AUTOCONF
,
.
line
=
2
,
},
},
...
...
drivers/serial/sh-sci.c
浏览文件 @
ce8337cb
...
...
@@ -1113,10 +1113,10 @@ static struct sci_port sci_ports[SCI_NPORTS] = {
.
port
=
{
.
membase
=
(
void
*
)
0xfffffe80
,
.
mapbase
=
0xfffffe80
,
.
iotype
=
SERIAL_
IO_MEM
,
.
iotype
=
UP
IO_MEM
,
.
irq
=
25
,
.
ops
=
&
sci_uart_ops
,
.
flags
=
ASYNC
_BOOT_AUTOCONF
,
.
flags
=
UPF
_BOOT_AUTOCONF
,
.
line
=
0
,
},
.
type
=
PORT_SCI
,
...
...
@@ -1128,10 +1128,10 @@ static struct sci_port sci_ports[SCI_NPORTS] = {
.
port
=
{
.
membase
=
(
void
*
)
SCIF0
,
.
mapbase
=
SCIF0
,
.
iotype
=
SERIAL_
IO_MEM
,
.
iotype
=
UP
IO_MEM
,
.
irq
=
55
,
.
ops
=
&
sci_uart_ops
,
.
flags
=
ASYNC
_BOOT_AUTOCONF
,
.
flags
=
UPF
_BOOT_AUTOCONF
,
.
line
=
0
,
},
.
type
=
PORT_SCIF
,
...
...
@@ -1142,10 +1142,10 @@ static struct sci_port sci_ports[SCI_NPORTS] = {
.
port
=
{
.
membase
=
(
void
*
)
SCIF2
,
.
mapbase
=
SCIF2
,
.
iotype
=
SERIAL_
IO_MEM
,
.
iotype
=
UP
IO_MEM
,
.
irq
=
59
,
.
ops
=
&
sci_uart_ops
,
.
flags
=
ASYNC
_BOOT_AUTOCONF
,
.
flags
=
UPF
_BOOT_AUTOCONF
,
.
line
=
1
,
},
.
type
=
PORT_SCIF
,
...
...
@@ -1157,10 +1157,10 @@ static struct sci_port sci_ports[SCI_NPORTS] = {
.
port
=
{
.
membase
=
(
void
*
)
0xfffffe80
,
.
mapbase
=
0xfffffe80
,
.
iotype
=
SERIAL_
IO_MEM
,
.
iotype
=
UP
IO_MEM
,
.
irq
=
25
,
.
ops
=
&
sci_uart_ops
,
.
flags
=
ASYNC
_BOOT_AUTOCONF
,
.
flags
=
UPF
_BOOT_AUTOCONF
,
.
line
=
0
,
},
.
type
=
PORT_SCI
,
...
...
@@ -1171,10 +1171,10 @@ static struct sci_port sci_ports[SCI_NPORTS] = {
.
port
=
{
.
membase
=
(
void
*
)
0xa4000150
,
.
mapbase
=
0xa4000150
,
.
iotype
=
SERIAL_
IO_MEM
,
.
iotype
=
UP
IO_MEM
,
.
irq
=
59
,
.
ops
=
&
sci_uart_ops
,
.
flags
=
ASYNC
_BOOT_AUTOCONF
,
.
flags
=
UPF
_BOOT_AUTOCONF
,
.
line
=
1
,
},
.
type
=
PORT_SCIF
,
...
...
@@ -1185,10 +1185,10 @@ static struct sci_port sci_ports[SCI_NPORTS] = {
.
port
=
{
.
membase
=
(
void
*
)
0xa4000140
,
.
mapbase
=
0xa4000140
,
.
iotype
=
SERIAL_
IO_MEM
,
.
iotype
=
UP
IO_MEM
,
.
irq
=
55
,
.
ops
=
&
sci_uart_ops
,
.
flags
=
ASYNC
_BOOT_AUTOCONF
,
.
flags
=
UPF
_BOOT_AUTOCONF
,
.
line
=
2
,
},
.
type
=
PORT_IRDA
,
...
...
@@ -1200,10 +1200,10 @@ static struct sci_port sci_ports[SCI_NPORTS] = {
.
port
=
{
.
membase
=
(
void
*
)
0xA4430000
,
.
mapbase
=
0xA4430000
,
.
iotype
=
SERIAL_
IO_MEM
,
.
iotype
=
UP
IO_MEM
,
.
irq
=
25
,
.
ops
=
&
sci_uart_ops
,
.
flags
=
ASYNC
_BOOT_AUTOCONF
,
.
flags
=
UPF
_BOOT_AUTOCONF
,
.
line
=
0
,
},
.
type
=
PORT_SCIF
,
...
...
@@ -1215,10 +1215,10 @@ static struct sci_port sci_ports[SCI_NPORTS] = {
.
port
=
{
.
membase
=
(
void
*
)
0xffe00000
,
.
mapbase
=
0xffe00000
,
.
iotype
=
SERIAL_
IO_MEM
,
.
iotype
=
UP
IO_MEM
,
.
irq
=
25
,
.
ops
=
&
sci_uart_ops
,
.
flags
=
ASYNC
_BOOT_AUTOCONF
,
.
flags
=
UPF
_BOOT_AUTOCONF
,
.
line
=
0
,
},
.
type
=
PORT_SCIF
,
...
...
@@ -1230,10 +1230,10 @@ static struct sci_port sci_ports[SCI_NPORTS] = {
.
port
=
{
.
membase
=
(
void
*
)
0xffe80000
,
.
mapbase
=
0xffe80000
,
.
iotype
=
SERIAL_
IO_MEM
,
.
iotype
=
UP
IO_MEM
,
.
irq
=
43
,
.
ops
=
&
sci_uart_ops
,
.
flags
=
ASYNC
_BOOT_AUTOCONF
,
.
flags
=
UPF
_BOOT_AUTOCONF
,
.
line
=
0
,
},
.
type
=
PORT_SCIF
,
...
...
@@ -1245,10 +1245,10 @@ static struct sci_port sci_ports[SCI_NPORTS] = {
.
port
=
{
.
membase
=
(
void
*
)
0xffe00000
,
.
mapbase
=
0xffe00000
,
.
iotype
=
SERIAL_
IO_MEM
,
.
iotype
=
UP
IO_MEM
,
.
irq
=
25
,
.
ops
=
&
sci_uart_ops
,
.
flags
=
ASYNC
_BOOT_AUTOCONF
,
.
flags
=
UPF
_BOOT_AUTOCONF
,
.
line
=
0
,
},
.
type
=
PORT_SCI
,
...
...
@@ -1259,10 +1259,10 @@ static struct sci_port sci_ports[SCI_NPORTS] = {
.
port
=
{
.
membase
=
(
void
*
)
0xffe80000
,
.
mapbase
=
0xffe80000
,
.
iotype
=
SERIAL_
IO_MEM
,
.
iotype
=
UP
IO_MEM
,
.
irq
=
43
,
.
ops
=
&
sci_uart_ops
,
.
flags
=
ASYNC
_BOOT_AUTOCONF
,
.
flags
=
UPF
_BOOT_AUTOCONF
,
.
line
=
1
,
},
.
type
=
PORT_SCIF
,
...
...
@@ -1274,10 +1274,10 @@ static struct sci_port sci_ports[SCI_NPORTS] = {
.
port
=
{
.
membase
=
(
void
*
)
0xfe600000
,
.
mapbase
=
0xfe600000
,
.
iotype
=
SERIAL_
IO_MEM
,
.
iotype
=
UP
IO_MEM
,
.
irq
=
55
,
.
ops
=
&
sci_uart_ops
,
.
flags
=
ASYNC
_BOOT_AUTOCONF
,
.
flags
=
UPF
_BOOT_AUTOCONF
,
.
line
=
0
,
},
.
type
=
PORT_SCIF
,
...
...
@@ -1288,10 +1288,10 @@ static struct sci_port sci_ports[SCI_NPORTS] = {
.
port
=
{
.
membase
=
(
void
*
)
0xfe610000
,
.
mapbase
=
0xfe610000
,
.
iotype
=
SERIAL_
IO_MEM
,
.
iotype
=
UP
IO_MEM
,
.
irq
=
75
,
.
ops
=
&
sci_uart_ops
,
.
flags
=
ASYNC
_BOOT_AUTOCONF
,
.
flags
=
UPF
_BOOT_AUTOCONF
,
.
line
=
1
,
},
.
type
=
PORT_SCIF
,
...
...
@@ -1302,10 +1302,10 @@ static struct sci_port sci_ports[SCI_NPORTS] = {
.
port
=
{
.
membase
=
(
void
*
)
0xfe620000
,
.
mapbase
=
0xfe620000
,
.
iotype
=
SERIAL_
IO_MEM
,
.
iotype
=
UP
IO_MEM
,
.
irq
=
79
,
.
ops
=
&
sci_uart_ops
,
.
flags
=
ASYNC
_BOOT_AUTOCONF
,
.
flags
=
UPF
_BOOT_AUTOCONF
,
.
line
=
2
,
},
.
type
=
PORT_SCIF
,
...
...
@@ -1317,10 +1317,10 @@ static struct sci_port sci_ports[SCI_NPORTS] = {
.
port
=
{
.
membase
=
(
void
*
)
0xffe80000
,
.
mapbase
=
0xffe80000
,
.
iotype
=
SERIAL_
IO_MEM
,
.
iotype
=
UP
IO_MEM
,
.
irq
=
43
,
.
ops
=
&
sci_uart_ops
,
.
flags
=
ASYNC
_BOOT_AUTOCONF
,
.
flags
=
UPF
_BOOT_AUTOCONF
,
.
line
=
0
,
},
.
type
=
PORT_SCIF
,
...
...
@@ -1332,10 +1332,10 @@ static struct sci_port sci_ports[SCI_NPORTS] = {
.
port
=
{
.
membase
=
(
void
*
)
0xffe00000
,
.
mapbase
=
0xffe00000
,
.
iotype
=
SERIAL_
IO_MEM
,
.
iotype
=
UP
IO_MEM
,
.
irq
=
26
,
.
ops
=
&
sci_uart_ops
,
.
flags
=
ASYNC
_BOOT_AUTOCONF
,
.
flags
=
UPF
_BOOT_AUTOCONF
,
.
line
=
0
,
},
.
type
=
PORT_SCIF
,
...
...
@@ -1346,10 +1346,10 @@ static struct sci_port sci_ports[SCI_NPORTS] = {
.
port
=
{
.
membase
=
(
void
*
)
0xffe80000
,
.
mapbase
=
0xffe80000
,
.
iotype
=
SERIAL_
IO_MEM
,
.
iotype
=
UP
IO_MEM
,
.
irq
=
43
,
.
ops
=
&
sci_uart_ops
,
.
flags
=
ASYNC
_BOOT_AUTOCONF
,
.
flags
=
UPF
_BOOT_AUTOCONF
,
.
line
=
1
,
},
.
type
=
PORT_SCIF
,
...
...
@@ -1359,10 +1359,10 @@ static struct sci_port sci_ports[SCI_NPORTS] = {
#elif defined(CONFIG_CPU_SUBTYPE_SH5_101) || defined(CONFIG_CPU_SUBTYPE_SH5_103)
{
.
port
=
{
.
iotype
=
SERIAL_
IO_MEM
,
.
iotype
=
UP
IO_MEM
,
.
irq
=
42
,
.
ops
=
&
sci_uart_ops
,
.
flags
=
ASYNC
_BOOT_AUTOCONF
,
.
flags
=
UPF
_BOOT_AUTOCONF
,
.
line
=
0
,
},
.
type
=
PORT_SCIF
,
...
...
@@ -1374,10 +1374,10 @@ static struct sci_port sci_ports[SCI_NPORTS] = {
.
port
=
{
.
membase
=
(
void
*
)
0x00ffffb0
,
.
mapbase
=
0x00ffffb0
,
.
iotype
=
SERIAL_
IO_MEM
,
.
iotype
=
UP
IO_MEM
,
.
irq
=
54
,
.
ops
=
&
sci_uart_ops
,
.
flags
=
ASYNC
_BOOT_AUTOCONF
,
.
flags
=
UPF
_BOOT_AUTOCONF
,
.
line
=
0
,
},
.
type
=
PORT_SCI
,
...
...
@@ -1388,10 +1388,10 @@ static struct sci_port sci_ports[SCI_NPORTS] = {
.
port
=
{
.
membase
=
(
void
*
)
0x00ffffb8
,
.
mapbase
=
0x00ffffb8
,
.
iotype
=
SERIAL_
IO_MEM
,
.
iotype
=
UP
IO_MEM
,
.
irq
=
58
,
.
ops
=
&
sci_uart_ops
,
.
flags
=
ASYNC
_BOOT_AUTOCONF
,
.
flags
=
UPF
_BOOT_AUTOCONF
,
.
line
=
1
,
},
.
type
=
PORT_SCI
,
...
...
@@ -1402,10 +1402,10 @@ static struct sci_port sci_ports[SCI_NPORTS] = {
.
port
=
{
.
membase
=
(
void
*
)
0x00ffffc0
,
.
mapbase
=
0x00ffffc0
,
.
iotype
=
SERIAL_
IO_MEM
,
.
iotype
=
UP
IO_MEM
,
.
irq
=
62
,
.
ops
=
&
sci_uart_ops
,
.
flags
=
ASYNC
_BOOT_AUTOCONF
,
.
flags
=
UPF
_BOOT_AUTOCONF
,
.
line
=
2
,
},
.
type
=
PORT_SCI
,
...
...
@@ -1417,10 +1417,10 @@ static struct sci_port sci_ports[SCI_NPORTS] = {
.
port
=
{
.
membase
=
(
void
*
)
0x00ffff78
,
.
mapbase
=
0x00ffff78
,
.
iotype
=
SERIAL_
IO_MEM
,
.
iotype
=
UP
IO_MEM
,
.
irq
=
90
,
.
ops
=
&
sci_uart_ops
,
.
flags
=
ASYNC
_BOOT_AUTOCONF
,
.
flags
=
UPF
_BOOT_AUTOCONF
,
.
line
=
0
,
},
.
type
=
PORT_SCI
,
...
...
@@ -1431,10 +1431,10 @@ static struct sci_port sci_ports[SCI_NPORTS] = {
.
port
=
{
.
membase
=
(
void
*
)
0x00ffff80
,
.
mapbase
=
0x00ffff80
,
.
iotype
=
SERIAL_
IO_MEM
,
.
iotype
=
UP
IO_MEM
,
.
irq
=
94
,
.
ops
=
&
sci_uart_ops
,
.
flags
=
ASYNC
_BOOT_AUTOCONF
,
.
flags
=
UPF
_BOOT_AUTOCONF
,
.
line
=
1
,
},
.
type
=
PORT_SCI
,
...
...
@@ -1445,10 +1445,10 @@ static struct sci_port sci_ports[SCI_NPORTS] = {
.
port
=
{
.
membase
=
(
void
*
)
0x00ffff88
,
.
mapbase
=
0x00ffff88
,
.
iotype
=
SERIAL_
IO_MEM
,
.
iotype
=
UP
IO_MEM
,
.
irq
=
98
,
.
ops
=
&
sci_uart_ops
,
.
flags
=
ASYNC
_BOOT_AUTOCONF
,
.
flags
=
UPF
_BOOT_AUTOCONF
,
.
line
=
2
,
},
.
type
=
PORT_SCI
,
...
...
drivers/serial/sunsu.c
浏览文件 @
ce8337cb
...
...
@@ -669,7 +669,7 @@ static int sunsu_startup(struct uart_port *port)
* if it is, then bail out, because there's likely no UART
* here.
*/
if
(
!
(
up
->
port
.
flags
&
ASYNC
_BUGGY_UART
)
&&
if
(
!
(
up
->
port
.
flags
&
UPF
_BUGGY_UART
)
&&
(
serial_inp
(
up
,
UART_LSR
)
==
0xff
))
{
printk
(
"ttyS%d: LSR safety check engaged!
\n
"
,
up
->
port
.
line
);
return
-
ENODEV
;
...
...
@@ -707,7 +707,7 @@ static int sunsu_startup(struct uart_port *port)
up
->
ier
=
UART_IER_RLSI
|
UART_IER_RDI
;
serial_outp
(
up
,
UART_IER
,
up
->
ier
);
if
(
up
->
port
.
flags
&
ASYNC
_FOURPORT
)
{
if
(
up
->
port
.
flags
&
UPF
_FOURPORT
)
{
unsigned
int
icp
;
/*
* Enable interrupts on the AST Fourport board
...
...
@@ -740,7 +740,7 @@ static void sunsu_shutdown(struct uart_port *port)
serial_outp
(
up
,
UART_IER
,
0
);
spin_lock_irqsave
(
&
up
->
port
.
lock
,
flags
);
if
(
up
->
port
.
flags
&
ASYNC
_FOURPORT
)
{
if
(
up
->
port
.
flags
&
UPF
_FOURPORT
)
{
/* reset interrupts on the AST Fourport board */
inb
((
up
->
port
.
iobase
&
0xfe0
)
|
0x1f
);
up
->
port
.
mctrl
|=
TIOCM_OUT1
;
...
...
@@ -1132,7 +1132,7 @@ static void sunsu_autoconfig(struct uart_sunsu_port *up)
spin_lock_irqsave
(
&
up
->
port
.
lock
,
flags
);
if
(
!
(
up
->
port
.
flags
&
ASYNC
_BUGGY_UART
))
{
if
(
!
(
up
->
port
.
flags
&
UPF
_BUGGY_UART
))
{
/*
* Do a simple existence test first; if we fail this, there's
* no point trying anything else.
...
...
@@ -1170,7 +1170,7 @@ static void sunsu_autoconfig(struct uart_sunsu_port *up)
* manufacturer would be stupid enough to design a board
* that conflicts with COM 1-4 --- we hope!
*/
if
(
!
(
up
->
port
.
flags
&
ASYNC
_SKIP_TEST
))
{
if
(
!
(
up
->
port
.
flags
&
UPF
_SKIP_TEST
))
{
serial_outp
(
up
,
UART_MCR
,
UART_MCR_LOOP
|
0x0A
);
status1
=
serial_inp
(
up
,
UART_MSR
)
&
0xF0
;
serial_outp
(
up
,
UART_MCR
,
save_mcr
);
...
...
@@ -1371,7 +1371,7 @@ static __inline__ void wait_for_xmitr(struct uart_sunsu_port *up)
}
while
((
status
&
BOTH_EMPTY
)
!=
BOTH_EMPTY
);
/* Wait up to 1s for flow control if necessary */
if
(
up
->
port
.
flags
&
ASYNC
_CONS_FLOW
)
{
if
(
up
->
port
.
flags
&
UPF
_CONS_FLOW
)
{
tmout
=
1000000
;
while
(
--
tmout
&&
((
serial_in
(
up
,
UART_MSR
)
&
UART_MSR_CTS
)
==
0
))
...
...
@@ -1513,7 +1513,7 @@ static int __init sunsu_serial_init(void)
up
->
su_type
==
SU_PORT_KBD
)
continue
;
up
->
port
.
flags
|=
ASYNC
_BOOT_AUTOCONF
;
up
->
port
.
flags
|=
UPF
_BOOT_AUTOCONF
;
up
->
port
.
type
=
PORT_UNKNOWN
;
up
->
port
.
uartclk
=
(
SU_BASE_BAUD
*
16
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录