uncompress.h

来自「omap3 linux 2.6 用nocc去除了冗余代码」· C头文件 代码 · 共 58 行

H
58
字号
/* * linux/include/asm-arm/arch-omap/uncompress.h * * Serial port stubs for kernel decompress status messages * * Initially based on: * linux-2.4.15-rmk1-dsplinux1.6/include/asm-arm/arch-omap1510/uncompress.h * Copyright (C) 2000 RidgeRun, Inc. * Author: Greg Lonnon <glonnon@ridgerun.com> * * Rewritten by: * Author: <source@mvista.com> * 2004 (c) MontaVista Software, Inc. * * This file is licensed under the terms of the GNU General Public License * version 2. This program is licensed "as is" without any warranty of any * kind, whether express or implied. */#include <linux/types.h>#include <linux/serial_reg.h>#include <asm/arch/serial.h>unsigned int system_rev;#define UART_OMAP_MDR1		0x08	/* mode definition register */#define OMAP_ID_730		0x355F#define ID_MASK			0x7fff#define check_port(base, shift) ((base[UART_OMAP_MDR1 << shift] & 7) == 0)#define omap_get_id() ((*(volatile unsigned int *)(0xfffed404)) >> 12) & ID_MASKstatic void putc(int c){	volatile u8 * uart = 0;	int shift = 2;	uart = (volatile u8 *)(OMAP_UART3_BASE);	/*	 * Now, xmit each character	 */	while (!(uart[UART_LSR << shift] & UART_LSR_THRE))		barrier();	uart[UART_TX << shift] = c;}static inline void flush(void){}/* * nothing to do */#define arch_decomp_setup()#define arch_decomp_wdog()

⌨️ 快捷键说明

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