Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
NuttX RTOS
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
f4grx
NuttX RTOS
Commits
bdc7d052
Commit
bdc7d052
authored
11 years ago
by
Gregory Nutt
Browse files
Options
Downloads
Patches
Plain Diff
SAMA5 EHCI: cosmetic changes
parent
9a109ba4
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
arch/arm/src/sama5/sam_ehci.c
+15
-14
15 additions, 14 deletions
arch/arm/src/sama5/sam_ehci.c
with
15 additions
and
14 deletions
arch/arm/src/sama5/sam_ehci.c
+
15
−
14
View file @
bdc7d052
...
...
@@ -1384,22 +1384,31 @@ static void sam_qh_enqueue(struct sam_qh_s *qh)
{
uintptr_t
physaddr
;
/* Add the new QH to the head of the asynchronous queue list. */
/* Attach the old head as the new QH HLP and flush the new QH and its attached
* qTDs to RAM.
/* Set the internal fqp field. When we transverse the the QH list later,
* we need to know the correct place to start because the overlay may no
* longer point to the first qTD entry.
*/
qh
->
fqp
=
qh
->
hw
.
overlay
.
nqp
;
(
void
)
sam_qh_dump
(
qh
,
NULL
,
NULL
);
/* Add the new QH to the head of the asynchronous queue list.
*
* First, attach the old head as the new QH HLP and flush the new QH and its
* attached qTDs to RAM.
*/
qh
->
hw
.
hlp
=
g_asynchead
.
hw
.
hlp
;
sam_qh_flush
(
qh
);
/*
S
et the new QH as the first QH in the asychronous queue and flush the
/*
Then s
et the new QH as the first QH in the asychronous queue and flush the
* modified head to RAM.
*/
physaddr
=
(
uintptr_t
)
sam_physramaddr
((
uintptr_t
)
qh
);
g_asynchead
.
hw
.
hlp
=
sam_swap32
(
physaddr
|
QH_HLP_TYP_QH
);
cp15_coherent_dcache
((
uintptr_t
)
&
g_asynchead
,
(
uintptr_t
)
&
g_asynchead
+
sizeof
(
struct
ehci_qh_s
));
cp15_coherent_dcache
((
uintptr_t
)
&
g_asynchead
.
hw
,
(
uintptr_t
)
&
g_asynchead
.
hw
+
sizeof
(
struct
ehci_qh_s
));
}
/*******************************************************************************
...
...
@@ -1907,16 +1916,8 @@ static int sam_async_transfer(struct sam_rhport_s *rhport,
*
flink
=
sam_swap32
(
physaddr
);
}
/* Set the internal fqp field. When we transverse the the QH list later,
* we need to know the correct place to start because the overlay may no
* longer point to the first qTD entry.
*/
qh
->
fqp
=
qh
->
hw
.
overlay
.
nqp
;
/* Add the new QH to the head of the asynchronous queue list */
(
void
)
sam_qh_dump
(
qh
,
NULL
,
NULL
);
sam_qh_enqueue
(
qh
);
/* Release the EHCI semaphore while we wait. Other threads need the
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment