Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
FMC ADC 100M 14b 4cha - Software
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 ADC 100M 14b 4cha - Software
Commits
bb852ee1
Commit
bb852ee1
authored
Mar 06, 2014
by
Alessandro Rubini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
trivial: move defines within header
Signed-off-by:
Alessandro Rubini
<
rubini@gnudd.com
>
parent
46d52fa7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
9 deletions
+10
-9
fmc-adc.h
kernel/fmc-adc.h
+10
-9
No files found.
kernel/fmc-adc.h
View file @
bb852ee1
...
...
@@ -52,11 +52,6 @@ struct fa_calib {
struct
fa_calib_stanza
dac
[
3
];
/* For user offset, one per range */
};
#define FA_CAL_OFFSET 0x0100
/* Offset in EEPROM */
#define FA_CAL_NO_OFFSET ((int16_t)0x0000)
#define FA_CAL_NO_GAIN ((uint16_t)0x8000)
/*
* fa_dma_item: The information about a DMA transfer
* @start_addr: pointer where start to retrieve data from device memory
...
...
@@ -300,6 +295,16 @@ enum zfat_irq {
#include <linux/dma-mapping.h>
#include <linux/scatterlist.h>
#define FA_CAL_OFFSET 0x0100
/* Offset in EEPROM */
#define FA_CAL_NO_OFFSET ((int16_t)0x0000)
#define FA_CAL_NO_GAIN ((uint16_t)0x8000)
/* SPI Slave Select lines (as defined in spec_top_fmc_adc_100Ms.vhd) */
#define FA_SPI_SS_ADC 0
#define FA_SPI_SS_DAC(ch) ((ch) + 1)
/* Global variable exported by fa-zio-trg.c */
extern
struct
zio_trigger_type
zfat_type
;
static
inline
int
zfat_overflow_detection
(
struct
zio_ti
*
ti
,
unsigned
int
addr
,
...
...
@@ -347,10 +352,6 @@ static inline struct fa_dev *get_zfadc(struct device *dev)
return
NULL
;
}
/* SPI Slave Select lines (as defined in spec_top_fmc_adc_100Ms.vhd) */
#define FA_SPI_SS_ADC 0
#define FA_SPI_SS_DAC(ch) ((ch) + 1)
/* Hardware filed-based access */
static
inline
int
zfa_hardware_write
(
struct
fa_dev
*
fa
,
enum
zfadc_dregs_enum
index
,
...
...
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