[Armadillo:06073] Re: ローム製無線LANデバイスのデバイスドライバに関して
email@hidden
2010年 11月 4日 (木) 09:42:49 JST
Nakai$BMM(J
$BBgJQ$*@$OC$K$J$C$F$*$j$^$9!#(J
$B$4JV?.M-Fq$&8f:B$$$^$7$?!#(J
Function$B#1$N%(%j%"$O!"3F%f!<%6!<$,<+M3$K;HMQ$7$F$h$$%(%j%"$H9M$($F$h$$$N$G$7$g$&$+!#(J
#define AERIAL_F1READBUFFER_ADDR (0x00008)$B$N%"%I%l%9$X(J
sdio_writesb(func, AERIAL_F1WRITEBUFFER_ADDR, &txbuf, AERIAL_WRITE_SIZE)$B4X?t$r;H$$(J5byte$B$N%G!<%?$r(Jwrite$B$7$F!"(Jval = sdio_readb(func,AERIAL_F1READBUFFER_ADDR, &ret);$B4X?t$G=q$-9~$s$@%G!<%?$email@hidden,$N#1(Jbyte$B$r(Jread$B;EMM$H$7$?$N$G$9$,!"0J2<$N$h$&$J(Jwarning$B$,H/@8$7$F!"@5>o$K(Jread$B$G$-$^$;$s$G$7$?!#(J
Write$B$7$?%G!<%?$r(Jsdio_readb$B4X?t$G!"$$$-$J$j(Jread$B$7$h$&$H$7$F$bL5M}$J$N$G$7$g$&$+!)(J
$B2?$+8f5$IU$email@hidden$j$^$7$?$i!"$"$j$,$?$$$G$9!#(J
------------[ cut here ]------------
WARNING: at drivers/mmc/core/core.c:219 mmc_wait_for_cmd+0x78/0x80()
Modules linked in: aerial
[<c002c91c>] (dump_stack+0x0/0x14) from [<c004e988>] (warn_on_slowpath+0x4c/0x68)
[<c004e93c>] (warn_on_slowpath+0x0/0x68) from [<c01c9874>] (mmc_wait_for_cmd+0x78/0x80)
r6:c6bc0c00 r5:00000000 r4:c1439ec4
[<c01c97fc>] (mmc_wait_for_cmd+0x0/0x80) from [<c01cd1a4>] (mmc_io_rw_direct+0xa0/0x134)
r7:00000000 r6:c6542400 r5:00000000 r4:00000001
[<c01cd104>] (mmc_io_rw_direct+0x0/0x134) from [<c01cdff0>] (sdio_readb+0x4c/0x74)
[<c01cdfa4>] (sdio_readb+0x0/0x74) from [<bf000a14>] (hrms_read+0x88/0xa0 [aerial])
r4:c7c92120
[<bf00098c>] (hrms_read+0x0/0xa0 [aerial]) from [<c00a2f60>] (vfs_read+0xb4/0x14c)
r6:c1439f80 r5:be833bc6 r4:c58601c0
[<c00a2eac>] (vfs_read+0x0/0x14c) from [<c00a3434>] (sys_read+0x4c/0x84)
r7:00000003 r6:00000000 r5:00000000 r4:c58601c0
[<c00a33e8>] (sys_read+0x0/0x84) from [<c0028ae0>] (ret_fast_syscall+0x0/0x2c)
r6:be833e34 r5:4001ce14 r4:00000000
---[ end trace 6da01b16d733f5cd ]---
------------[ cut here ]------------
WARNING: at drivers/mmc/core/core.c:146 mmc_wait_for_req+0x10c/0x118()
Modules linked in: aerial
[<c002c91c>] (dump_stack+0x0/0x14) from [<c004e988>] (warn_on_slowpath+0x4c/0x68)
[<c004e93c>] (warn_on_slowpath+0x0/0x68) from [<c01c97f0>] (mmc_wait_for_req+0x10c/0x118)
r6:00000000 r5:c6bc0c00 r4:c1439e90
[<c01c96e4>] (mmc_wait_for_req+0x0/0x118) from [<c01c9864>] (mmc_wait_for_cmd+0x68/0x80)
r7:c1439e90 r6:c6bc0c00 r5:00000000 r4:c1439ec4
[<c01c97fc>] (mmc_wait_for_cmd+0x0/0x80) from [<c01cd1a4>] (mmc_io_rw_direct+0xa0/0x134)
r7:00000000 r6:c6542400 r5:00000000 r4:00000001
[<c01cd104>] (mmc_io_rw_direct+0x0/0x134) from [<c01cdff0>] (sdio_readb+0x4c/0x74)
[<c01cdfa4>] (sdio_readb+0x0/0x74) from [<bf000a14>] (hrms_read+0x88/0xa0 [aerial])
r4:c7c92120
[<bf00098c>] (hrms_read+0x0/0xa0 [aerial]) from [<c00a2f60>] (vfs_read+0xb4/0x14c)
r6:c1439f80 r5:be833bc6 r4:c58601c0
[<c00a2eac>] (vfs_read+0x0/0x14c) from [<c00a3434>] (sys_read+0x4c/0x84)
r7:00000003 r6:00000000 r5:00000000 r4:c58601c0
[<c00a33e8>] (sys_read+0x0/0x84) from [<c0028ae0>] (ret_fast_syscall+0x0/0x2c)
r6:be833e34 r5:4001ce14 r4:00000000
---[ end trace 6da01b16d733f5cd ]---
read_error_to_DUT=0
$B0J>e$G$9!#(J
-----Original Message-----
From: email@hidden [mailto:email@hidden] On Behalf Of nakai
Sent: Tuesday, November 02, 2010 3:31 PM
To: Armadillo series general discussion list
Subject: [Armadillo:06059] Re: $B%m!<%`@=L5@~#L#A#N%G%P%$%9$N%G%P%$%9%I%i%$%P$K4X$7$F(J
nakai$B$G$9!#(J
FN$B$G$ODL$8$^$;$s$M!#$9$_$^$;$s!#(J
$B%U%!%s%/%7%g%s(J0: Common I/O Area
0x000000-0x0000ff CCCR
$B%U%!%s%/%7%g%s(J1: 128K Register Space
0x000000-0x01ffff Function Unique
$B%U%!%s%/%7%g%s(J0$B$N%"%I%l%9(J0$B$O(JCCCR$B$,G[CV$5$l$F$$$^$9!#(J
$B$G$9$,!"%U%!%s%/%7%g%s(J1$B$N%"%I%l%9(J0$B$O!"%G%P%$%9(J($B%U%!%s%/%7%g%s(J)$B8GM-$N%l%8%9%?$K$J$j$^$9!#(J
$B>\$7$/$O!"(JSDIO Spec$B$N(J
$B!&!V(JSDIO Fixed Internal Map$B!W(J
$B!&!V(JIO_RW_DIRECT Command (CMD52)$B!W(J
$B!&!V(JIO_RW_EXTENDED Command (CMD53)$B!W(J
$B$J$I$r$4Mw$/$@$5$$!#(J
>> #define AERIAL_F1REG_SD2AHB_BLOCKLEN_LSB (0x00000)
>> #define AERIAL_F1REG_SD2AHB_BLOCKLEN_MSB (0x00001)
>> #define AERIAL_F1REG_AHB2SD_BLOCKLEN_LSB (0x00002)
>> #define AERIAL_F1REG_AHB2SD_BLOCKLEN_MSB (0x00003)
BW9419$B$N%U%!%s%/%7%g%s(J1$B$K$O!">e5-$N$h$&$K(J8bit$B%l%8%9%?$,G[CV$5$l$F$$$k$h$&$G$9!#(J
$B$^$?!"(Jlinux$B$N(JSDIO$B%3%"$,(JCCCR$B$K%"%/%;%9$9$k>l9g$O!"L@<(E*$K(J
sdio_f0_read/f0_write$B$r;HMQ$7$F$$$^$9!#(J
$BBP$7$F!"%U%!%s%/%7%g%s%l%8%9%?$K%"%/%;%9$9$k>l9g$O!"(J
sdio_read/write$B$,;H$o$l$F$$$^$9!#(J
$B$3$l$O!"BP1~$9$k%U%!%s%/%7%g%s$N%l%8%9%?%9%Z!<%9$K%"%/%;%9$9$k$?$a$G$9!#(J
CMD52/CMD53$B$rH/9T$9$k>l9g$K!"3:Ev%U%!%s%/%7%g%sHV9f$r<+F0E*$KA^F~$9$k$h$&$K$J$C$F$$$^$9!#(J
(2010/11/02 15:08), email@hidden wrote:
> $email@hidden!((Jnakai$BMM(J
> $B$*@$OC$K$J$C$F$*$j$^$9!#(JT$B<R>eB<$G$9!#(J
> $B$42sEzM-Fq$&8f:B$$$^$9!#(J
> $B0J2<$NE@!"$465<(2<$5$$!#(J
>
> $B-!!d$42sEz!((JFN0$B$N%"%I%l%9(J0$B$O!"(JCCCR$B$G$9$,!"(J
> FN0$B$H$O2?$NN,$G$7$g$&$+!)(J
>
> $B-"(J>$B$42sEz!((JFN1$B$N$?$a!"%G%P%$%98GM-$N%l%8%9%?$K$J$j$^$9!#(J
> FN1$B$H$O2?$NN,$G$7$g$&$+!)(J
>
> FN1$B$N$?$a!"%G%P%$%98GM-$N%l%8%9%?$H$O!"(JCCCR$B%l%8%9%?$r$3$NL5@~%G%P%$%9$G8GM-$K;H$C$F$$$k$H$$$&$3$H$G$7$g$&$+!)(J
>
> $B$*K;$7$$$H$3$m??$K?=$7Lu8f:B$$$^$;$s$,!"$h$m$7$/$*4j$$CW$7$^$9!#(J
>
>
> -----Original Message-----
> From: email@hidden [mailto:email@hidden] On Behalf Of nakai
> Sent: Tuesday, November 02, 2010 1:08 PM
> To: Armadillo series general discussion list
> Subject: [Armadillo:06056] Re: $B%m!<%`@=L5@~#L#A#N%G%P%$%9$N%G%P%$%9%I%i%$%P$K4X$7$F(J
>
> nakai$B$G$9!#(J
>
> FN0$B$N%"%I%l%9(J0$B$O!"(JCCCR$B$G$9$,!"(J
> FN1$B$N$?$a!"%G%P%$%98GM-$N%l%8%9%?$K$J$j$^$9!#(J
>
>
> (2010/11/02 12:58), email@hidden wrote:
>>
>>
>> $B$*@$OC$K$J$C$F$*$j$^$9!#(J
>>
>> T$B<R$N>eB<$G$9!#(J
>>
>> $BB~:#!"(JArmajillo500FX$B$K%m!<%`@=L5@~#L#A#N$r@\B3$7$F$$$k$N$G$9$,!"L5@~#L#A#N%G%P%$%9$KIUB0$7$F$$$k%[%9%HB&%G%P%$%9%I%i%$%P(J(Linux)$B$K4X$7$F8f>\$7$$J}!"$465<(D:$1$J$$$G$7$g$&$+!#(J
>>
>>
>>
>> $B%G%P%$%9%I%i%$%P(J(Linux)$B$K$*$$$F!"(JSDIO$B$N(JCCCR(Card Common Control Registers)$B%l%8%9%?$N%"%I%l%9#0(J(AERIAL_F1REG_SD2AHB_BLOCKLEN_LSB)$B$X(Jblock length($BAw?.%V%m%C%/D9!)(J)$B$email@hidden$7$F$$$k2U=j$,$"$j$^$9!#(J
>>
>> $BE:IU$N(JSDIO$B5,3J$G$O!"%"%I%l%9#0$O(JCCCR$B%U%)!<%^%C%H%P!<%8%g%sHV9f!!Ey$r07$&$h$&$K5-=R$5$l$F$$$k$N$G$9$,!"(Jblock length($BAw?.%V%m%C%/D9!)(J)$B$email@hidden$7$F$$$k$h$&$K8+<u$1$i$l$^$9!#(J
>>
>> $B8f>\$7$$J}$,!"$"$i$l$^$7$?$i$465<(D:$1$J$$$G$7$g$&$+!#(J
>>
>> $B$h$m$7$/$*4j$$CW$7$^$9!#(J
>>
>>
>>
>> #define AERIAL_F1REG_SD2AHB_BLOCKLEN_LSB (0x00000)
>>
>> #define AERIAL_F1REG_SD2AHB_BLOCKLEN_MSB (0x00001)
>>
>> #define AERIAL_F1REG_AHB2SD_BLOCKLEN_LSB (0x00002)
>>
>> #define AERIAL_F1REG_AHB2SD_BLOCKLEN_MSB (0x00003)
>>
>> #define AERIAL_F1REG_INT_MASK_REG (0x00004)
>>
>> #define AERIAL_F1REG_FUNC1_INT_PENDING (0x00005)
>>
>> #define AERIAL_F1REG_FUNC1_INT_STATUS (0x00006)
>>
>> #define AERIAL_F1WRITEBUFFER_ADDR (0x00007)
>>
>> #define AERIAL_F1READBUFFER_ADDR (0x00008)
>>
>>
>>
>> aerial_send_prepare(struct sdio_func *func) {
>>
>> unsigned char val;
>>
>> int retry = 100;
>>
>> int ret = -EIO;
>>
>> /* Set block length as word(32bit) to SD2AHB register (LSB) */
>>
>> retry = 10;
>>
>> while (retry--)
>>
>> {
>>
>> $B!!!!!!!!(Jsdio_writeb(func, AERIAL_WRITE_WORD_SIZE&
>>
>> $B!!!!!!!!(J0xff,AERIAL_F1REG_SD2AHB_BLOCKLEN_LSB,&ret);
>>
>> if (!ret)
>>
>> {val =
>>
>> $B!!!!!!!!!!!!!!!!!!(Jsdio_readb(func,AERIAL_F1REG_SD2AHB_BLOCKLEN_LSB,&ret);
>>
>> if (val == (AERIAL_WRITE_WORD_SIZE& 0xff))
>>
>> break;}
>>
>> }
>>
>>
>>
>> $B0J2<$O!"(JSDIO$B$N(JCCCR(Card Common Control Registers)$B%l%8%9%?$N%"%I%l%9$G$9!#(J
>>
>>
>>
>>
>>
>> $B0J>e!"$h$m$7$/$*4j$$CW$7$^$9!#(J
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> _______________________________________________
>> armadillo mailing list
>> email@hidden
>> http://lists.atmark-techno.com/cgi-bin/mailman/listinfo/armadillo
>
> _______________________________________________
> armadillo mailing list
> email@hidden
> http://lists.atmark-techno.com/cgi-bin/mailman/listinfo/armadillo
>
>
>
> _______________________________________________
> armadillo mailing list
> email@hidden
> http://lists.atmark-techno.com/cgi-bin/mailman/listinfo/armadillo
armadillo メーリングリストの案内