linux 0.11 ÄÚºËѧϰ console.c£¬¿ØÖÆÌ¨
²Î¿¼¡¶linuxÄÚºËÍêȫעÊÍ¡·ºÍÍøÉÏÏà¹ØÎÄÕÂ
/*
* ¿ØÖÆÌ¨ÏÔʾ²Ù×÷
*/
/*
* linux/kernel/console.c
*
* (C) 1991 Linus Torvalds
*/
/*
* console.c
*
* This module implements the console io functions
* 'void con_init(void)'
* 'void con_write(struct tty_queue * queue)'
* Hopefully this will be a rather complete VT102 implementation.
*
* Beeping thanks to John T Kohl.
*/
/**********************
* con_init con_write *
**********************/
/*
* NOTE!!! We sometimes disable and enable interrupts for a short while
* (to put a word in video IO), but this will work even for keyboard
* interrupts. We know interrupts aren't enabled when getting a keyboard
* interrupt, as we use trap-gates. Hopefully all is well.
*/
/*
* Code to check for different video-cards mostly by Galen Hunt,
* <g-hunt@ee.utah.edu>
*/
#include <linux/sched.h>
#include <linux/tty.h> // ¶¨Òåtty_struct½á¹¹£¬´®ÐÐͨÐÅ·½ÃæµÄ²ÎÊýºÍ³£Á¿
#include <asm/io.h> // Ó²¼þ¶ÔÓ¦µÄ»ã±àioÖ¸Áî
#include <asm/system.h>
/*
* These are set up by the setup-routine at boot-time:
*/
#define ORIG_X (*(unsigned char *)0x90000) // ¹â±êÁкÅ
#define ORIG_Y (*(unsigned char *)0x90001) // ¹â±êÐкÅ
#define ORIG_VIDEO_PAGE (*(unsigned short *)0x90004) // ÏÔÊ¾Ò³Ãæ
#define ORIG_VIDEO_MODE ((*(unsigned short *)0x90006) & 0xff) // ÏÔʾģʽ
#define ORIG_VIDEO_COLS (((*(unsigned short *)0x90006) & 0xff00) >> 8) // ×Ö·ûÁÐÊý
#define ORIG_VIDEO_LINES (25) // ×Ö·ûÐÐÊý
#define ORIG_VIDEO_EGA_AX (*(unsigned short *)0x90008) // £¿£¿
#define ORIG_VIDEO_EGA_BX (*(unsigned short *)0x9000a) // ÏÔʾÄÚ´æ´óСºÍÉ«²Êģʽ
#define ORIG_VIDEO_EGA_CX (*(unsigned short *)0x9000c) // ÏÔʾ¿¨ÌØÐÔ²ÎÊý
#define VIDEO_TYPE_MDA 0x10 /* Monochrome Text Display,µ¥É«Îı¾ */
#define VIDEO_TYPE_CGA 0x11
Ïà¹ØÎĵµ£º
1. HCI²ãÐÒé¸ÅÊö£º
HCIÌṩһÌ×ͳһµÄ·½·¨À´·ÃÎÊBluetoothµ×²ã¡£ÈçͼËùʾ£º
´ÓͼÉÏ¿ÉÒÔ¿´³ö£¬Host Controller Interface(HCI) ¾ÍÊÇÓÃÀ´¹µÍ¨HostºÍModule¡£Hostͨ³£¾ÍÊÇPC£¬ ModuleÔòÊÇÒÔ¸÷ÖÖÎïÀíÁ¬½ÓÐÎʽ£¨USB,serial,pc-cardµÈ£©Á¬½Óµ½PCÉϵÄbluetooth Dongle¡£
ÔÚHostÕâÒ»¶Ë£ºapplication,SDP,L2capµÈÐÒé ......
Ò»£ºÇ°ÑÔ
×î½üÔÚÑо¿androidµÄsensor driver£¬Ö÷ÒªÊÇE-compass£¬ÆäÖÐÓõ½ÁËLinux input×Óϵͳ.ÔÚÍøÉÏÒ²¿´Á˺ܶàÕâ·½ÃæµÄ×ÊÁÏ£¬¸Ð¾õ»¹ÊÇÕâÆª·ÖÎöµÄ±È½ÏϸÖÂ͸³¹£¬Òò´Ë×ªÔØÒ»ÏÂÒÔ±ã×Ô¼ºÑ§Ï°£¬Í¬Ê±ºÍ´ó¼Ò·ÖÏí£¡
£¨ÕâÆª²©¿ÍÖ÷ÒªÊÇÒÔ¼üÅÌÇý¶¯ÎªÀýµÄ£¬²»¹ý½²½âµÄÊÇLinux Input Subsystem£¬¿ÉÒÔ×ÐϸµÄÑо¿Ò»Ï£¡£©
¼üÅÌÇý¶¯½«¼ì ......
¾²Ì¬¿âÓÃar -t YourFile
¶¯Ì¬¿âÓà nm -D YourFile
ÏÂÃæÊÇarºÍnmÃüÁîµÄһЩ²ÎÊý˵Ã÷
1.ar»ù±¾Ó÷¨
¡¡¡¡arÃüÁî¿ÉÒÔÓÃÀ´´´½¨¡¢Ð޸Ŀ⣬Ҳ¿ÉÒÔ´Ó¿âÖÐÌá³öµ¥¸öÄ£¿é¡£¿âÊÇÒ»µ¥¶ÀµÄÎļþ£¬ÀïÃæ°üº¬Á˰´ÕÕÌØ¶¨µÄ½á¹¹×éÖ¯ÆðÀ´µÄÆäËüµÄһЩÎļþ£¨³Æ×ö´Ë¿âÎļþµÄmember£©¡£ÔʼÎļþµÄÄÚÈÝ¡¢Ä£Ê½¡¢Ê±¼ä´Á¡¢ÊôÖ÷¡¢×éµÈÊôÐÔ¶¼±£ÁôÔÚ¿âÎ ......
¶Ô¼¼ÊõÖ´×ŵÄÈË£¬±ÈÈç˵ÎÒ£¬ÍùÍù¶ÔһЩÎÊÌ⣬²»½öÏë×öµ½“ÖªÆäÈ»”£¬»¹Ïë×öµ½“ÖªÆäËùÒÔÈ»”¡££ÃÓïÑÔ¿Éν²©´ó¾«É¼´Ê¹ÎÒÒѾÓжàÄêµÄ¿ª·¢¾Ñ飬¿É»¹ÊÇÓÐÐí¶àÎÊÌâ²»ÖªÆäËùÒÔÈ»¡£Ä³ÌìijµØÄ³ÈËÎÊÎÒ£¬£ÃÓïÑÔÖк¯Êý²ÎÊýµÄÈëջ˳ÐòÈçºÎ£¿´ÓÓÒÖÁ×ó£¬ÎÒËæ¿Ú»Ø´ð¡£ÎªÊ²Ã´ÊÇ´ÓÓÒÖÁ×óÄØ£¿ÎÒÖÕ¾¿Ã»Óиø³öºÏÀíµÄ½â ......
windowϵÄsqlplus¿ÉÒÔͨ¹ý¼ýÍ·¼ü£¬À´»Ø¿´ÀúÊ·ÃüÁÓÃÆðÀ´·Ç³£µÄ·½±ã¡£
µ«ÊÇÔÚlinuxÀï¾ÍûÓÐÕâô·½ÃæÁË£¬´íÁËÒ»¸öÃüÁÎÒÃDZØÐëÖØÐÂÇÃÒ»´Î£¬ÐÁ¿àÁËÊÖָͷ߷¡£
¿´µ½Ò»¸öÎÄÕ£¬ºÜ·½±ãµÄÒ»ÕУ¬¸øÎÒÃÇ´øÀ´·½±ã¡£
ͨ¹ýrlwrap°üʵÏÖlinuxÀïµÄsqlplusÀúÊ·ÃüÁîµÄ¹¦ÄÜ
¿ÉÒÔÏÂÔØrlwrap°ü´ÓinthirtiesÀï¡£
Õâ¸ö°üÒÀÀµreadline°ü ......