Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

¡¾×ªÌû¡¿linuxºÍqtopiaϵľØÕó¼üÅÌÇý¶¯³ÌÐò

³ö´¦£ºhttp://blog.163.com/xiyong8260/blog/static/66514621200944115026359/ÍøÒײ©¿Í£ºxiyong
»ùÓÚs3c2440ºÍlinux£¬ÊµÏÖÁË3*4µÄ¾ØÕó¼üÅÌÇý¶¯¡£
¹¦ÄÜ£ºÑÓʱÏû¶¶£¬Öظ´°´¼ü£¬¶à¼üÆë°´£¨£¿£¿£©
¸üÏêϸµÄ˵Ã÷Îĵµ£º“»ùÓÚS3C24440ºÍǶÈëʽLinuxµÄ¾ØÕó¼üÅÌÉè¼Æ”£¬µç×Ó¼¼Êõ£¬2008,45(5):21-23
/**********************************************************
* s3c2440-keyboard.c
*
* keyboard driver for S3C2440 based PDA
*
*
* History:2007/04/30
*
*
***********************************************************/
#include <linux/config.h>
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/miscdevice.h>
#include <linux/sched.h>
#include <linux/delay.h>
#include <linux/poll.h>
#include <linux/spinlock.h>
#include <asm/irq.h>
#include <asm/arch/irq.h>
#include <asm/arch/irqs.h>
#include <asm/arch/clocks.h>
#include <asm/hardware.h>
#include <asm/arch/S3C2440.h>
#define DEVICE_NAME "s3c2440-kb" //¼üÅÌÉ豸Ãû
static int kbMajor = 0; //ĬÈϵÄÖ÷É豸ºÅ
#define MAX_KB_BUF 10 //Ñ­»·¶ÓÁеijߴç
typedef struct {
unsigned int keyStatus;
int irq;
// int timeCount;
u_short buf[MAX_KB_BUF]; /* Ñ­»·¶ÓÁÐ*/
unsigned int head, tail; /* Ñ­»·¶ÓÁеĶÁдָÕë*/
spinlock_t lock; /*Ëø*/
} KB_DEV;
static KB_DEV kbdev;
#define KEY_UP 0 //°´¼üµ¯Æð
#define KEY_DOWN 1 //°´¼ü°´ÏÂ
#define NO_KEY_DOWN 2 //ûÓмü°´ÏÂ
#define EINT1_DOWN 0
#define EINT3_DOWN 1
#define EINT8_DOWN 2
#define NO_EINT_DOWN 3
/*Ñ­»·¶ÓÁвÙ×÷*/
#define BUF_HEAD (kbdev.buf[kbdev.head])
#define BUF_TAIL (kbdev.buf[kbdev.tail])
#define INCBUF(x) if((++x)==MAX_KB_BUF) x=0
/*¶¨Ê±Æ÷ÉèÖÃ*/
#define KB_TIMER_DELAY (HZ/50) /*HZ±íʾÿÃë²úÉúµÄʱÖӵδðÊý,¶¨Ê±Æ÷³¬Ê±Îª20ms*/
#define REPEAT_START_DELAY (HZ) /* ×Ô¶¯Öظ´¿ªÊ¼ÑÓʱ:1Ãë*/
#define REPEAT_DELAY (HZ/2) /*×Ô¶¯Öظ´ÑÓʱ:0.5Ãë*/
static struct timer_list kb_timer;
static struct timer_list repeat_timer;
spinl


Ïà¹ØÎĵµ£º

linuxÏÂmysqlµÄʹÓÃ


Æô¶¯mysql:  /etc/rc.d/init.d/mysql start
ÐÞ¸ÄÃÜÂë: ¸ñʽ£ºmysqladmin -uÓû§Ãû -p¾ÉÃÜÂë password ÐÂÃÜÂë
ʹÓÃÃÜÂëµÇ¼:  mysql -u root -p
ÏÔʾÊý¾Ý¿â:  show databases;
Ñ¡ÔñÊý¾Ý¿â:  use Êý¾Ý¿âÃû;
ÏÔʾ±í:  show tables;
ÏÔʾ±í½á¹¹:  descibe ±íÃû;
Ô¶³ÌµÇ¼mysqlÐèÒª¿ªÆôÈ ......

