[Armadillo:06059] Re: ローム製無線LANデバイスのデバイスドライバに関して

nakai email@hidden
2010年 11月 2日 (火) 15:31:27 JST


nakai$B$G$9!#(B

FN$B$G$ODL$8$^$;$s$M!#$9$_$^$;$s!#(B

$B%U%!%s%/%7%g%s(B0: Common I/O Area
0x000000-0x0000ff   CCCR

$B%U%!%s%/%7%g%s(B1: 128K Register Space
0x000000-0x01ffff   Function Unique


$B%U%!%s%/%7%g%s(B0$B$N%"%I%l%9(B0$B$O(BCCCR$B$,G[CV$5$l$F$$$^$9!#(B
$B$G$9$,!"%U%!%s%/%7%g%s(B1$B$N%"%I%l%9(B0$B$O!"%G%P%$%9(B($B%U%!%s%/%7%g%s(B)$B8GM-$N%l%8%9%?$K$J$j$^$9!#(B
$B>\$7$/$O!"(BSDIO Spec$B$N(B
$B!&!V(BSDIO Fixed Internal Map$B!W(B
$B!&!V(BIO_RW_DIRECT Command (CMD52)$B!W(B
$B!&!V(BIO_RW_EXTENDED Command (CMD53)$B!W(B
$B$J$I$r$4Mw$/$@$5$$!#(B

>> #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(B1$B$K$O!">e5-$N$h$&$K(B8bit$B%l%8%9%?$,G[CV$5$l$F$$$k$h$&$G$9!#(B

$B$^$?!"(Blinux$B$N(BSDIO$B%3%"$,(BCCCR$B$K%"%/%;%9$9$k>l9g$O!"L@<(E*$K(B
sdio_f0_read/f0_write$B$r;HMQ$7$F$$$^$9!#(B
$BBP$7$F!"%U%!%s%/%7%g%s%l%8%9%?$K%"%/%;%9$9$k>l9g$O!"(B
sdio_read/write$B$,;H$o$l$F$$$^$9!#(B
$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!#(B
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!#(B


(2010/11/02 15:08), email@hidden wrote:
> $email@hidden!((Bnakai$BMM(B
> $B$*@$OC$K$J$C$F$*$j$^$9!#(BT$B<R>eB<$G$9!#(B
> $B$42sEzM-Fq$&8f:B$$$^$9!#(B
> $B0J2<$NE@!"$465<(2<$5$$!#(B
> 
> $B-!!d$42sEz!((BFN0$B$N%"%I%l%9(B0$B$O!"(BCCCR$B$G$9$,!"(B
> FN0$B$H$O2?$NN,$G$7$g$&$+!)(B
> 
> $B-"(B>$B$42sEz!((BFN1$B$N$?$a!"%G%P%$%98GM-$N%l%8%9%?$K$J$j$^$9!#(B
> FN1$B$H$O2?$NN,$G$7$g$&$+!)(B
> 
> FN1$B$N$?$a!"%G%P%$%98GM-$N%l%8%9%?$H$O!"(BCCCR$B%l%8%9%?$r$3$NL5@~%G%P%$%9$G8GM-$K;H$C$F$$$k$H$$$&$3$H$G$7$g$&$+!)(B
> 
> $B$*K;$7$$$H$3$m??$K?=$7Lu8f:B$$$^$;$s$,!"$h$m$7$/$*4j$$CW$7$^$9!#(B
> 
> 
> -----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(B
> 
> nakai$B$G$9!#(B
> 
> FN0$B$N%"%I%l%9(B0$B$O!"(BCCCR$B$G$9$,!"(B
> FN1$B$N$?$a!"%G%P%$%98GM-$N%l%8%9%?$K$J$j$^$9!#(B
> 
> 
> (2010/11/02 12:58), email@hidden wrote:
>>
>>
>> $B$*@$OC$K$J$C$F$*$j$^$9!#(B
>>
>> T$B<R$N>eB<$G$9!#(B
>>
>> $BB~:#!"(BArmajillo500FX$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(B(Linux)$B$K4X$7$F8f>\$7$$J}!"$465<(D:$1$J$$$G$7$g$&$+!#(B
>>
>>
>>
>> $B%G%P%$%9%I%i%$%P(B(Linux)$B$K$*$$$F!"(BSDIO$B$N(BCCCR(Card Common Control Registers)$B%l%8%9%?$N%"%I%l%9#0(B(AERIAL_F1REG_SD2AHB_BLOCKLEN_LSB)$B$X(Bblock length($BAw?.%V%m%C%/D9!)(B)$B$email@hidden$7$F$$$k2U=j$,$"$j$^$9!#(B
>>
>> $BE:IU$N(BSDIO$B5,3J$G$O!"%"%I%l%9#0$O(BCCCR$B%U%)!<%^%C%H%P!<%8%g%sHV9f!!Ey$r07$&$h$&$K5-=R$5$l$F$$$k$N$G$9$,!"(Bblock length($BAw?.%V%m%C%/D9!)(B)$B$email@hidden$7$F$$$k$h$&$K8+<u$1$i$l$^$9!#(B
>>
>> $B8f>\$7$$J}$,!"$"$i$l$^$7$?$i$465<(D:$1$J$$$G$7$g$&$+!#(B
>>
>> $B$h$m$7$/$*4j$$CW$7$^$9!#(B
>>
>>
>>
>> #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!!!!!!!!(Bsdio_writeb(func, AERIAL_WRITE_WORD_SIZE&
>>
>> $B!!!!!!!!(B0xff,AERIAL_F1REG_SD2AHB_BLOCKLEN_LSB,&ret);
>>
>>                               if (!ret)
>>
>>                               {val =
>>
>> $B!!!!!!!!!!!!!!!!!!(Bsdio_readb(func,AERIAL_F1REG_SD2AHB_BLOCKLEN_LSB,&ret);
>>
>>                                             if (val == (AERIAL_WRITE_WORD_SIZE&   0xff))
>>
>>                                                           break;}
>>
>>                 }
>>
>>
>>
>>       $B0J2<$O!"(BSDIO$B$N(BCCCR(Card Common Control Registers)$B%l%8%9%?$N%"%I%l%9$G$9!#(B
>>
>>
>>
>>
>>
>> $B0J>e!"$h$m$7$/$*4j$$CW$7$^$9!#(B
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> _______________________________________________
>> 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 メーリングリストの案内