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
Ïà¹ØÎĵµ£º
4.1. Introduction to Linux Routing
The design of IP routing allows for very simple route definitions for small networks, while not hindering the flexibility of routing in complex environments. A key concept in IP routing is the ability to define what addresses are locally reachable as oppose ......
Ò»¡¢LinuxÉè¼ÆÌØµã£º¶àÓû§£¨¶à¸öÓû§¿ÉÒÔͬʱµÇ¼£¬Í¬Ò»Óû§¿ÉÒԵǼ¶à´Î£©£»¶àÈÎÎñ£¨Í¬Ò»³ÌÐò¿ÉÒÔÓжà¸öÏ̻߳ò½ø³Ì²¢·¢Ö´ÐУ©£»·Öʱ¡£
¶þ¡¢C¿ª·¢»·¾³£º¿ª·¢¹¤¾ß£¨°üÀ¨±àÒëÆ÷¡¢Á¬½ÓÆ÷¡¢gcc£©¡¢¹¤³Ì¹ÜÀíÈí¼þ£¨make£©¡¢±à¼Æ÷¡¢·ÖÎöµ÷ÊÔ¹¤¾ßgdb¡¢º¯Êý¿â¡¢°æ±¾¿ØÖÆÏµÍ³CVS¡££¨Perl²»ÐèÒª±àÒ룩¡£
Èý¡¢ÔÚÏßÎĵµ£º
1.manpage ......
±¾ÎÄÖ÷Òª½éÉÜÈçºÎÓÃLinux×öÒ»¸ö¹¦ÄÜÍ걸µÄ·ÓÉÆ÷£¬ÕâÀォÖ÷Òª½éÉܾ²Ì¬Â·ÓÉÆ÷ºÍ¶¯Ì¬Â·ÓÉÆ÷µÄÅäÖ㬵«²»°üÀ¨IPαװ»òÕß˵¹«ÓÃÒ»¸öIPµØÖ··ÃÎÊÍâÃæÍøÂçµÈÎÊÌâ¡£ÆäÒѾ²»ÊôÓÚ±¾Ö÷ÌâÌÖÂ۵ķ¶Î§£¬Çë²Î¿¼ÆäËûÈç·À»ðǽµÄÅäÖõȵÄÄÚÈÝ¡£
LRP(Linux Router Project)ÒѾ³ÉÁ¢ÁËÓкü¸ÄêµÄʱ¼äÁË¡£Õâ¸ö¼Æ»®µÄÄ¿µÄÊÇÀûÓÃLinux²Ù×÷ϵͳ½«À ......
Index: flash.c
===================================================================
--- flash.c (revision 1804)
+++ flash.c (working copy)
@@ -26,6 +26,8 @@
#include "ebootnand.h"
#include "ll_nand.h"
#includ ......