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
29f077e4
Commit
29f077e4
authored
Oct 30, 2012
by
Alessandro Rubini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
doc and header: portability docs and fix
Signed-off-by:
Alessandro Rubini
<
rubini@gnudd.com
>
parent
ece4856b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
0 deletions
+19
-0
fmc-bus.in
doc/fmc-bus.in
+11
-0
fmc.h
kernel/include/linux/fmc.h
+8
-0
No files found.
doc/fmc-bus.in
View file @
29f077e4
...
...
@@ -1011,7 +1011,18 @@ checkout from when it is a submodule.
As the last bits are fixed I'll update this chapter, and I'll remove
this section when everything is verified by a larger user base.
@c ##########################################################################
@node Portability
@chapter Portability
This package should be portable. However I didn't test it on a wide
variety of system. I used it on a 32-bit x86 host, running version 2.6.32
and 3.4 of the kernel.
I verified that it compiles without any warning from version 2.6.27 up
to 3.5, on a 32-bit x86 processor. On 2.6.26 it fails for changes in
the Linux device structures. On 2.6.25 and earlier it fails much more
badly.
@bye
@c LocalWords: gnudd titlepage iftex texinfo CERN documentlanguage settitle
...
...
kernel/include/linux/fmc.h
View file @
29f077e4
...
...
@@ -80,6 +80,14 @@ struct fmc_gpio {
#define FMC_GPIO_USER(x) ((x) + 0x1400)
/* 256 of them */
/* We may add SCL and SDA, or other roles if the need arises */
/* GPIOF_DIR_IN etc are missing before 3.0. copy from <linux/gpio.h> */
#ifndef GPIOF_DIR_IN
# define GPIOF_DIR_OUT (0 << 0)
# define GPIOF_DIR_IN (1 << 0)
# define GPIOF_INIT_LOW (0 << 1)
# define GPIOF_INIT_HIGH (1 << 1)
#endif
/*
* The operations are offered by each carrier and should make driver
* design completely independent of th carrier. Named GPIO pins may be
...
...
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