Linuxϵͳ¿ÉжÔØÄÚºËÄ£¿éÍêÈ«Ö¸ÄÏ_ÖÐ

µÚ¶þ²¿·Ö ½¥Èë¼Ñ¾³
2.1 ÈçºÎ½Ø»ñϵͳµ÷ÓÃ
ÏÖÔÚÎÒÃÇ¿ªÊ¼ÈëÇÖLKM£¬ÔÚÕý³£Çé¿öÏÂLKMsÊÇÓÃÀ´À©Õ¹Äں˵Ä(ÌرðÊÇÄÇЩӲ¼þÇý¶¯)¡£È»¶øÎÒÃǵđHacks’×öһЩ²»Ò»ÑùµÄÊÂÇé¡£ËûÃÇ»á½Ø»ñϵͳµ÷Óò¢ÇÒ¸ü¸ÄËûÃÇ£¬ÎªÁ˸ıäϵͳijЩÃüÁîµÄÏìÓ¦·½Ê½¡£
ÏÂÃæµÄÕâ¸öÄ£¿é¿ÉÒÔʹµÃÈκÎÓû§¶¼²»ÄÜ´´½¨Ä¿Â¼¡£ÕâÖ»²»¹ýÊÇÎÒÃÇËæºó·½·¨µ ......

dzÎölinuxÏÂÊó±êÇý¶¯µÄʵÏÖ

¶ÔÓÚÊó±êÇý¶¯ºÍÇ°Ãæ·ÖÎö¹ýµÄ¼üÅÌÇý¶¯¶¼Êǹ²ÓÃinputÄ£ÐÍ,ËùÒÔ,¶ÔÓÚʼþÉϱ¨ºÍ´¦ÀíµÄ·½Ê½¶¼Ã»ÓÐÇø±ð,Ö»ÊÇmouseÊó±êÇý¶¯µ±Éϱ¨Íêdx,dy,left,middle,rightÖ®ºó,ÐèÒªµ÷ÓÃinput_sync(),½«Ç°ÃæÉϱ¨µÄ½ö½öÌî³äÔÚ»º³åÇøÖеÄÊý¾Ý,ͨ¹ýmousedev_notify_readers()·¢Ë͸øopenÁ˵ĹҽÓÔÚmousedev->client_listÁ´±íÉϵȴý»ñÈ¡Êó±êÐÅÏ¢µÄ ......

Linux TCP/IP ЭÒéÕ»Ô´Âë·ÖÎö£¨Ò»£©

 ÕâƪÎÄÕÂдÓÚÈýÄêÇ°£¬µ±Ê±ÊÖÖÐÄÃ×ÅStevensµÄÈý±¾¾ÞÖø TCP v1/v2/v3 µÄÃþ²»×ÅÍ·ÄÔ£­ÒòΪËüÃÇÌ«ºñÁË¡£ÎÒÖªµÀÎÒ²»ÐèÒªÄÇô¶à£¬ÄÇôÏêϸ¡£ÓÚÊÇÓÐÁË×Ô¼º·ÖÎöÔ´´úÂëµÄÏë·¨......
        ÎÒ²»¶ÔÎÄÖеÄÄÚÈÝÌṩÈκα£Ö¤£¬µ«»¶Ó­ÓëÎÒÁªÏµÒԱ㲻¶ÏµÄÐÞ¸ÄËü£¬×îÖÕ¸øÐèÒªÖªµÀ¹ØÓÚLinux TCP/ ......

linux ÏÂÊÖ¹¤Ð½¨Êý¾Ý¿â

ÊÖ¹¤Ð½¨Êý¾Ý¿âcreate database
ÉíΪDBA,ÒªÓÀÔ¶¼ÇסÉõÓûòÕß½ûֹʹÓÃrmÃüÁÍò²»µÃÒÔµÄÇé¿öÏ£¬Ê¹ÓÃʱÔÚÇÃenterÒ²Òª¿´ÁËÓÖ¿´¡¢É÷ÖØÓÖÉ÷ÖزÅÐУ¡
Red Hat Enterprise 3 + Oracle 10g Release 2
$su – oracle
1---ÉèÖÃϵͳ»·¾³±äÁ¿£º
ORACLE_HOME=/opt/oracle/product/10.2
ORACLE_BASE=/opt/oracle
ORACLE_SID ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