Linux Kernel
3.7.1
|
#include <linux/compiler.h>
#include <asm/serial-regs.h>
#include "misc.h"
#include "../../../../lib/inflate.c"
Go to the source code of this file.
Data Structures | |
struct | moveparams |
Macros | |
#define | CYG_DEV_BASE 0xA6FB0000 |
#define | CYG_DEV_THR (*((volatile __u8*)(CYG_DEV_BASE + 0x00))) |
#define | CYG_DEV_MCR (*((volatile __u8*)(CYG_DEV_BASE + 0x10))) |
#define | SIO_MCR_DTR 0x01 |
#define | SIO_MCR_RTS 0x02 |
#define | CYG_DEV_LSR (*((volatile __u8*)(CYG_DEV_BASE + 0x14))) |
#define | SIO_LSR_THRE 0x20 /* transmitter holding register empty */ |
#define | SIO_LSR_TEMT 0x40 /* transmitter register empty */ |
#define | CYG_DEV_MSR (*((volatile __u8*)(CYG_DEV_BASE + 0x18))) |
#define | SIO_MSR_CTS 0x10 /* clear to send */ |
#define | SIO_MSR_DSR 0x20 /* data set ready */ |
#define | LSR_WAIT_FOR(STATE) do { while (!(CYG_DEV_LSR & SIO_LSR_##STATE)) {} } while (0) |
#define | FLOWCTL_QUERY(LINE) ({ CYG_DEV_MSR & SIO_MSR_##LINE; }) |
#define | FLOWCTL_WAIT_FOR(LINE) do { while (!(CYG_DEV_MSR & SIO_MSR_##LINE)) {} } while (0) |
#define | FLOWCTL_CLEAR(LINE) do { CYG_DEV_MCR &= ~SIO_MCR_##LINE; } while (0) |
#define | FLOWCTL_SET(LINE) do { CYG_DEV_MCR |= SIO_MCR_##LINE; } while (0) |
#define | OF(args) args |
#define | STATIC static |
#define | memzero(s, n) memset((s), 0, (n)) |
#define | WSIZE |
#define | ASCII_FLAG 0x01 /* bit 0 set: file probably ASCII text */ |
#define | CONTINUATION 0x02 /* bit 1 set: continuation of multi-part gzip file */ |
#define | EXTRA_FIELD 0x04 /* bit 2 set: extra field present */ |
#define | ORIG_NAME 0x08 /* bit 3 set: original file name present */ |
#define | COMMENT 0x10 /* bit 4 set: file comment present */ |
#define | ENCRYPTED 0x20 /* bit 5 set: file is encrypted */ |
#define | RESERVED 0xC0 /* bit 6,7: reserved */ |
#define | Assert(cond, msg) |
#define | Trace(x) |
#define | Tracev(x) |
#define | Tracevv(x) |
#define | Tracec(c, x) |
#define | Tracecv(c, x) |
#define | EXT_MEM_K (*(unsigned short *)0x90002) |
#define | ALT_MEM_K (*(unsigned long *) 0x901e0) |
#define | SCREEN_INFO (*(struct screen_info *)0x90000) |
#define | INPLACE_MOVE_ROUTINE 0x1000 |
#define | LOW_BUFFER_START 0x2000 |
#define | LOW_BUFFER_END 0x90000 |
#define | LOW_BUFFER_SIZE (LOW_BUFFER_END - LOW_BUFFER_START) |
#define | HEAP_SIZE 0x3000 |
#define | BOOTLOADER_INFLATE |
#define | STACK_SIZE (4096) |
Typedefs | |
typedef unsigned char | uch |
typedef unsigned short | ush |
typedef unsigned long | ulg |
Variables | |
long | user_stack [STACK_SIZE] |
struct { | |
long * a | |
short b | |
} | stack_start = { &user_stack[STACK_SIZE], 0 } |
#define ASCII_FLAG 0x01 /* bit 0 set: file probably ASCII text */ |
#define CONTINUATION 0x02 /* bit 1 set: continuation of multi-part gzip file */ |
#define CYG_DEV_LSR (*((volatile __u8*)(CYG_DEV_BASE + 0x14))) |
#define CYG_DEV_MCR (*((volatile __u8*)(CYG_DEV_BASE + 0x10))) |
#define CYG_DEV_MSR (*((volatile __u8*)(CYG_DEV_BASE + 0x18))) |
#define CYG_DEV_THR (*((volatile __u8*)(CYG_DEV_BASE + 0x00))) |
#define FLOWCTL_CLEAR | ( | LINE | ) | do { CYG_DEV_MCR &= ~SIO_MCR_##LINE; } while (0) |
#define FLOWCTL_QUERY | ( | LINE | ) | ({ CYG_DEV_MSR & SIO_MSR_##LINE; }) |
#define FLOWCTL_SET | ( | LINE | ) | do { CYG_DEV_MCR |= SIO_MCR_##LINE; } while (0) |
#define FLOWCTL_WAIT_FOR | ( | LINE | ) | do { while (!(CYG_DEV_MSR & SIO_MSR_##LINE)) {} } while (0) |
#define LOW_BUFFER_SIZE (LOW_BUFFER_END - LOW_BUFFER_START) |
#define LSR_WAIT_FOR | ( | STATE | ) | do { while (!(CYG_DEV_LSR & SIO_LSR_##STATE)) {} } while (0) |
#define ORIG_NAME 0x08 /* bit 3 set: original file name present */ |
#define SCREEN_INFO (*(struct screen_info *)0x90000) |
#define SIO_LSR_THRE 0x20 /* transmitter holding register empty */ |
#define WSIZE |
void close_output_buffer_if_we_run_high | ( | struct moveparams * | mv | ) |
int decompress_kernel | ( | struct moveparams * | mv | ) |
void setup_output_buffer_if_we_run_high | ( | struct moveparams * | mv | ) |
long user_stack[STACK_SIZE] |