Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
6e544044
Commit
6e544044
authored
Sep 17, 2004
by
Linus Torvalds
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
usb: add host controller __iomem annotations
parent
db119cd4
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
14 additions
and
14 deletions
+14
-14
drivers/usb/core/hcd-pci.c
drivers/usb/core/hcd-pci.c
+2
-2
drivers/usb/core/hcd.h
drivers/usb/core/hcd.h
+1
-1
drivers/usb/host/ehci-hcd.c
drivers/usb/host/ehci-hcd.c
+3
-3
drivers/usb/host/ehci.h
drivers/usb/host/ehci.h
+2
-2
drivers/usb/host/ohci-dbg.c
drivers/usb/host/ohci-dbg.c
+2
-2
drivers/usb/host/ohci-hcd.c
drivers/usb/host/ohci-hcd.c
+1
-1
drivers/usb/host/ohci-hub.c
drivers/usb/host/ohci-hub.c
+1
-1
drivers/usb/host/ohci.h
drivers/usb/host/ohci.h
+2
-2
No files found.
drivers/usb/core/hcd-pci.c
View file @
6e544044
...
@@ -65,7 +65,7 @@ int usb_hcd_pci_probe (struct pci_dev *dev, const struct pci_device_id *id)
...
@@ -65,7 +65,7 @@ int usb_hcd_pci_probe (struct pci_dev *dev, const struct pci_device_id *id)
{
{
struct
hc_driver
*
driver
;
struct
hc_driver
*
driver
;
unsigned
long
resource
,
len
;
unsigned
long
resource
,
len
;
void
*
base
;
void
__iomem
*
base
;
struct
usb_hcd
*
hcd
;
struct
usb_hcd
*
hcd
;
int
retval
,
region
;
int
retval
,
region
;
char
buf
[
8
],
*
bufp
=
buf
;
char
buf
[
8
],
*
bufp
=
buf
;
...
@@ -121,7 +121,7 @@ int usb_hcd_pci_probe (struct pci_dev *dev, const struct pci_device_id *id)
...
@@ -121,7 +121,7 @@ int usb_hcd_pci_probe (struct pci_dev *dev, const struct pci_device_id *id)
dev_dbg
(
&
dev
->
dev
,
"no i/o regions available
\n
"
);
dev_dbg
(
&
dev
->
dev
,
"no i/o regions available
\n
"
);
return
-
EBUSY
;
return
-
EBUSY
;
}
}
base
=
(
void
*
)
resource
;
base
=
(
void
__iomem
*
)
resource
;
}
}
// driver->reset(), later on, will transfer device from
// driver->reset(), later on, will transfer device from
...
...
drivers/usb/core/hcd.h
View file @
6e544044
...
@@ -77,7 +77,7 @@ struct usb_hcd { /* usb_bus.hcpriv points to this */
...
@@ -77,7 +77,7 @@ struct usb_hcd { /* usb_bus.hcpriv points to this */
unsigned
can_wakeup
:
1
;
/* hw supports wakeup? */
unsigned
can_wakeup
:
1
;
/* hw supports wakeup? */
unsigned
remote_wakeup
:
1
;
/* sw should use wakeup? */
unsigned
remote_wakeup
:
1
;
/* sw should use wakeup? */
int
irq
;
/* irq allocated */
int
irq
;
/* irq allocated */
void
*
regs
;
/* device memory/io */
void
__iomem
*
regs
;
/* device memory/io */
#ifdef CONFIG_PCI
#ifdef CONFIG_PCI
int
region
;
/* pci region for regs */
int
region
;
/* pci region for regs */
...
...
drivers/usb/host/ehci-hcd.c
View file @
6e544044
...
@@ -155,7 +155,7 @@ MODULE_PARM_DESC (log2_irq_thresh, "log2 IRQ latency, 1-64 microframes");
...
@@ -155,7 +155,7 @@ MODULE_PARM_DESC (log2_irq_thresh, "log2 IRQ latency, 1-64 microframes");
* before driver shutdown. But it also seems to be caused by bugs in cardbus
* before driver shutdown. But it also seems to be caused by bugs in cardbus
* bridge shutdown: shutting down the bridge before the devices using it.
* bridge shutdown: shutting down the bridge before the devices using it.
*/
*/
static
int
handshake
(
u32
*
ptr
,
u32
mask
,
u32
done
,
int
usec
)
static
int
handshake
(
u32
__iomem
*
ptr
,
u32
mask
,
u32
done
,
int
usec
)
{
{
u32
result
;
u32
result
;
...
@@ -340,8 +340,8 @@ static int ehci_hc_reset (struct usb_hcd *hcd)
...
@@ -340,8 +340,8 @@ static int ehci_hc_reset (struct usb_hcd *hcd)
spin_lock_init
(
&
ehci
->
lock
);
spin_lock_init
(
&
ehci
->
lock
);
ehci
->
caps
=
(
struct
ehci_caps
*
)
hcd
->
regs
;
ehci
->
caps
=
hcd
->
regs
;
ehci
->
regs
=
(
struct
ehci_regs
*
)
(
hcd
->
regs
+
ehci
->
regs
=
(
hcd
->
regs
+
HC_LENGTH
(
readl
(
&
ehci
->
caps
->
hc_capbase
)));
HC_LENGTH
(
readl
(
&
ehci
->
caps
->
hc_capbase
)));
dbg_hcs_params
(
ehci
,
"reset"
);
dbg_hcs_params
(
ehci
,
"reset"
);
dbg_hcc_params
(
ehci
,
"reset"
);
dbg_hcc_params
(
ehci
,
"reset"
);
...
...
drivers/usb/host/ehci.h
View file @
6e544044
...
@@ -70,8 +70,8 @@ struct ehci_hcd { /* one per controller */
...
@@ -70,8 +70,8 @@ struct ehci_hcd { /* one per controller */
/* glue to PCI and HCD framework */
/* glue to PCI and HCD framework */
struct
usb_hcd
hcd
;
struct
usb_hcd
hcd
;
struct
ehci_caps
*
caps
;
struct
ehci_caps
__iomem
*
caps
;
struct
ehci_regs
*
regs
;
struct
ehci_regs
__iomem
*
regs
;
u32
hcs_params
;
/* cached register copy */
u32
hcs_params
;
/* cached register copy */
/* per-HC memory pools (could be per-bus, but ...) */
/* per-HC memory pools (could be per-bus, but ...) */
...
...
drivers/usb/host/ohci-dbg.c
View file @
6e544044
...
@@ -131,7 +131,7 @@ static char *hcfs2string (int state)
...
@@ -131,7 +131,7 @@ static char *hcfs2string (int state)
static
void
static
void
ohci_dump_status
(
struct
ohci_hcd
*
controller
,
char
**
next
,
unsigned
*
size
)
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
;
u32
temp
;
temp
=
ohci_readl
(
&
regs
->
revision
)
&
0xff
;
temp
=
ohci_readl
(
&
regs
->
revision
)
&
0xff
;
...
@@ -599,7 +599,7 @@ show_registers (struct class_device *class_dev, char *buf)
...
@@ -599,7 +599,7 @@ show_registers (struct class_device *class_dev, char *buf)
struct
usb_bus
*
bus
;
struct
usb_bus
*
bus
;
struct
usb_hcd
*
hcd
;
struct
usb_hcd
*
hcd
;
struct
ohci_hcd
*
ohci
;
struct
ohci_hcd
*
ohci
;
struct
ohci_regs
*
regs
;
struct
ohci_regs
__iomem
*
regs
;
unsigned
long
flags
;
unsigned
long
flags
;
unsigned
temp
,
size
;
unsigned
temp
,
size
;
char
*
next
;
char
*
next
;
...
...
drivers/usb/host/ohci-hcd.c
View file @
6e544044
...
@@ -594,7 +594,7 @@ static int hc_start (struct ohci_hcd *ohci)
...
@@ -594,7 +594,7 @@ static int hc_start (struct ohci_hcd *ohci)
static
irqreturn_t
ohci_irq
(
struct
usb_hcd
*
hcd
,
struct
pt_regs
*
ptregs
)
static
irqreturn_t
ohci_irq
(
struct
usb_hcd
*
hcd
,
struct
pt_regs
*
ptregs
)
{
{
struct
ohci_hcd
*
ohci
=
hcd_to_ohci
(
hcd
);
struct
ohci_hcd
*
ohci
=
hcd_to_ohci
(
hcd
);
struct
ohci_regs
*
regs
=
ohci
->
regs
;
struct
ohci_regs
__iomem
*
regs
=
ohci
->
regs
;
int
ints
;
int
ints
;
/* we can eliminate a (slow) ohci_readl()
/* we can eliminate a (slow) ohci_readl()
...
...
drivers/usb/host/ohci-hub.c
View file @
6e544044
...
@@ -487,7 +487,7 @@ static void start_hnp(struct ohci_hcd *ohci);
...
@@ -487,7 +487,7 @@ static void start_hnp(struct ohci_hcd *ohci);
/* called from some task, normally khubd */
/* called from some task, normally khubd */
static
inline
void
root_port_reset
(
struct
ohci_hcd
*
ohci
,
unsigned
port
)
static
inline
void
root_port_reset
(
struct
ohci_hcd
*
ohci
,
unsigned
port
)
{
{
u32
*
portstat
=
&
ohci
->
regs
->
roothub
.
portstatus
[
port
];
u32
__iomem
*
portstat
=
&
ohci
->
regs
->
roothub
.
portstatus
[
port
];
u32
temp
;
u32
temp
;
u16
now
=
readl
(
&
ohci
->
regs
->
fmnumber
);
u16
now
=
readl
(
&
ohci
->
regs
->
fmnumber
);
u16
reset_done
=
now
+
PORT_RESET_MSEC
;
u16
reset_done
=
now
+
PORT_RESET_MSEC
;
...
...
drivers/usb/host/ohci.h
View file @
6e544044
...
@@ -343,7 +343,7 @@ struct ohci_hcd {
...
@@ -343,7 +343,7 @@ struct ohci_hcd {
/*
/*
* I/O memory used to communicate with the HC (dma-consistent)
* I/O memory used to communicate with the HC (dma-consistent)
*/
*/
struct
ohci_regs
*
regs
;
struct
ohci_regs
__iomem
*
regs
;
/*
/*
* main memory used to communicate with the HC (dma-consistent).
* main memory used to communicate with the HC (dma-consistent).
...
@@ -450,7 +450,7 @@ static inline unsigned int ohci_readl (void* regs)
...
@@ -450,7 +450,7 @@ static inline unsigned int ohci_readl (void* regs)
#else
#else
/* Standard version of ohci_readl uses standard, platform
/* Standard version of ohci_readl uses standard, platform
* specific implementation. */
* specific implementation. */
static
inline
unsigned
int
ohci_readl
(
void
*
regs
)
static
inline
unsigned
int
ohci_readl
(
void
__iomem
*
regs
)
{
{
return
readl
(
regs
);
return
readl
(
regs
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment