linux 2.6Ô´´úÂëÇé¾°·ÖÎö±Ê¼ÇÖ®ÖжÏÓëÒì³£6
ÿ¸öÖжÏÏòÁ¿¶¼ÓÐ×Ô¼ºµÄirq_desc_tÃèÊö·û£¬ËùÓеÄÕâЩÃèÊö·û×éÖ¯ÔÚÒ»ÆðÐγÉirq_descÊý×é¡£
typedef struct irq_desc {
hw_irq_controller *handler;Ö¸Ïòpic¶ÔÏó£¨hw_irq_controllerÃèÊö·û£©£¬·þÎñÓÚirqÏß
void *handler_data;Ö¸Ïòpic·½·¨ËùʹÓõÄÊý¾Ý
struct irqaction *action; /* IRQ action list */±êʶµ±³öÏÖirqʱҪµ÷ÓõÄÖжϷþÎñÀý³Ì¡£¸Ã×Ö¶ÎÖ¸ÏòirqµÄirqactionÃèÊö·ûÁ´±íµÄµÚÒ»¸öÔªËØ¡£
unsigned int status; /* IRQ status */ÃèÊöirqÏß״̬µÄÒ»×é±êÖ¾
unsigned int depth; /* nested irq disables */Èç¹ûirqÏß±»¼¤»î£¬ÔòÏÔʾ0£»Èç¹ûirqÏß±»½ûÖ¹Á˲»Ö¹Ò»´Î£¬ÔòÏÔʾһ¸öÕýÊý
unsigned int irq_count; /* For detecting broken interrupts */ÖжϼÆÊýÆ÷£¬Í³¼ÆirqÏßÉÏ·¢ÉúµÄÖжϼÆÊý
unsigned int irqs_unhandled;ÖжϼÆÊýÆ÷£¬Í³¼ÆirqÏßÉÏ·¢ÉúµÄÎÞ·¨´¦ÀíµÄÖжϽøÐмÆÊý
spinlock_t lock;ÓÃÓÚ´®ÐзÃÎÊirqÃèÊö·ûºÍpicµÄ×ÔÐýËø¡£
} ____cacheline_aligned irq_desc_t;
extern irq_desc_t irq_desc [NR_IRQS];
/*
* IRQ line status.
*/
#define IRQ_INPROGRESS 1 /* IRQ handler active - do not enter! */IRQµÄÒ»¸ö´¦Àí³ÌÐòÕýÔÚÖ´ÐÐ
#define IRQ_DISABLED 2 /* IRQ disabled - do not enter! */ÓÉÒ»¸öÉ豸Çý¶¯³ÌÐò¹ÊÒâµØ½ûÓÃirqÏß
#define IRQ_PENDING 4 /* IRQ pending - replay on enable */Ò»¸öirqÒѾ³öÏÖÔÚÏßÉÏ£¬ËüµÄ³öÏÖÒ²ÒѶÔpic×ö³öÓ¦´ð£¬µ«ÊÇÄں˻¹Ã»ÓÐΪËüÌṩ·þÎñ
#define IRQ_REPLAY 8 &nbs
Ïà¹ØÎĵµ£º
ÐźÅÖ¸¶¨´¦Àíº¯Êý
void (*signal (int signum,void (*handle)(int)))(int);ÉèÖÃij¸öÐźŵĴ¦Àí·½·¨
int sigaction(int signum,const struct sigaction *act,struct sigaction *oldact);ÓÃÓÚ¼ì²é»ò¸Ä±ä½ø³ÌÔÚ½Óµ½ÐźÅʱµÄ¶¯×÷
Ðźż¯²Ù×÷º¯Êý
static inline void sigaddset(sigset_t *set,int _sig);
static inline voi ......
Index: flash.c
===================================================================
--- flash.c (revision 1804)
+++ flash.c (working copy)
@@ -26,6 +26,8 @@
#include "ebootnand.h"
#include "ll_nand.h"
#includ ......
Linux ÖлñµÃ±¾»úÍø¿¨MACµØÖ·ºÜ¼òµ¥£¬ioctl()¾ÍOK¡£¿ÉÈçºÎ»ñµÃ¾ÖÓòÍøÆäËûÖ÷»úµÄMACµØÖ·ÄØ…Á´Â·²ã¹ã²¥ARPÇëÇó£¬È»ºó½ÓÊÕARPÏìÓ¦¡£ÊµÏÖ½é¸ö¹¦ÄÜÆäʵÒÑÓÐÏÖ³ÉÈý·½¿â¿ÉÓã¬Èçlibnet¡£²»¹ýÏë¼ÓÉî¶ÔÐÒéµÄÀí½âºÍLinuxÍøÂç±à³ÌAPIµÄÀí½â£¬jiayi »¹ÊǾö¶¨ÓÃLinuxµÄPF_PACKET×Ô¼ºÊµÏÖ£¬¸Ä°¡¸Ä£¬ÖÕÓڳɹ¦¡«ÒÔÏÂÊÇ´óÌå˼·
1. ......
³õʼ»¯ÖжÏÃèÊö·û±í
ÄÚºËÆôÓÃÖжÏÒÔÇ°£¬±ØÐë°Ñidt±íµÄ³õʼµØÖ·×°µ½idtr¼Ä´æÆ÷£¬²¢³õʼ»¯±íÖеÄÿһÏî¡£ÕâÏ×÷ÊÇÔÚ³õʼ»¯ÏµÍ³Ê±Íê³É¡£
intÖ¸ÁîÔÊÐíÓû§Ì¬½ø³Ì·¢³öÒ»¸öÖжÏÐźţ¬ÆäÖµ¿ÉÒÔÊÇ0-255µÄÈÎÒâÒ»¸öÏòÁ¿¡£Òò´Ë¡£ÎªÁË·ÀÖ¹Óû§Í¨¹ýintÖ¸ÁîÄ£Äâ·Ç·¨µÄÖжϺÍÒì³££¬idtµÄ³õʼ»¯±ØÐë·Ç³£Ð¡ÐÄ¡£Õâ¿ÉÒÔͨ¹ý°ÑÖжϻòÕßÏÝÚåà ......