projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[realview] enable support for perf events
[openwrt.git]
/
target
/
linux
/
adm5120
/
files
/
drivers
/
usb
/
host
/
adm5120.h
diff --git
a/target/linux/adm5120/files/drivers/usb/host/adm5120.h
b/target/linux/adm5120/files/drivers/usb/host/adm5120.h
index
a3acfe5
..
52fe039
100644
(file)
--- a/
target/linux/adm5120/files/drivers/usb/host/adm5120.h
+++ b/
target/linux/adm5120/files/drivers/usb/host/adm5120.h
@@
-1,7
+1,7
@@
/*
* ADM5120 HCD (Host Controller Driver) for USB
*
/*
* ADM5120 HCD (Host Controller Driver) for USB
*
- * Copyright (C) 2007
,2008 Gabor Juhos <juhosg at
openwrt.org>
+ * Copyright (C) 2007
-2008 Gabor Juhos <juhosg@
openwrt.org>
*
* This file was derived from: drivers/usb/host/ohci.h
* (C) Copyright 1999 Roman Weissgaerber <weissg@vienna.at>
*
* This file was derived from: drivers/usb/host/ohci.h
* (C) Copyright 1999 Roman Weissgaerber <weissg@vienna.at>
@@
-187,7
+187,7
@@
struct td {
/* map OHCI TD status codes (CC) to errno values */
/* map OHCI TD status codes (CC) to errno values */
-static const int cc_to_error
[16] = {
+static const int cc_to_error[16] = {
/* No Error */ 0,
/* CRC Error */ -EILSEQ,
/* Bit Stuff */ -EPROTO,
/* No Error */ 0,
/* CRC Error */ -EILSEQ,
/* Bit Stuff */ -EPROTO,
@@
-430,7
+430,14
@@
struct admhcd {
#define OHCI_QUIRK_BE_DESC 0x08 /* BE descriptors */
#define OHCI_QUIRK_BE_MMIO 0x10 /* BE registers */
#define OHCI_QUIRK_ZFMICRO 0x20 /* Compaq ZFMicro chipset*/
#define OHCI_QUIRK_BE_DESC 0x08 /* BE descriptors */
#define OHCI_QUIRK_BE_MMIO 0x10 /* BE registers */
#define OHCI_QUIRK_ZFMICRO 0x20 /* Compaq ZFMicro chipset*/
- // there are also chip quirks/bugs in init logic
+ /* there are also chip quirks/bugs in init logic */
+
+#ifdef DEBUG
+ struct dentry *debug_dir;
+ struct dentry *debug_async;
+ struct dentry *debug_periodic;
+ struct dentry *debug_registers;
+#endif
};
/* convert between an hcd pointer and the corresponding ahcd_hcd */
};
/* convert between an hcd pointer and the corresponding ahcd_hcd */
@@
-451,17
+458,17
@@
static inline struct usb_hcd *admhcd_to_hcd(const struct admhcd *ahcd)
#ifdef DEBUG
# define admhc_dbg(ahcd, fmt, args...) \
#ifdef DEBUG
# define admhc_dbg(ahcd, fmt, args...) \
- printk(KERN_DEBUG "adm5120-hcd: " fmt
, ## args
)
+ printk(KERN_DEBUG "adm5120-hcd: " fmt
, ## args
)
#else
# define admhc_dbg(ahcd, fmt, args...) do { } while (0)
#endif
#define admhc_err(ahcd, fmt, args...) \
#else
# define admhc_dbg(ahcd, fmt, args...) do { } while (0)
#endif
#define admhc_err(ahcd, fmt, args...) \
- printk(KERN_ERR "adm5120-hcd: " fmt
, ## args
)
+ printk(KERN_ERR "adm5120-hcd: " fmt
, ## args
)
#define admhc_info(ahcd, fmt, args...) \
#define admhc_info(ahcd, fmt, args...) \
- printk(KERN_INFO "adm5120-hcd: " fmt
, ## args
)
+ printk(KERN_INFO "adm5120-hcd: " fmt
, ## args
)
#define admhc_warn(ahcd, fmt, args...) \
#define admhc_warn(ahcd, fmt, args...) \
- printk(KERN_WARNING "adm5120-hcd: " fmt
, ## args
)
+ printk(KERN_WARNING "adm5120-hcd: " fmt
, ## args
)
#ifdef ADMHC_VERBOSE_DEBUG
# define admhc_vdbg admhc_dbg
#ifdef ADMHC_VERBOSE_DEBUG
# define admhc_vdbg admhc_dbg
@@
-738,7
+745,7
@@
static inline void admhc_dma_enable(struct admhcd *ahcd)
t |= ADMHC_HC_DMAE;
admhc_writel(ahcd, t, &ahcd->regs->host_control);
t |= ADMHC_HC_DMAE;
admhc_writel(ahcd, t, &ahcd->regs->host_control);
- admhc_vdbg(ahcd,"DMA enabled\n");
+ admhc_vdbg(ahcd,
"DMA enabled\n");
}
static inline void admhc_dma_disable(struct admhcd *ahcd)
}
static inline void admhc_dma_disable(struct admhcd *ahcd)
@@
-751,5
+758,5
@@
static inline void admhc_dma_disable(struct admhcd *ahcd)
t &= ~ADMHC_HC_DMAE;
admhc_writel(ahcd, t, &ahcd->regs->host_control);
t &= ~ADMHC_HC_DMAE;
admhc_writel(ahcd, t, &ahcd->regs->host_control);
- admhc_vdbg(ahcd,"DMA disabled\n");
+ admhc_vdbg(ahcd,
"DMA disabled\n");
}
}
This page took
0.028489 seconds
and
4
git commands to generate.