📄 uncompress.h
字号:
/* * 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -