LinuxÄں˷ÃÎÊÍâÉèI/O×ÊÔ´µÄ·½Ê½
ÎÒÃÇÖªµÀĬÈÏÍâÉèI/O×ÊÔ´ÊDz»ÔÚLinuxÄں˿ռäÖеģ¨Èçsram»òÓ²¼þ½Ó¿Ú¼Ä´æÆ÷µÈ£©£¬ÈôÐèÒª·ÃÎʸÃÍâÉèI/O×ÊÔ´£¬±ØÐëÏȽ«ÆäµØÖ·Ó³Éäµ½Äں˿ռäÖÐÀ´£¬È»ºó²ÅÄÜÔÚÄں˿ռäÖзÃÎÊËü¡£
LinuxÄں˷ÃÎÊÍâÉèI/OÄÚ´æ×ÊÔ´µÄ·½Ê½ÓÐÁ½ÖÖ£º¶¯Ì¬Ó³Éä(ioremap)ºÍ¾²Ì¬Ó³Éä(map_desc)¡£
Ò»¡¢¶¯Ì¬Ó³Éä(ioremap)·½Ê½
¶¯Ì¬Ó³É䷽ʽÊÇ´ó¼ÒʹÓÃÁ˱Ƚ϶àµÄ£¬Ò²±È½Ï¼òµ¥¡£¼´Ö±½Óͨ¹ýÄÚºËÌṩµÄioremapº¯Êý¶¯Ì¬´´½¨Ò»¶ÎÍâÉèI/OÄÚ´æ×ÊÔ´µ½ÄÚºËÐéÄâµØÖ·µÄÓ³Éä±í£¬´Ó¶ø¿ÉÒÔÔÚÄں˿ռäÖзÃÎÊÕâ¶ÎI/O×ÊÔ´¡£
Ioremapºê¶¨ÒåÔÚasm/io.hÄÚ£º
#define ioremap(cookie,size) __ioremap(cookie,size,0)
__ioremapº¯ÊýÔÐÍΪ(arm/mm/ioremap.c)£º
void __iomem * __ioremap(unsigned long phys_addr, size_t size, unsigned long flags);
phys_addr£ºÒªÓ³ÉäµÄÆðʼµÄIOµØÖ·
size£ºÒªÓ³ÉäµÄ¿Õ¼äµÄ´óС
flags£ºÒªÓ³ÉäµÄIO¿Õ¼äºÍȨÏÞÓйصıêÖ¾
¸Ãº¯Êý·µ»ØÓ³ÉäºóµÄÄÚºËÐéÄâµØÖ·(3G-4G). ½Ó×űã¿ÉÒÔͨ¹ý¶Áд¸Ã·µ»ØµÄÄÚºËÐéÄâµØÖ·È¥·ÃÎÊÖ®Õâ¶ÎI/OÄÚ´æ×ÊÔ´¡£
¾ÙÒ»¸ö¼òµ¥µÄÀý×Ó: (È¡×Ôs3c2410µÄiisÒôƵÇý¶¯)
±ÈÈçÎÒÃÇÒª·ÃÎÊs3c2410ƽ̨ÉϵÄI2S¼Ä´æÆ÷, ²é¿´datasheet ÖªµÀIISÎïÀíµØַΪ0x55000000£¬ÎÒÃÇ°ÑËü¶¨ÒåΪºêS3C2410_PA_IIS£¬ÈçÏ£º
#define S3C2410_PA_IIS (0x55000000)
ÈôÒªÔÚÄں˿ռä(iisÇý¶¯)ÖзÃÎÊÕâ¶ÎI/O¼Ä´æÆ÷(IIS)×ÊÔ´ÐèÒªÏȽ¨Á¢µ½Äں˵ØÖ·¿Õ¼äµÄÓ³Éä:
our_card->regs = ioremap(S3C2410_PA_IIS, 0x100);
if (our_card->regs == NULL) {
err = -ENXIO;
goto exit_err;
}
´´½¨ºÃÁËÖ®ºó£¬ÎÒÃǾͿÉÒÔͨ¹ýreadl(our_card->regs )»òwritel(value, our_card->regs)µÈIO½Ó¿Úº¯ÊýÈ¥·ÃÎÊËü¡£
¶þ¡¢¾²Ì¬Ó³Éä(map_desc)·½Ê½
ÏÂÃæÖصã½éÉܾ²Ì¬Ó³É䷽ʽ¼´Í¨¹ýmap_desc½á¹¹Ì徲̬´´½¨I/O×ÊÔ´Ó³Éä±í¡£
ÄÚºËÌṩÁËÔÚϵͳÆô¶¯Ê±Í¨¹ýmap_desc½á¹¹Ì徲̬´´½¨I/O×ÊÔ´µ½Äں˵ØÖ·¿Õ¼äµÄÏßÐÔÓ³Éä±í(¼´page table)µÄ·½Ê½£¬ÕâÖÖÓ³Éä±íÊÇÒ»ÖÖÒ»Ò»Ó³ÉäµÄ¹Øϵ¡£³ÌÐòÔ±¿ÉÒÔ×Ô¼º¶¨Òå¸ÃI/OÄÚ´æ×ÊÔ´Ó³ÉäºóµÄÐéÄâµØÖ·¡£´´½¨ºÃÁ˾²Ì¬Ó³Éä±í£¬ÔÚÄں˻òÇý¶¯ÖзÃÎʸÃI/O×ÊԴʱÔòÎÞÐèÔÙ½øÐÐioreamp¶¯Ì¬Ó³É䣬¿ÉÒÔÖ±½Óͨ¹ýÓ³ÉäºóµÄI/OÐéÄâµØÖ·È¥·ÃÎ
Ïà¹ØÎĵµ£º
£¨L2CAPÐÒé¼ò½é£¬L2CAPÔÚBlueZÖеÄʵÏÖÒÔ¼°L2CAP±à³Ì½Ó¿Ú£©
Ò»£ºL2CAPÐÒé¼ò½é£º
Logical Link Control and Adaptation Protocol(L2CAP)
Âß¼Á¬½Ó¿ØÖƺÍÊÊÅäÐÒé (L2CAP) ΪÉϲãÐÒéÌṩÃæÏòÁ¬½ÓºÍÎÞÁ¬½ÓµÄÊý¾Ý·þÎñ£¬²¢Ìṩ¶àÐÒ鹦ÄܺͷָîÖØ×é²Ù×÷¡£L2CAP ³äÐíÉϲãÐÒéºÍÓ¦ÓÃÈí¼þ´«ÊäºÍ½ÓÊÕ×î´ó³¤¶ÈΪ 64K µÄ L2CAP Ê ......
Service Discovery Protocol(SDP)ÌṩһÖÖÄÜÁ¦£¬ÈÃÓ¦ÓóÌÐòÓз½·¨·¢ÏÖÄÄÖÖ·þÎñ¿ÉÓÃÒÔ¼°ÕâÖÖ·þÎñµÄÌØÐÔ¡£
·þÎñ·¢ÏÖÐÒé(SDP»òBluetooth SDP)ÔÚÀ¶ÑÀÐÒéÕ»ÖжÔÀ¶ÑÀ»·¾³ÖеÄÓ¦ÓóÌÐòÓÐÌØÊâµÄº¬Ò⣬·¢ÏÖÄĸö·þÎñÊÇ¿ÉÓõĺÍÈ·¶¨ÕâЩ¿ÉÓ÷þÎñµÄÌØÕ÷¡£SDP¶¨ÒåÁËbluetooth client·¢ÏÖ¿ÉÓÃbluetooth server·þÎñºÍËüÃǵÄÌØÕ÷µÄ·½·¨¡£ ......
Linux´´Ê¼ÈËLinus
2009Äê12ÔÂ28ÈÕÊÇLinux´´Ê¼ÈËLinusµÄ40ËêÉúÈÕ¡£
19ÄêÇ°£¬ÔÚÊ¥µ®½ÚºóºÕ¶ûÐÁ»ùÉ̵꿪ҵµÄµÚÒ»Ì죬Linus³åÏòµçÄÔÉ̵꣬ÓÃÊ¥µ®½ÚºÍÉúÈÕÀñ½ð¹ºÂòÁËËûµÄµÚһ̨PC£ºÒ»Ì¨DX33 80386¼ÆËã»ú£¬4 Megs RAM£¬40 MegabyteÓ²ÅÌ£¬Ã»ÓÐÐͬ´¦ÀíÆ÷¡£LinusÖ®ËùÒÔÑ¡Ôñ80386£¬¶ø²»ÊÇAmiga»òÆ»¹ûÂó½ðËþµçÄÔ£¬×îÖ÷ÒªÔÒòÊÇËûÏ ......
/bin:binÊÇbinary(¶þ½øÖÆ)µÄËõд¡£Õâ¸öĿ¼ÊǶÔUNIXϵͳϰ¹ßµÄÑØÏ®£¬´æ·Å×ÅʹÓÃÕß×î¾³£Ê¹ÓõÄÃüÁî¡£ÀýÈ磺cp,ls,cat¡£
¡¡¡¡/boot:ÕâÀï´æ·ÅµÄÊÇÆô¶¯LINUXʱʹÓõÄһЩºËÐÄÎļþ¡£
¡¡¡¡/dev:devÊÇdevice(É豸)µÄËõд¡£Õâ¸öĿ¼ÏÂÊÇËùÓÐLINUXµÄÍⲿÉ豸£¬Æ书ÄÜÀàËÆDOSϵÄ.sysºÍWinϵÄ.vxd¡£ÔÚLINUXÖÐÉ豸ºÍÎļþÊÇÓÃͬÖÖ ......
apache-tomactµÄ°²×°
Ò».JDKµÄ°²×°
1. ÏÈ´ÓÍøÉÏÏÂÔØjdk(jdk-1_5_0-linux-i586.rpm) £¬ÍƼöSUNµÄ¹Ù·½ÍøÕ¾http://www.sun.com/£¬ÏÂÔغó·ÅÔÚ/homeĿ¼ÖУ¨¿ÉÒÔʹÓÃwinscpÈí¼þÊ©ÐÐÉÏ´«£©£¬µ±È»ÆäËüµØ·½Ò²ÐС£
½øÈ밲װĿ¼
#cd /home
#cp jdk-1_5_0_-linux-i586.rpm.bin /usr/local £¨¿½±´ÃüÁ
#cd /usr/lo ......