config.c

来自「优龙2410linux2.6.8内核源代码」· C语言 代码 · 共 63 行

C
63
字号
/* *  linux/arch/m68k/hp300/config.c * *  Copyright (C) 1998 Philip Blundell <philb@gnu.org> * *  This file contains the HP300-specific initialisation code.  It gets *  called by setup.c. */#include <linux/config.h>#include <linux/types.h>#include <linux/mm.h>#include <linux/kd.h>#include <linux/tty.h>#include <linux/console.h>#include <linux/interrupt.h>#include <linux/init.h>#include <asm/machdep.h>#include <asm/blinken.h>#include <asm/hwtest.h>                           /* hwreg_present() */#include "ints.h"#include "time.h"extern void hp300_reset(void);extern irqreturn_t (*hp300_default_handler[])(int, void *, struct pt_regs *);extern int show_hp300_interrupts(struct seq_file *, void *);#ifdef CONFIG_HEARTBEATstatic void hp300_pulse(int x){   if (x)      blinken_leds(0xfe);   else      blinken_leds(0xff);}#endifstatic void hp300_get_model(char *model){  strcpy(model, "HP9000/300");}void __init config_hp300(void){  mach_sched_init      = hp300_sched_init;  mach_init_IRQ        = hp300_init_IRQ;  mach_request_irq     = hp300_request_irq;  mach_free_irq        = hp300_free_irq;  mach_get_model       = hp300_get_model;  mach_get_irq_list    = show_hp300_interrupts;  mach_gettimeoffset   = hp300_gettimeoffset;  mach_default_handler = &hp300_default_handler;  mach_reset           = hp300_reset;#ifdef CONFIG_HEARTBEAT  mach_heartbeat       = hp300_pulse;#endif#ifdef CONFIG_DUMMY_CONSOLE  conswitchp	       = &dummy_con;#endif  mach_max_dma_address = 0xffffffff;}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?