提交 f1125f81 编写于 作者: D Deng-Cheng Zhu 提交者: Greg Kroah-Hartman

USB/host: Use existing macros instead of hard-coded values in uhci-debug.c

Now that UHCI IO registers have been defined in uhci-hcd.h, use them.
Reviewed-by: NJames Hogan <james.hogan@imgtec.com>
Signed-off-by: NDeng-Cheng Zhu <dengcheng.zhu@imgtec.com>
Acked-by: NAlan Stern <stern@rowland.harvard.edu>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 36a87587
...@@ -310,14 +310,14 @@ static int uhci_show_status(struct uhci_hcd *uhci, char *buf, int len) ...@@ -310,14 +310,14 @@ static int uhci_show_status(struct uhci_hcd *uhci, char *buf, int len)
unsigned short portsc1, portsc2; unsigned short portsc1, portsc2;
usbcmd = uhci_readw(uhci, 0); usbcmd = uhci_readw(uhci, USBCMD);
usbstat = uhci_readw(uhci, 2); usbstat = uhci_readw(uhci, USBSTS);
usbint = uhci_readw(uhci, 4); usbint = uhci_readw(uhci, USBINTR);
usbfrnum = uhci_readw(uhci, 6); usbfrnum = uhci_readw(uhci, USBFRNUM);
flbaseadd = uhci_readl(uhci, 8); flbaseadd = uhci_readl(uhci, USBFLBASEADD);
sof = uhci_readb(uhci, 12); sof = uhci_readb(uhci, USBSOF);
portsc1 = uhci_readw(uhci, 16); portsc1 = uhci_readw(uhci, USBPORTSC1);
portsc2 = uhci_readw(uhci, 18); portsc2 = uhci_readw(uhci, USBPORTSC2);
out += sprintf(out, " usbcmd = %04x %s%s%s%s%s%s%s%s\n", out += sprintf(out, " usbcmd = %04x %s%s%s%s%s%s%s%s\n",
usbcmd, usbcmd,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册