uncompress.h

来自「内核linux2.4.20,可跟rtlinux3.2打补丁 组成实时linux系」· C头文件 代码 · 共 58 行

H
58
字号
/* *  linux/include/asm-arm/arch-anakin/uncompress.h * *  Copyright (C) 2001 Aleph One Ltd. for Acunia N.V. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. * *  Changelog: *   10-Apr-2001 TTC	Created */#ifndef __ASM_ARCH_UNCOMPRESS_H#define __ASM_ARCH_UNCOMPRESS_H#include <asm/io.h>#include <asm/arch/serial_reg.h>#ifndef CONFIG_ANAKIN_DEFAULT_BAUDRATE#define CONFIG_ANAKIN_DEFAULT_BAUDRATE	9600#endifstatic inline voidputc(int c){	while (!(__raw_readl(IO_START + UART0 + 0x10) & TXEMPTY));	__raw_writel(c, IO_START + UART0 + 0x14);	__raw_writel(__raw_readl(IO_START + UART0 + 0x18)			| SENDREQUEST, IO_START + UART0 + 0x18);}static voidputs(const char *s){	int c;	while ((c = *s++)) {		putc(c);		if (c == '\n') putc('\r');	}}static voidarch_decomp_setup(void){	__raw_writel(__raw_readl(IO_START + UART0 + 0x10) & ~PRESCALER			| SETBAUD(CONFIG_ANAKIN_DEFAULT_BAUDRATE),			IO_START + UART0 + 0x10);	__raw_writel(__raw_readl(IO_START + UART0 + 0x18) & ~(IRQENABLE			| RTS | DTR | BLOCKRX | PARITY),			IO_START + UART0 + 0x18);}#define arch_decomp_wdog()#endif

⌨️ 快捷键说明

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