[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

AW: [microblaze-uclinux] FSL



Hello,
Thank you for your answer Stephane.
Next problem:
An application in Microblaze writing and reading from the FSL works.
It uses:

asm volatile ("nput %0, rfsl" "0" :: "d" (data_to_local_link[k]));

to write, and 

asm volatile ("nget %0, rfsl" "1" : "=d" (data_back_local_link[r]));

to read.

Under uClinux I try to use your example code, but the read call blocks
any time!
Did I forget some call to ioctl??
What can be the reason?
Thanks a lot.
Regards,
Raul Camaras

-----Ursprüngliche Nachricht-----
Von: owner-microblaze-uclinux@xxxxxxxxxxxxxx
[mailto:owner-microblaze-uclinux@xxxxxxxxxxxxxx] Im Auftrag von Stephane
Rousseau
Gesendet: Dienstag, 30. Oktober 2007 04:09
An: microblaze-uclinux@xxxxxxxxxxxxxx
Betreff: Re: [microblaze-uclinux] FSL

Hi Raul,

If you are on version 2.4, you can use the driver FSLFIFO made by Mr.
Williams. FSL driver are not yet available on version 2.6.

Here is an exemple assuming a request/response component on the FSL link
1 :

{
filerw = open("/dev/fslfifo1", O_RDWR);

res = write(filerw, &dataout[], dimout);

res = read(filerw, &datain[], dimin);
close(fichier);
}


Regards,

Stephane Rousseau

On 10/29/07, Raul Camaras <raul.camaras@xxxxxxxxxxxxxxxxxxx> wrote:
> Hello,
>
> does anybody have an example of using a FSL under uClinux?
> Thanks a lot.
> Regards,
>
> Raul Camaras
>
>
>
> ___________________________
> microblaze-uclinux mailing list
> microblaze-uclinux@xxxxxxxxxxxxxx
> Project Home Page :
http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
> Mailing List Archive :
http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/
>
>
___________________________
microblaze-uclinux mailing list
microblaze-uclinux@xxxxxxxxxxxxxx
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive :
http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/


___________________________
microblaze-uclinux mailing list
microblaze-uclinux@xxxxxxxxxxxxxx
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/