Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
qemu
提交
9b70c179
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看板
提交
9b70c179
编写于
2月 16, 2015
作者:
M
Michael S. Tsirkin
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
virtio-serial: switch to standard-headers
Drop duplicate code. Signed-off-by:
N
Michael S. Tsirkin
<
mst@redhat.com
>
上级
019adbd3
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
2 addition
and
39 deletion
+2
-39
hw/char/virtio-serial-bus.c
hw/char/virtio-serial-bus.c
+1
-0
include/hw/virtio/virtio-serial.h
include/hw/virtio/virtio-serial.h
+1
-39
未找到文件。
hw/char/virtio-serial-bus.c
浏览文件 @
9b70c179
...
...
@@ -18,6 +18,7 @@
* GNU GPL, version 2 or (at your option) any later version.
*/
#include "standard-headers/linux/virtio_ids.h"
#include "qemu/iov.h"
#include "monitor/monitor.h"
#include "qemu/queue.h"
...
...
include/hw/virtio/virtio-serial.h
浏览文件 @
9b70c179
...
...
@@ -15,53 +15,15 @@
#ifndef _QEMU_VIRTIO_SERIAL_H
#define _QEMU_VIRTIO_SERIAL_H
#include "standard-headers/linux/virtio_console.h"
#include "hw/qdev.h"
#include "hw/virtio/virtio.h"
/* == Interface shared between the guest kernel and qemu == */
/* The Virtio ID for virtio console / serial ports */
#define VIRTIO_ID_CONSOLE 3
/* Features supported */
#define VIRTIO_CONSOLE_F_MULTIPORT 1
#define VIRTIO_CONSOLE_BAD_ID (~(uint32_t)0)
struct
virtio_console_config
{
/*
* These two fields are used by VIRTIO_CONSOLE_F_SIZE which
* isn't implemented here yet
*/
uint16_t
cols
;
uint16_t
rows
;
uint32_t
max_nr_ports
;
}
QEMU_PACKED
;
struct
virtio_console_control
{
uint32_t
id
;
/* Port number */
uint16_t
event
;
/* The kind of control event (see below) */
uint16_t
value
;
/* Extra information for the key */
};
struct
virtio_serial_conf
{
/* Max. number of ports we can have for a virtio-serial device */
uint32_t
max_virtserial_ports
;
};
/* Some events for the internal messages (control packets) */
#define VIRTIO_CONSOLE_DEVICE_READY 0
#define VIRTIO_CONSOLE_PORT_ADD 1
#define VIRTIO_CONSOLE_PORT_REMOVE 2
#define VIRTIO_CONSOLE_PORT_READY 3
#define VIRTIO_CONSOLE_CONSOLE_PORT 4
#define VIRTIO_CONSOLE_RESIZE 5
#define VIRTIO_CONSOLE_PORT_OPEN 6
#define VIRTIO_CONSOLE_PORT_NAME 7
/* == In-qemu interface == */
#define TYPE_VIRTIO_SERIAL_PORT "virtio-serial-port"
#define VIRTIO_SERIAL_PORT(obj) \
OBJECT_CHECK(VirtIOSerialPort, (obj), TYPE_VIRTIO_SERIAL_PORT)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录