亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來(lái)到蟲(chóng)蟲(chóng)下載站! | ?? 資源下載 ?? 資源專(zhuān)輯 ?? 關(guān)于我們
? 蟲(chóng)蟲(chóng)下載站

?? voyager_basic.c

?? linux-2.6.15.6
?? C
字號(hào):
/* Copyright (C) 1999,2001  * * Author: J.E.J.Bottomley@HansenPartnership.com * * linux/arch/i386/kernel/voyager.c * * This file contains all the voyager specific routines for getting * initialisation of the architecture to function.  For additional * features see: * *	voyager_cat.c - Voyager CAT bus interface *	voyager_smp.c - Voyager SMP hal (emulates linux smp.c) */#include <linux/config.h>#include <linux/module.h>#include <linux/types.h>#include <linux/sched.h>#include <linux/ptrace.h>#include <linux/ioport.h>#include <linux/interrupt.h>#include <linux/init.h>#include <linux/delay.h>#include <linux/reboot.h>#include <linux/sysrq.h>#include <asm/io.h>#include <asm/voyager.h>#include <asm/vic.h>#include <linux/pm.h>#include <asm/tlbflush.h>#include <asm/arch_hooks.h>#include <asm/i8253.h>/* * Power off function, if any */void (*pm_power_off)(void);EXPORT_SYMBOL(pm_power_off);int voyager_level = 0;struct voyager_SUS *voyager_SUS = NULL;#ifdef CONFIG_SMPstatic voidvoyager_dump(int dummy1, struct pt_regs *dummy2, struct tty_struct *dummy3){	/* get here via a sysrq */	voyager_smp_dump();}static struct sysrq_key_op sysrq_voyager_dump_op = {	.handler	= voyager_dump,	.help_msg	= "Voyager",	.action_msg	= "Dump Voyager Status",};#endifvoidvoyager_detect(struct voyager_bios_info *bios){	if(bios->len != 0xff) {		int class = (bios->class_1 << 8) 			| (bios->class_2 & 0xff);		printk("Voyager System detected.\n"		       "        Class %x, Revision %d.%d\n",		       class, bios->major, bios->minor);		if(class == VOYAGER_LEVEL4) 			voyager_level = 4;		else if(class < VOYAGER_LEVEL5_AND_ABOVE)			voyager_level = 3;		else			voyager_level = 5;		printk("        Architecture Level %d\n", voyager_level);		if(voyager_level < 4)			printk("\n**WARNING**: Voyager HAL only supports Levels 4 and 5 Architectures at the moment\n\n");		/* install the power off handler */		pm_power_off = voyager_power_off;#ifdef CONFIG_SMP		register_sysrq_key('v', &sysrq_voyager_dump_op);#endif	} else {		printk("\n\n**WARNING**: No Voyager Subsystem Found\n");	}}voidvoyager_system_interrupt(int cpl, void *dev_id, struct pt_regs *regs){	printk("Voyager: detected system interrupt\n");}/* Routine to read information from the extended CMOS area */__u8voyager_extended_cmos_read(__u16 addr){	outb(addr & 0xff, 0x74);	outb((addr >> 8) & 0xff, 0x75);	return inb(0x76);}/* internal definitions for the SUS Click Map of memory */#define CLICK_ENTRIES	16#define CLICK_SIZE	4096	/* click to byte conversion for Length */typedef struct ClickMap {	struct Entry {		__u32	Address;		__u32	Length;	} Entry[CLICK_ENTRIES];} ClickMap_t;/* This routine is pretty much an awful hack to read the bios clickmap by * mapping it into page 0.  There are usually three regions in the map: * 	Base Memory * 	Extended Memory *	zero length marker for end of map * * Returns are 0 for failure and 1 for success on extracting region. */int __initvoyager_memory_detect(int region, __u32 *start, __u32 *length){	int i;	int retval = 0;	__u8 cmos[4];	ClickMap_t *map;	unsigned long map_addr;	unsigned long old;	if(region >= CLICK_ENTRIES) {		printk("Voyager: Illegal ClickMap region %d\n", region);		return 0;	}	for(i = 0; i < sizeof(cmos); i++)		cmos[i] = voyager_extended_cmos_read(VOYAGER_MEMORY_CLICKMAP + i);	map_addr = *(unsigned long *)cmos;	/* steal page 0 for this */	old = pg0[0];	pg0[0] = ((map_addr & PAGE_MASK) | _PAGE_RW | _PAGE_PRESENT);	local_flush_tlb();	/* now clear everything out but page 0 */	map = (ClickMap_t *)(map_addr & (~PAGE_MASK));	/* zero length is the end of the clickmap */	if(map->Entry[region].Length != 0) {		*length = map->Entry[region].Length * CLICK_SIZE;		*start = map->Entry[region].Address;		retval = 1;	}	/* replace the mapping */	pg0[0] = old;	local_flush_tlb();	return retval;}/* voyager specific handling code for timer interrupts.  Used to hand * off the timer tick to the SMP code, since the VIC doesn't have an * internal timer (The QIC does, but that's another story). */voidvoyager_timer_interrupt(struct pt_regs *regs){	if((jiffies & 0x3ff) == 0) {		/* There seems to be something flaky in either		 * hardware or software that is resetting the timer 0		 * count to something much higher than it should be		 * This seems to occur in the boot sequence, just		 * before root is mounted.  Therefore, every 10		 * seconds or so, we sanity check the timer zero count		 * and kick it back to where it should be.		 *		 * FIXME: This is the most awful hack yet seen.  I		 * should work out exactly what is interfering with		 * the timer count settings early in the boot sequence		 * and swiftly introduce it to something sharp and		 * pointy.  */		__u16 val;		spin_lock(&i8253_lock);				outb_p(0x00, 0x43);		val = inb_p(0x40);		val |= inb(0x40) << 8;		spin_unlock(&i8253_lock);		if(val > LATCH) {			printk("\nVOYAGER: countdown timer value too high (%d), resetting\n\n", val);			spin_lock(&i8253_lock);			outb(0x34,0x43);			outb_p(LATCH & 0xff , 0x40);	/* LSB */			outb(LATCH >> 8 , 0x40);	/* MSB */			spin_unlock(&i8253_lock);		}	}#ifdef CONFIG_SMP	smp_vic_timer_interrupt(regs);#endif}voidvoyager_power_off(void){	printk("VOYAGER Power Off\n");	if(voyager_level == 5) {		voyager_cat_power_off();	} else if(voyager_level == 4) {		/* This doesn't apparently work on most L4 machines,		 * but the specs say to do this to get automatic power		 * off.  Unfortunately, if it doesn't power off the		 * machine, it ends up doing a cold restart, which		 * isn't really intended, so comment out the code */#if 0		int port;	  		/* enable the voyager Configuration Space */		outb((inb(VOYAGER_MC_SETUP) & 0xf0) | 0x8, 		     VOYAGER_MC_SETUP);		/* the port for the power off flag is an offset from the		   floating base */		port = (inb(VOYAGER_SSPB_RELOCATION_PORT) << 8) + 0x21;		/* set the power off flag */		outb(inb(port) | 0x1, port);#endif	}	/* and wait for it to happen */	local_irq_disable();	for(;;)		halt();}/* copied from process.c */static inline voidkb_wait(void){	int i;	for (i=0; i<0x10000; i++)		if ((inb_p(0x64) & 0x02) == 0)			break;}voidmachine_shutdown(void){	/* Architecture specific shutdown needed before a kexec */}voidmachine_restart(char *cmd){	printk("Voyager Warm Restart\n");	kb_wait();	if(voyager_level == 5) {		/* write magic values to the RTC to inform system that		 * shutdown is beginning */		outb(0x8f, 0x70);		outb(0x5 , 0x71);				udelay(50);		outb(0xfe,0x64);         /* pull reset low */	} else if(voyager_level == 4) {		__u16 catbase = inb(VOYAGER_SSPB_RELOCATION_PORT)<<8;		__u8 basebd = inb(VOYAGER_MC_SETUP);				outb(basebd | 0x08, VOYAGER_MC_SETUP);		outb(0x02, catbase + 0x21);	}	local_irq_disable();	for(;;)		halt();}voidmachine_emergency_restart(void){	/*for now, just hook this to a warm restart */	machine_restart(NULL);}voidmca_nmi_hook(void){	__u8 dumpval __attribute__((unused)) = inb(0xf823);	__u8 swnmi __attribute__((unused)) = inb(0xf813);	/* FIXME: assume dump switch pressed */	/* check to see if the dump switch was pressed */	VDEBUG(("VOYAGER: dumpval = 0x%x, swnmi = 0x%x\n", dumpval, swnmi));	/* clear swnmi */	outb(0xff, 0xf813);	/* tell SUS to ignore dump */	if(voyager_level == 5 && voyager_SUS != NULL) {		if(voyager_SUS->SUS_mbox == VOYAGER_DUMP_BUTTON_NMI) {			voyager_SUS->kernel_mbox = VOYAGER_NO_COMMAND;			voyager_SUS->kernel_flags |= VOYAGER_OS_IN_PROGRESS;			udelay(1000);			voyager_SUS->kernel_mbox = VOYAGER_IGNORE_DUMP;			voyager_SUS->kernel_flags &= ~VOYAGER_OS_IN_PROGRESS;		}	}	printk(KERN_ERR "VOYAGER: Dump switch pressed, printing CPU%d tracebacks\n", smp_processor_id());	show_stack(NULL, NULL);	show_state();}voidmachine_halt(void){	/* treat a halt like a power off */	machine_power_off();}void machine_power_off(void){	if (pm_power_off)		pm_power_off();}

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
不卡一区二区在线| 国产一区二区三区久久悠悠色av| 国产乱码精品1区2区3区| 国产日韩视频一区二区三区| 国产成人av一区二区三区在线观看| 日本一区二区视频在线| 日韩三级在线观看| 色狠狠综合天天综合综合| 蜜臀99久久精品久久久久久软件| 国产精品全国免费观看高清| 在线播放91灌醉迷j高跟美女| 国产精品羞羞答答xxdd| 国产乱码精品一区二区三区忘忧草 | 中文字幕一区二区三中文字幕| bt7086福利一区国产| 久久精品二区亚洲w码| 国产精品高清亚洲| 欧美精品一区二区不卡| 丁香桃色午夜亚洲一区二区三区| 自拍偷拍亚洲综合| 久久男人中文字幕资源站| 欧美日韩在线播放一区| 成人av在线一区二区三区| www.爱久久.com| 欧美在线不卡视频| 99国产精品99久久久久久| 国产最新精品精品你懂的| 婷婷国产在线综合| 一区二区三区日韩欧美精品| 国产精品欧美久久久久一区二区 | 国产亚洲精久久久久久| 欧美一区二区视频在线观看2020 | 久久丁香综合五月国产三级网站| 国产一区亚洲一区| 91浏览器在线视频| 99综合影院在线| 欧美日韩国产精品成人| 91在线视频播放地址| 欧美色男人天堂| 精品88久久久久88久久久| 国产精品久久久久久久午夜片| 亚洲精品日日夜夜| 一区二区三区欧美日| 免费国产亚洲视频| 美国三级日本三级久久99| 风间由美一区二区三区在线观看 | 日韩三级中文字幕| 亚洲情趣在线观看| 亚洲综合久久久| 亚洲丶国产丶欧美一区二区三区| 亚洲精品第一国产综合野| 美腿丝袜一区二区三区| 色综合久久88色综合天天| 在线观看国产91| 久久这里只有精品6| 亚洲国产成人91porn| 天堂成人免费av电影一区| 秋霞午夜av一区二区三区| 91在线精品一区二区| 久久在线观看免费| 日本亚洲视频在线| 成人晚上爱看视频| 精品久久久网站| 国产精品的网站| 国产麻豆一精品一av一免费| 欧美一区二区视频在线观看| 午夜伊人狠狠久久| 97成人超碰视| 综合色中文字幕| av在线免费不卡| 久久精品日产第一区二区三区高清版| 五月激情综合婷婷| 欧美美女直播网站| 3d成人动漫网站| 亚洲一二三区在线观看| 色哟哟日韩精品| 亚洲欧美日韩一区二区 | 色久优优欧美色久优优| 国产精品成人在线观看| 国产成人在线观看免费网站| xf在线a精品一区二区视频网站| 日韩1区2区3区| 日韩女优制服丝袜电影| 国产精品网站一区| 国产精品一区一区三区| 国产亚洲精品久| 国产成人夜色高潮福利影视| 久久久久久**毛片大全| 国产成人免费av在线| 国产精品青草久久| 成人久久视频在线观看| 中文字幕在线一区免费| 91美女在线视频| 亚洲va欧美va人人爽午夜| 欧美精品123区| 久久国产精品色婷婷| 欧美国产日韩亚洲一区| 日韩av在线免费观看不卡| 精品卡一卡二卡三卡四在线| 国产精品一二三在| 国产精品不卡视频| 欧美日韩美女一区二区| 久久99国产乱子伦精品免费| 欧美午夜寂寞影院| 亚洲欧美aⅴ...| 欧美精品久久99| 国产精品一级黄| 中文字幕在线观看一区| 欧美日韩黄色一区二区| 日韩av成人高清| 中文幕一区二区三区久久蜜桃| 色拍拍在线精品视频8848| 亚洲va中文字幕| 国产三级久久久| 欧美性感一类影片在线播放| 激情五月激情综合网| 亚洲少妇中出一区| 日韩一区二区三区视频| 91在线观看下载| 久久99国产精品久久99果冻传媒| 中文字幕亚洲综合久久菠萝蜜| 欧美精品在线视频| 不卡的电影网站| 男人的j进女人的j一区| 一色桃子久久精品亚洲| 欧美一二区视频| 91久久奴性调教| 国产99精品国产| 蜜桃视频一区二区| 亚洲国产综合视频在线观看| 国产人伦精品一区二区| 91精品国产一区二区三区蜜臀| 成人精品高清在线| 久久99在线观看| 午夜欧美2019年伦理| 久久蜜臀中文字幕| k8久久久一区二区三区| 性感美女极品91精品| 中文字幕亚洲一区二区va在线| 日韩欧美视频一区| 欧美精品在欧美一区二区少妇| 97久久精品人人爽人人爽蜜臀| 久久爱www久久做| 日本午夜精品一区二区三区电影| 亚洲女性喷水在线观看一区| 国产欧美一区二区精品性| 欧美成人vr18sexvr| 91精品一区二区三区在线观看| 色一区在线观看| 99久久精品久久久久久清纯| 国产91综合网| 国产高清不卡二三区| 久草中文综合在线| 美女脱光内衣内裤视频久久网站| 天堂一区二区在线| 午夜影院在线观看欧美| 亚洲 欧美综合在线网络| 一区二区三区四区蜜桃| 亚洲精品中文字幕乱码三区| 国产精品久久久久影院亚瑟| 中文无字幕一区二区三区| 国产三级一区二区三区| 国产欧美一区二区精品秋霞影院| 精品福利一二区| 久久久美女艺术照精彩视频福利播放| 欧美成人免费网站| 精品伦理精品一区| 久久夜色精品国产噜噜av| 国产婷婷一区二区| 日本一区二区三区四区在线视频 | 一本一道久久a久久精品| 国产精品久久久久影院| 一本大道av伊人久久综合| 91成人在线观看喷潮| 在线观看av一区二区| 欧美一级理论片| 久久久午夜电影| 《视频一区视频二区| 亚洲福利一二三区| 久久99久久精品欧美| 成人综合在线视频| 欧美性猛交一区二区三区精品| 欧美一级片在线看| 国产精品免费视频一区| 亚洲综合999| 国产在线播精品第三| 91丨国产丨九色丨pron| 欧美一区二区精品在线| 国产欧美日韩另类一区| 亚洲一区二区三区四区在线免费观看 | 国产精品热久久久久夜色精品三区| 亚洲日本青草视频在线怡红院| 亚洲va欧美va天堂v国产综合| 久久狠狠亚洲综合| 色婷婷综合久久久久中文| 欧美一区日本一区韩国一区| 国产主播一区二区| 久久激情五月婷婷| 色呦呦网站一区| 久久久精品2019中文字幕之3|