git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
vserver 1.9.3
[linux-2.6.git]
/
drivers
/
usb
/
host
/
ohci-dbg.c
diff --git
a/drivers/usb/host/ohci-dbg.c
b/drivers/usb/host/ohci-dbg.c
index
54daaac
..
947bf4a
100644
(file)
--- a/
drivers/usb/host/ohci-dbg.c
+++ b/
drivers/usb/host/ohci-dbg.c
@@
-131,7
+131,7
@@
static char *hcfs2string (int state)
static void
ohci_dump_status (struct ohci_hcd *controller, char **next, unsigned *size)
{
static void
ohci_dump_status (struct ohci_hcd *controller, char **next, unsigned *size)
{
- struct ohci_regs
*regs = controller->regs;
+ struct ohci_regs
__iomem
*regs = controller->regs;
u32 temp;
temp = ohci_readl (®s->revision) & 0xff;
u32 temp;
temp = ohci_readl (®s->revision) & 0xff;
@@
-336,7
+336,7
@@
static void __attribute__((unused))
ohci_dump_ed (const struct ohci_hcd *ohci, const char *label,
const struct ed *ed, int verbose)
{
ohci_dump_ed (const struct ohci_hcd *ohci, const char *label,
const struct ed *ed, int verbose)
{
-
u32
tmp = ed->hwINFO;
+
__le32
tmp = ed->hwINFO;
char *type = "";
ohci_dbg (ohci, "%s, ed %p state 0x%x type %s; next ed %08x\n",
char *type = "";
ohci_dbg (ohci, "%s, ed %p state 0x%x type %s; next ed %08x\n",
@@
-359,7
+359,7
@@
ohci_dump_ed (const struct ohci_hcd *ohci, const char *label,
type,
0x007f & le32_to_cpu (tmp));
ohci_dbg (ohci, " tds: head %08x %s%s tail %08x%s\n",
type,
0x007f & le32_to_cpu (tmp));
ohci_dbg (ohci, " tds: head %08x %s%s tail %08x%s\n",
-
tmp =
le32_to_cpup (&ed->hwHeadP),
+ le32_to_cpup (&ed->hwHeadP),
(ed->hwHeadP & ED_C) ? data1 : data0,
(ed->hwHeadP & ED_H) ? " HALT" : "",
le32_to_cpup (&ed->hwTailP),
(ed->hwHeadP & ED_C) ? data1 : data0,
(ed->hwHeadP & ED_H) ? " HALT" : "",
le32_to_cpup (&ed->hwTailP),
@@
-415,8
+415,8
@@
show_list (struct ohci_hcd *ohci, char *buf, size_t count, struct ed *ed)
/* dump a snapshot of the bulk or control schedule */
while (ed) {
/* dump a snapshot of the bulk or control schedule */
while (ed) {
-
u32
info = ed->hwINFO;
- u32 scratch =
cpu_to_le32
p (&ed->hwINFO);
+
__le32
info = ed->hwINFO;
+ u32 scratch =
le32_to_cpu
p (&ed->hwINFO);
struct list_head *entry;
struct td *td;
struct list_head *entry;
struct td *td;
@@
-439,7
+439,7
@@
show_list (struct ohci_hcd *ohci, char *buf, size_t count, struct ed *ed)
u32 cbp, be;
td = list_entry (entry, struct td, td_list);
u32 cbp, be;
td = list_entry (entry, struct td, td_list);
- scratch =
cpu_to_le32
p (&td->hwINFO);
+ scratch =
le32_to_cpu
p (&td->hwINFO);
cbp = le32_to_cpup (&td->hwCBP);
be = le32_to_cpup (&td->hwBE);
temp = scnprintf (buf, size,
cbp = le32_to_cpup (&td->hwCBP);
be = le32_to_cpup (&td->hwBE);
temp = scnprintf (buf, size,
@@
-541,8
+541,8
@@
show_periodic (struct class_device *class_dev, char *buf)
/* show more info the first time around */
if (temp == seen_count) {
/* show more info the first time around */
if (temp == seen_count) {
-
u32
info = ed->hwINFO;
- u32 scratch =
cpu_to_le32
p (&ed->hwINFO);
+
__le32
info = ed->hwINFO;
+ u32 scratch =
le32_to_cpu
p (&ed->hwINFO);
struct list_head *entry;
unsigned qlen = 0;
struct list_head *entry;
unsigned qlen = 0;
@@
-599,7
+599,7
@@
show_registers (struct class_device *class_dev, char *buf)
struct usb_bus *bus;
struct usb_hcd *hcd;
struct ohci_hcd *ohci;
struct usb_bus *bus;
struct usb_hcd *hcd;
struct ohci_hcd *ohci;
- struct ohci_regs
*regs;
+ struct ohci_regs
__iomem
*regs;
unsigned long flags;
unsigned temp, size;
char *next;
unsigned long flags;
unsigned temp, size;
char *next;