Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
qemu
提交
2cc6e0a1
Q
qemu
项目概览
openeuler
/
qemu
通知
10
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
Q
qemu
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
2cc6e0a1
编写于
8月 15, 2011
作者:
A
Anthony Liguori
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
char: rename qemu_chr_write() -> qemu_chr_fe_write()
Signed-off-by:
N
Anthony Liguori
<
aliguori@us.ibm.com
>
上级
0bf1dbdc
变更
28
显示空白变更内容
内联
并排
Showing
28 changed file
with
34 addition
and
34 deletion
+34
-34
gdbstub.c
gdbstub.c
+1
-1
hw/ccid-card-passthru.c
hw/ccid-card-passthru.c
+2
-2
hw/debugcon.c
hw/debugcon.c
+1
-1
hw/escc.c
hw/escc.c
+1
-1
hw/etraxfs_ser.c
hw/etraxfs_ser.c
+1
-1
hw/grlib_apbuart.c
hw/grlib_apbuart.c
+1
-1
hw/lm32_juart.c
hw/lm32_juart.c
+1
-1
hw/lm32_uart.c
hw/lm32_uart.c
+1
-1
hw/mcf_uart.c
hw/mcf_uart.c
+1
-1
hw/milkymist-uart.c
hw/milkymist-uart.c
+1
-1
hw/omap2.c
hw/omap2.c
+3
-3
hw/parallel.c
hw/parallel.c
+1
-1
hw/pl011.c
hw/pl011.c
+1
-1
hw/pxa2xx.c
hw/pxa2xx.c
+1
-1
hw/serial.c
hw/serial.c
+1
-1
hw/sh_serial.c
hw/sh_serial.c
+1
-1
hw/spapr_vty.c
hw/spapr_vty.c
+2
-2
hw/strongarm.c
hw/strongarm.c
+1
-1
hw/syborg_serial.c
hw/syborg_serial.c
+2
-2
hw/usb-serial.c
hw/usb-serial.c
+1
-1
hw/virtio-console.c
hw/virtio-console.c
+1
-1
hw/xen_console.c
hw/xen_console.c
+1
-1
hw/xilinx_uartlite.c
hw/xilinx_uartlite.c
+1
-1
monitor.c
monitor.c
+1
-1
qemu-char.c
qemu-char.c
+2
-2
qemu-char.h
qemu-char.h
+1
-1
slirp/slirp.c
slirp/slirp.c
+1
-1
usb-redir.c
usb-redir.c
+1
-1
未找到文件。
gdbstub.c
浏览文件 @
2cc6e0a1
...
...
@@ -382,7 +382,7 @@ static void put_buffer(GDBState *s, const uint8_t *buf, int len)
}
}
#else
qemu_chr_write
(
s
->
chr
,
buf
,
len
);
qemu_chr_
fe_
write
(
s
->
chr
,
buf
,
len
);
#endif
}
...
...
hw/ccid-card-passthru.c
浏览文件 @
2cc6e0a1
...
...
@@ -72,8 +72,8 @@ static void ccid_card_vscard_send_msg(PassthruState *s,
scr_msg_header
.
type
=
htonl
(
type
);
scr_msg_header
.
reader_id
=
htonl
(
reader_id
);
scr_msg_header
.
length
=
htonl
(
length
);
qemu_chr_write
(
s
->
cs
,
(
uint8_t
*
)
&
scr_msg_header
,
sizeof
(
VSCMsgHeader
));
qemu_chr_write
(
s
->
cs
,
payload
,
length
);
qemu_chr_
fe_
write
(
s
->
cs
,
(
uint8_t
*
)
&
scr_msg_header
,
sizeof
(
VSCMsgHeader
));
qemu_chr_
fe_
write
(
s
->
cs
,
payload
,
length
);
}
static
void
ccid_card_vscard_send_apdu
(
PassthruState
*
s
,
...
...
hw/debugcon.c
浏览文件 @
2cc6e0a1
...
...
@@ -51,7 +51,7 @@ static void debugcon_ioport_write(void *opaque, uint32_t addr, uint32_t val)
printf
(
"debugcon: write addr=0x%04x val=0x%02x
\n
"
,
addr
,
val
);
#endif
qemu_chr_write
(
s
->
chr
,
&
ch
,
1
);
qemu_chr_
fe_
write
(
s
->
chr
,
&
ch
,
1
);
}
...
...
hw/escc.c
浏览文件 @
2cc6e0a1
...
...
@@ -551,7 +551,7 @@ static void escc_mem_write(void *opaque, target_phys_addr_t addr,
s
->
tx
=
val
;
if
(
s
->
wregs
[
W_TXCTRL2
]
&
TXCTRL2_TXEN
)
{
// tx enabled
if
(
s
->
chr
)
qemu_chr_write
(
s
->
chr
,
&
s
->
tx
,
1
);
qemu_chr_
fe_
write
(
s
->
chr
,
&
s
->
tx
,
1
);
else
if
(
s
->
type
==
kbd
&&
!
s
->
disabled
)
{
handle_kbd_command
(
s
,
val
);
}
...
...
hw/etraxfs_ser.c
浏览文件 @
2cc6e0a1
...
...
@@ -119,7 +119,7 @@ ser_writel (void *opaque, target_phys_addr_t addr, uint32_t value)
switch
(
addr
)
{
case
RW_DOUT
:
qemu_chr_write
(
s
->
chr
,
&
ch
,
1
);
qemu_chr_
fe_
write
(
s
->
chr
,
&
ch
,
1
);
s
->
regs
[
R_INTR
]
|=
3
;
s
->
pending_tx
=
1
;
s
->
regs
[
addr
]
=
value
;
...
...
hw/grlib_apbuart.c
浏览文件 @
2cc6e0a1
...
...
@@ -114,7 +114,7 @@ grlib_apbuart_writel(void *opaque, target_phys_addr_t addr, uint32_t value)
switch
(
addr
)
{
case
DATA_OFFSET
:
c
=
value
&
0xFF
;
qemu_chr_write
(
uart
->
chr
,
&
c
,
1
);
qemu_chr_
fe_
write
(
uart
->
chr
,
&
c
,
1
);
return
;
case
STATUS_OFFSET
:
...
...
hw/lm32_juart.c
浏览文件 @
2cc6e0a1
...
...
@@ -72,7 +72,7 @@ void lm32_juart_set_jtx(DeviceState *d, uint32_t jtx)
s
->
jtx
=
jtx
;
if
(
s
->
chr
)
{
qemu_chr_write
(
s
->
chr
,
&
ch
,
1
);
qemu_chr_
fe_
write
(
s
->
chr
,
&
ch
,
1
);
}
}
...
...
hw/lm32_uart.c
浏览文件 @
2cc6e0a1
...
...
@@ -169,7 +169,7 @@ static void uart_write(void *opaque, target_phys_addr_t addr, uint32_t value)
switch
(
addr
)
{
case
R_RXTX
:
if
(
s
->
chr
)
{
qemu_chr_write
(
s
->
chr
,
&
ch
,
1
);
qemu_chr_
fe_
write
(
s
->
chr
,
&
ch
,
1
);
}
break
;
case
R_IER
:
...
...
hw/mcf_uart.c
浏览文件 @
2cc6e0a1
...
...
@@ -110,7 +110,7 @@ static void mcf_uart_do_tx(mcf_uart_state *s)
{
if
(
s
->
tx_enabled
&&
(
s
->
sr
&
MCF_UART_TxEMP
)
==
0
)
{
if
(
s
->
chr
)
qemu_chr_write
(
s
->
chr
,
(
unsigned
char
*
)
&
s
->
tb
,
1
);
qemu_chr_
fe_
write
(
s
->
chr
,
(
unsigned
char
*
)
&
s
->
tb
,
1
);
s
->
sr
|=
MCF_UART_TxEMP
;
}
if
(
s
->
tx_enabled
)
{
...
...
hw/milkymist-uart.c
浏览文件 @
2cc6e0a1
...
...
@@ -77,7 +77,7 @@ static void uart_write(void *opaque, target_phys_addr_t addr, uint32_t value)
switch
(
addr
)
{
case
R_RXTX
:
if
(
s
->
chr
)
{
qemu_chr_write
(
s
->
chr
,
&
ch
,
1
);
qemu_chr_
fe_
write
(
s
->
chr
,
&
ch
,
1
);
}
trace_milkymist_uart_pulse_irq_tx
();
qemu_irq_pulse
(
s
->
tx_irq
);
...
...
hw/omap2.c
浏览文件 @
2cc6e0a1
...
...
@@ -748,14 +748,14 @@ static void omap_sti_fifo_write(void *opaque, target_phys_addr_t addr,
if
(
ch
==
STI_TRACE_CONTROL_CHANNEL
)
{
/* Flush channel <i>value</i>. */
qemu_chr_write
(
s
->
chr
,
(
const
uint8_t
*
)
"
\r
"
,
1
);
qemu_chr_
fe_
write
(
s
->
chr
,
(
const
uint8_t
*
)
"
\r
"
,
1
);
}
else
if
(
ch
==
STI_TRACE_CONSOLE_CHANNEL
||
1
)
{
if
(
value
==
0xc0
||
value
==
0xc3
)
{
/* Open channel <i>ch</i>. */
}
else
if
(
value
==
0x00
)
qemu_chr_write
(
s
->
chr
,
(
const
uint8_t
*
)
"
\n
"
,
1
);
qemu_chr_
fe_
write
(
s
->
chr
,
(
const
uint8_t
*
)
"
\n
"
,
1
);
else
qemu_chr_write
(
s
->
chr
,
&
byte
,
1
);
qemu_chr_
fe_
write
(
s
->
chr
,
&
byte
,
1
);
}
}
...
...
hw/parallel.c
浏览文件 @
2cc6e0a1
...
...
@@ -120,7 +120,7 @@ parallel_ioport_write_sw(void *opaque, uint32_t addr, uint32_t val)
if
(
val
&
PARA_CTR_STROBE
)
{
s
->
status
&=
~
PARA_STS_BUSY
;
if
((
s
->
control
&
PARA_CTR_STROBE
)
==
0
)
qemu_chr_write
(
s
->
chr
,
&
s
->
dataw
,
1
);
qemu_chr_
fe_
write
(
s
->
chr
,
&
s
->
dataw
,
1
);
}
else
{
if
(
s
->
control
&
PARA_CTR_INTEN
)
{
s
->
irq_pending
=
1
;
...
...
hw/pl011.c
浏览文件 @
2cc6e0a1
...
...
@@ -133,7 +133,7 @@ static void pl011_write(void *opaque, target_phys_addr_t offset,
/* ??? Check if transmitter is enabled. */
ch
=
value
;
if
(
s
->
chr
)
qemu_chr_write
(
s
->
chr
,
&
ch
,
1
);
qemu_chr_
fe_
write
(
s
->
chr
,
&
ch
,
1
);
s
->
int_level
|=
PL011_INT_TX
;
pl011_update
(
s
);
break
;
...
...
hw/pxa2xx.c
浏览文件 @
2cc6e0a1
...
...
@@ -1923,7 +1923,7 @@ static void pxa2xx_fir_write(void *opaque, target_phys_addr_t addr,
else
ch
=
~
value
;
if
(
s
->
chr
&&
s
->
enable
&&
(
s
->
control
[
0
]
&
(
1
<<
3
)))
/* TXE */
qemu_chr_write
(
s
->
chr
,
&
ch
,
1
);
qemu_chr_
fe_
write
(
s
->
chr
,
&
ch
,
1
);
break
;
case
ICSR0
:
s
->
status
[
0
]
&=
~
(
value
&
0x66
);
...
...
hw/serial.c
浏览文件 @
2cc6e0a1
...
...
@@ -334,7 +334,7 @@ static void serial_xmit(void *opaque)
if
(
s
->
mcr
&
UART_MCR_LOOP
)
{
/* in loopback mode, say that we just received a char */
serial_receive1
(
s
,
&
s
->
tsr
,
1
);
}
else
if
(
qemu_chr_write
(
s
->
chr
,
&
s
->
tsr
,
1
)
!=
1
)
{
}
else
if
(
qemu_chr_
fe_
write
(
s
->
chr
,
&
s
->
tsr
,
1
)
!=
1
)
{
if
((
s
->
tsr_retry
>
0
)
&&
(
s
->
tsr_retry
<=
MAX_XMIT_RETRY
))
{
s
->
tsr_retry
++
;
qemu_mod_timer
(
s
->
transmit_timer
,
new_xmit_ts
+
s
->
char_transmit_time
);
...
...
hw/sh_serial.c
浏览文件 @
2cc6e0a1
...
...
@@ -105,7 +105,7 @@ static void sh_serial_write(void *opaque, uint32_t offs, uint32_t val)
case
0x0c
:
/* FTDR / TDR */
if
(
s
->
chr
)
{
ch
=
val
;
qemu_chr_write
(
s
->
chr
,
&
ch
,
1
);
qemu_chr_
fe_
write
(
s
->
chr
,
&
ch
,
1
);
}
s
->
dr
=
val
;
s
->
flags
&=
~
SH_SERIAL_FLAG_TDE
;
...
...
hw/spapr_vty.c
浏览文件 @
2cc6e0a1
...
...
@@ -50,8 +50,8 @@ void vty_putchars(VIOsPAPRDevice *sdev, uint8_t *buf, int len)
{
VIOsPAPRVTYDevice
*
dev
=
(
VIOsPAPRVTYDevice
*
)
sdev
;
/* FIXME: should check the qemu_chr_write() return value */
qemu_chr_write
(
dev
->
chardev
,
buf
,
len
);
/* FIXME: should check the qemu_chr_
fe_
write() return value */
qemu_chr_
fe_
write
(
dev
->
chardev
,
buf
,
len
);
}
static
int
spapr_vty_init
(
VIOsPAPRDevice
*
sdev
)
...
...
hw/strongarm.c
浏览文件 @
2cc6e0a1
...
...
@@ -1067,7 +1067,7 @@ static void strongarm_uart_tx(void *opaque)
if
(
s
->
utcr3
&
UTCR3_LBM
)
/* loopback */
{
strongarm_uart_receive
(
s
,
&
s
->
tx_fifo
[
s
->
tx_start
],
1
);
}
else
if
(
s
->
chr
)
{
qemu_chr_write
(
s
->
chr
,
&
s
->
tx_fifo
[
s
->
tx_start
],
1
);
qemu_chr_
fe_
write
(
s
->
chr
,
&
s
->
tx_fifo
[
s
->
tx_start
],
1
);
}
s
->
tx_start
=
(
s
->
tx_start
+
1
)
%
8
;
...
...
hw/syborg_serial.c
浏览文件 @
2cc6e0a1
...
...
@@ -119,7 +119,7 @@ static void do_dma_tx(SyborgSerialState *s, uint32_t count)
/* optimize later. Now, 1 byte per iteration */
while
(
count
--
)
{
cpu_physical_memory_read
(
s
->
dma_tx_ptr
,
&
ch
,
1
);
qemu_chr_write
(
s
->
chr
,
&
ch
,
1
);
qemu_chr_
fe_
write
(
s
->
chr
,
&
ch
,
1
);
s
->
dma_tx_ptr
++
;
}
}
else
{
...
...
@@ -203,7 +203,7 @@ static void syborg_serial_write(void *opaque, target_phys_addr_t offset,
case
SERIAL_DATA
:
ch
=
value
;
if
(
s
->
chr
)
qemu_chr_write
(
s
->
chr
,
&
ch
,
1
);
qemu_chr_
fe_
write
(
s
->
chr
,
&
ch
,
1
);
break
;
case
SERIAL_INT_ENABLE
:
s
->
int_enable
=
value
;
...
...
hw/usb-serial.c
浏览文件 @
2cc6e0a1
...
...
@@ -371,7 +371,7 @@ static int usb_serial_handle_data(USBDevice *dev, USBPacket *p)
goto
fail
;
for
(
i
=
0
;
i
<
p
->
iov
.
niov
;
i
++
)
{
iov
=
p
->
iov
.
iov
+
i
;
qemu_chr_write
(
s
->
cs
,
iov
->
iov_base
,
iov
->
iov_len
);
qemu_chr_
fe_
write
(
s
->
cs
,
iov
->
iov_base
,
iov
->
iov_len
);
}
break
;
...
...
hw/virtio-console.c
浏览文件 @
2cc6e0a1
...
...
@@ -27,7 +27,7 @@ static ssize_t flush_buf(VirtIOSerialPort *port, const uint8_t *buf, size_t len)
VirtConsole
*
vcon
=
DO_UPCAST
(
VirtConsole
,
port
,
port
);
ssize_t
ret
;
ret
=
qemu_chr_write
(
vcon
->
chr
,
buf
,
len
);
ret
=
qemu_chr_
fe_
write
(
vcon
->
chr
,
buf
,
len
);
trace_virtio_console_flush_buf
(
port
->
id
,
len
,
ret
);
if
(
ret
<
0
)
{
...
...
hw/xen_console.c
浏览文件 @
2cc6e0a1
...
...
@@ -156,7 +156,7 @@ static void xencons_send(struct XenConsole *con)
size
=
con
->
buffer
.
size
-
con
->
buffer
.
consumed
;
if
(
con
->
chr
)
len
=
qemu_chr_write
(
con
->
chr
,
con
->
buffer
.
data
+
con
->
buffer
.
consumed
,
len
=
qemu_chr_
fe_
write
(
con
->
chr
,
con
->
buffer
.
data
+
con
->
buffer
.
consumed
,
size
);
else
len
=
size
;
...
...
hw/xilinx_uartlite.c
浏览文件 @
2cc6e0a1
...
...
@@ -129,7 +129,7 @@ uart_writel (void *opaque, target_phys_addr_t addr, uint32_t value)
case
R_TX
:
if
(
s
->
chr
)
qemu_chr_write
(
s
->
chr
,
&
ch
,
1
);
qemu_chr_
fe_
write
(
s
->
chr
,
&
ch
,
1
);
s
->
regs
[
addr
]
=
value
;
...
...
monitor.c
浏览文件 @
2cc6e0a1
...
...
@@ -247,7 +247,7 @@ static int monitor_read_password(Monitor *mon, ReadLineFunc *readline_func,
void
monitor_flush
(
Monitor
*
mon
)
{
if
(
mon
&&
mon
->
outbuf_index
!=
0
&&
!
mon
->
mux_out
)
{
qemu_chr_write
(
mon
->
chr
,
mon
->
outbuf
,
mon
->
outbuf_index
);
qemu_chr_
fe_
write
(
mon
->
chr
,
mon
->
outbuf
,
mon
->
outbuf_index
);
mon
->
outbuf_index
=
0
;
}
}
...
...
qemu-char.c
浏览文件 @
2cc6e0a1
...
...
@@ -139,7 +139,7 @@ void qemu_chr_generic_open(CharDriverState *s)
}
}
int
qemu_chr_write
(
CharDriverState
*
s
,
const
uint8_t
*
buf
,
int
len
)
int
qemu_chr_
fe_
write
(
CharDriverState
*
s
,
const
uint8_t
*
buf
,
int
len
)
{
return
s
->
chr_write
(
s
,
buf
,
len
);
}
...
...
@@ -185,7 +185,7 @@ void qemu_chr_printf(CharDriverState *s, const char *fmt, ...)
va_list
ap
;
va_start
(
ap
,
fmt
);
vsnprintf
(
buf
,
sizeof
(
buf
),
fmt
,
ap
);
qemu_chr_write
(
s
,
(
uint8_t
*
)
buf
,
strlen
(
buf
));
qemu_chr_
fe_
write
(
s
,
(
uint8_t
*
)
buf
,
strlen
(
buf
));
va_end
(
ap
);
}
...
...
qemu-char.h
浏览文件 @
2cc6e0a1
...
...
@@ -87,7 +87,7 @@ void qemu_chr_guest_close(struct CharDriverState *chr);
void
qemu_chr_close
(
CharDriverState
*
chr
);
void
qemu_chr_printf
(
CharDriverState
*
s
,
const
char
*
fmt
,
...)
GCC_FMT_ATTR
(
2
,
3
);
int
qemu_chr_write
(
CharDriverState
*
s
,
const
uint8_t
*
buf
,
int
len
);
int
qemu_chr_
fe_
write
(
CharDriverState
*
s
,
const
uint8_t
*
buf
,
int
len
);
void
qemu_chr_send_event
(
CharDriverState
*
s
,
int
event
);
void
qemu_chr_add_handlers
(
CharDriverState
*
s
,
IOCanReadHandler
*
fd_can_read
,
...
...
slirp/slirp.c
浏览文件 @
2cc6e0a1
...
...
@@ -818,7 +818,7 @@ int slirp_add_exec(Slirp *slirp, int do_pty, const void *args,
ssize_t
slirp_send
(
struct
socket
*
so
,
const
void
*
buf
,
size_t
len
,
int
flags
)
{
if
(
so
->
s
==
-
1
&&
so
->
extra
)
{
qemu_chr_write
(
so
->
extra
,
buf
,
len
);
qemu_chr_
fe_
write
(
so
->
extra
,
buf
,
len
);
return
len
;
}
...
...
usb-redir.c
浏览文件 @
2cc6e0a1
...
...
@@ -225,7 +225,7 @@ static int usbredir_write(void *priv, uint8_t *data, int count)
{
USBRedirDevice
*
dev
=
priv
;
return
qemu_chr_write
(
dev
->
cs
,
data
,
count
);
return
qemu_chr_
fe_
write
(
dev
->
cs
,
data
,
count
);
}
/*
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录