Message ID | 1367847325-21463-2-git-send-email-dirk.eibach@gdsys.cc |
---|---|
State | Changes Requested |
Delegated to: | Wolfgang Denk |
Headers | show |
Dear dirk.eibach@gdsys.cc, In message <1367847325-21463-2-git-send-email-dirk.eibach@gdsys.cc> you wrote: > From: Dirk Eibach <eibach@gdsys.de> > > A set of accessor functions was added to be able to access not only > memory mapped FPGA in a generic way. > > Signed-off-by: Dirk Eibach <dirk.eibach@gdsys.cc> > --- > Changes in v2: None > > include/gdsys_fpga.h | 5 +++++ > 1 files changed, 5 insertions(+), 0 deletions(-) This patch makes no sense. Please squash it with the patch that actually uses the new definition. Best regards, Wolfgang Denk
Dear dirk.eibach@gdsys.cc, In message <1367847325-21463-2-git-send-email-dirk.eibach@gdsys.cc> you wrote: > From: Dirk Eibach <eibach@gdsys.de> > > A set of accessor functions was added to be able to access not only > memory mapped FPGA in a generic way. Please squash with patch that actually uses this define. Best regards, Wolfgang Denk
diff --git a/include/gdsys_fpga.h b/include/gdsys_fpga.h index 1758d74..c12a31d 100644 --- a/include/gdsys_fpga.h +++ b/include/gdsys_fpga.h @@ -32,9 +32,14 @@ enum { FPGA_STATE_PLATFORM = 1 << 2, }; +#define REG(reg) offsetof(struct ihs_fpga, reg) + int get_fpga_state(unsigned dev); void print_fpga_state(unsigned dev); +void fpga_set_reg(unsigned int fpga, u16 reg, u16 data); +u16 fpga_get_reg(unsigned int fpga, u16 reg); + struct ihs_gpio { u16 read; u16 clear;