
Dear Dirk Eibach,
In message ba0b32bf657f5f3ffb6056cc6bd0452e@gdsys.cc you wrote:
OK. Once more. 3 of our 4 FPGAs are *not* memory mapped. There is no base address. This is what I want to show by:
struct ihs_fpga system_fpgas[] = { (struct ihs_fpga *)CONFIG_SYS_FPGA_BASE(0), (struct ihs_fpga *)NULL, (struct ihs_fpga *)NULL, (struct ihs_fpga *)NULL, };
For accessing registers of those (not memory mapped) FPGAs I need an u16 register-index. That is what I want to show by:
mclink_send(fpga - 1, (u16)addr, data);
Can you please provide a bit more context? What is "addr", and why does it need a cast?
This is the cast I am talking about.
This is the reason why I still need the fpga index parameter.
From these code snippets I can't see what you mean.
Best regards,
Wolfgang Denk