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
3853c388
Commit
3853c388
authored
Aug 02, 2012
by
Alessandro Rubini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
doc: everything there (validate, busid, ...)
parent
c32bba5f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
1 deletion
+16
-1
fmc-bus.in
doc/fmc-bus.in
+16
-1
No files found.
doc/fmc-bus.in
View file @
3853c388
...
...
@@ -186,7 +186,8 @@ this document):
struct fmc
_
operations
{
uint32
_
t (*readl)(struct fmc
_
device *fmc, int offset);
void (*writel)(struct fmc
_
device *fmc, uint32
_
t value, int offset);
int (*reprogram)(struct fmc
_
device *fmc, char *gateware);
int (*reprogram)(struct fmc
_
device *f, struct fmc
_
driver *d, char *gw);
int (*validate)(struct fmc
_
device *fmc, struct fmc
_
driver *drv);
int (*irq
_
request)(struct fmc
_
device *fmc, irq
_
handler
_
t h,
char *name, int flags);
void (*irq
_
ack)(struct fmc
_
device *fmc);
...
...
@@ -212,6 +213,20 @@ The individual methods perform the following tasks:
For Etherbone, or other non-local carriers,
error-management is still to be defined.
@item validate
Module parameters are used to manage different applications for
two two or more boards of the same kind. Validation uses
the @i
{
bus
_
id
}
module parameter (if provided) and returns the
matching index in the array. If no match is found, @code
{
-ENOENT
}
is returned; if the argument has not been specified, all
devices match the driver and 0 is returned. The value returned
by the validate method can be used as index into other parameters
(for example, some drivers use the @code
{
lm32=
}
parameter in this
way). Such ``generic parameters'' are currently documented in the
@i
{
spec-sw
}
manual; this @i
{
validate
}
method is on show in
@code
{
spec-fmc.c
}
and it is used by @code
{
fmc-trivial.c
}
.
@item reprogram
The carrier enumerates FMC devices by loading a standard (or
...
...
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