Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
FMC Bus
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
FMC Bus
Commits
8ff304e3
Commit
8ff304e3
authored
Jul 24, 2012
by
Alessandro Rubini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fmc: read/writel can be null if base is provided
parent
01fbb402
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
fmc-bus.in
doc/fmc-bus.in
+5
-5
No files found.
doc/fmc-bus.in
View file @
8ff304e3
...
...
@@ -202,11 +202,11 @@ The individual methods perform the following tasks:
These functions access FPGA registers by whatever means the
carrier offers. They are not expected to fail, as most of the time
they will just make a memory access to the host bus.
Whil
e
ca
lling a function is slower than making direct access with macros,
flexibility requires this approach. Drivers may use the @code
{
base
}
pointer at their own risk, or maybe later specifications will mandate
@code
{
base
}
to be equivalent to @i
{
readl
}
/@i
{
writel
}
if not
NULL.
they will just make a memory access to the host bus.
If th
e
ca
rrier provided a @i
{
base
}
pointer, the driver may use direct
access through it instead. For this reason the header offers
the inline functions @i
{
fmc
_
readl
}
and @i
{
fmc
_
writel
}
that
access @i
{
base
}
if respective method is
NULL.
For Etherbone, or other non-local carriers,
error-management is still to be defined.
...
...
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