Dear Dirk Eibach,

In message <ba0b32bf657f5f3ffb6056cc6bd04...@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

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: w...@denx.de
"Gravitation cannot be held responsible for people falling in  love."
- Albert Einstein
_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

Reply via email to