Commit 926b7506 authored by Alessandro Rubini's avatar Alessandro Rubini

lib, doc: added two fields to the buffer structure, changed one

We need mapaddr and mapsize for munmap() at buffer_release time.
And we need the device pointer (not drivername) in order to route
the get_tstamp method. drivername, if needed, is in the device anyways.
Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>

SQUASH proto
Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
parent 9c33b8af
......@@ -266,9 +266,9 @@ The timestamp structrure is defined as follows:
@smallexample
struct fmcadc_timestamp {
uint64_t secs;
uint64_t ticks;
uint64_t bins;
uint64_t secs;
uint64_t ticks;
uint64_t bins;
};
@end smallexample
......@@ -408,12 +408,14 @@ of the hardware), as well as other informative fields:
@smallexample
struct fmcadc_buffer {
void *data;
void *metadata;
int samplesize;
int nsamples;
char *drivername;
unsigned long flags; /* internal to the library */
void *data;
void *metadata;
int samplesize;
int nsamples;
struct fmcadc_dev *dev;
unsigned long flags; /* internal to the library */
void *mapaddr;
unsignef long maplen;
};
@end smallexample
......
......@@ -32,7 +32,9 @@ struct fmcadc_buffer {
void *metadata;
int samplesize;
int nsamples;
char *drivername;
struct fmcadc_dev *dev;
void *mapaddr;
unsigned long maplen;
unsigned long flags; /* internal to the library */
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment