Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
qemu
提交
348f1037
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看板
提交
348f1037
编写于
5月 11, 2012
作者:
G
Gerd Hoffmann
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
xhci: trace: slots
Signed-off-by:
N
Gerd Hoffmann
<
kraxel@redhat.com
>
上级
97df650b
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
12 addition
and
6 deletion
+12
-6
hw/usb/hcd-xhci.c
hw/usb/hcd-xhci.c
+6
-6
trace-events
trace-events
+6
-0
未找到文件。
hw/usb/hcd-xhci.c
浏览文件 @
348f1037
...
...
@@ -1750,8 +1750,8 @@ static void xhci_kick_ep(XHCIState *xhci, unsigned int slotid, unsigned int epid
static
TRBCCode
xhci_enable_slot
(
XHCIState
*
xhci
,
unsigned
int
slotid
)
{
trace_usb_xhci_slot_enable
(
slotid
);
assert
(
slotid
>=
1
&&
slotid
<=
MAXSLOTS
);
DPRINTF
(
"xhci_enable_slot(%d)
\n
"
,
slotid
);
xhci
->
slots
[
slotid
-
1
].
enabled
=
1
;
xhci
->
slots
[
slotid
-
1
].
port
=
0
;
memset
(
xhci
->
slots
[
slotid
-
1
].
eps
,
0
,
sizeof
(
XHCIEPContext
*
)
*
31
);
...
...
@@ -1763,8 +1763,8 @@ static TRBCCode xhci_disable_slot(XHCIState *xhci, unsigned int slotid)
{
int
i
;
trace_usb_xhci_slot_disable
(
slotid
);
assert
(
slotid
>=
1
&&
slotid
<=
MAXSLOTS
);
DPRINTF
(
"xhci_disable_slot(%d)
\n
"
,
slotid
);
for
(
i
=
1
;
i
<=
31
;
i
++
)
{
if
(
xhci
->
slots
[
slotid
-
1
].
eps
[
i
-
1
])
{
...
...
@@ -1790,8 +1790,8 @@ static TRBCCode xhci_address_slot(XHCIState *xhci, unsigned int slotid,
int
i
;
TRBCCode
res
;
trace_usb_xhci_slot_address
(
slotid
);
assert
(
slotid
>=
1
&&
slotid
<=
MAXSLOTS
);
DPRINTF
(
"xhci_address_slot(%d)
\n
"
,
slotid
);
dcbaap
=
xhci_addr64
(
xhci
->
dcbaap_low
,
xhci
->
dcbaap_high
);
pci_dma_read
(
&
xhci
->
pci_dev
,
dcbaap
+
8
*
slotid
,
&
poctx
,
sizeof
(
poctx
));
...
...
@@ -1877,8 +1877,8 @@ static TRBCCode xhci_configure_slot(XHCIState *xhci, unsigned int slotid,
int
i
;
TRBCCode
res
;
trace_usb_xhci_slot_configure
(
slotid
);
assert
(
slotid
>=
1
&&
slotid
<=
MAXSLOTS
);
DPRINTF
(
"xhci_configure_slot(%d)
\n
"
,
slotid
);
ictx
=
xhci_mask64
(
pictx
);
octx
=
xhci
->
slots
[
slotid
-
1
].
ctx
;
...
...
@@ -1965,8 +1965,8 @@ static TRBCCode xhci_evaluate_slot(XHCIState *xhci, unsigned int slotid,
uint32_t
islot_ctx
[
4
];
uint32_t
slot_ctx
[
4
];
trace_usb_xhci_slot_evaluate
(
slotid
);
assert
(
slotid
>=
1
&&
slotid
<=
MAXSLOTS
);
DPRINTF
(
"xhci_evaluate_slot(%d)
\n
"
,
slotid
);
ictx
=
xhci_mask64
(
pictx
);
octx
=
xhci
->
slots
[
slotid
-
1
].
ctx
;
...
...
@@ -2028,8 +2028,8 @@ static TRBCCode xhci_reset_slot(XHCIState *xhci, unsigned int slotid)
dma_addr_t
octx
;
int
i
;
trace_usb_xhci_slot_reset
(
slotid
);
assert
(
slotid
>=
1
&&
slotid
<=
MAXSLOTS
);
DPRINTF
(
"xhci_reset_slot(%d)
\n
"
,
slotid
);
octx
=
xhci
->
slots
[
slotid
-
1
].
ctx
;
...
...
trace-events
浏览文件 @
348f1037
...
...
@@ -306,6 +306,12 @@ usb_xhci_irq_intx(uint32_t level) "level %d"
usb_xhci_irq_msi(uint32_t nr) "nr %d"
usb_xhci_queue_event(uint32_t idx, const char *name, uint64_t param, uint32_t status, uint32_t control) "idx %d, %s, p %016" PRIx64 ", s %08x, c 0x%08x"
usb_xhci_fetch_trb(uint64_t addr, const char *name, uint64_t param, uint32_t status, uint32_t control) "addr %016" PRIx64 ", %s, p %016" PRIx64 ", s %08x, c 0x%08x"
usb_xhci_slot_enable(uint32_t slotid) "slotid %d"
usb_xhci_slot_disable(uint32_t slotid) "slotid %d"
usb_xhci_slot_address(uint32_t slotid) "slotid %d"
usb_xhci_slot_configure(uint32_t slotid) "slotid %d"
usb_xhci_slot_evaluate(uint32_t slotid) "slotid %d"
usb_xhci_slot_reset(uint32_t slotid) "slotid %d"
usb_xhci_ep_enable(uint32_t slotid, uint32_t epid) "slotid %d, epid %d"
usb_xhci_ep_disable(uint32_t slotid, uint32_t epid) "slotid %d, epid %d"
usb_xhci_ep_kick(uint32_t slotid, uint32_t epid) "slotid %d, epid %d"
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录