Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs | Functions | Variables
misc.c File Reference
#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
 

Functions

void setup_normal_output_buffer (void)
 
void setup_output_buffer_if_we_run_high (struct moveparams *mv)
 
void close_output_buffer_if_we_run_high (struct moveparams *mv)
 
int decompress_kernel (struct moveparams *mv)
 

Variables

long user_stack [STACK_SIZE]
 
struct {
   long *   a
 
   short   b
 
stack_start = { &user_stack[STACK_SIZE], 0 }
 

Macro Definition Documentation

#define ALT_MEM_K   (*(unsigned long *) 0x901e0)

Definition at line 146 of file misc.c.

#define ASCII_FLAG   0x01 /* bit 0 set: file probably ASCII text */

Definition at line 95 of file misc.c.

#define Assert (   cond,
  msg 
)

Definition at line 112 of file misc.c.

#define BOOTLOADER_INFLATE

Definition at line 169 of file misc.c.

#define COMMENT   0x10 /* bit 4 set: file comment present */

Definition at line 99 of file misc.c.

#define CONTINUATION   0x02 /* bit 1 set: continuation of multi-part gzip file */

Definition at line 96 of file misc.c.

#define CYG_DEV_BASE   0xA6FB0000

Definition at line 20 of file misc.c.

#define CYG_DEV_LSR   (*((volatile __u8*)(CYG_DEV_BASE + 0x14)))

Definition at line 29 of file misc.c.

#define CYG_DEV_MCR   (*((volatile __u8*)(CYG_DEV_BASE + 0x10)))

Definition at line 26 of file misc.c.

#define CYG_DEV_MSR   (*((volatile __u8*)(CYG_DEV_BASE + 0x18)))

Definition at line 32 of file misc.c.

#define CYG_DEV_THR   (*((volatile __u8*)(CYG_DEV_BASE + 0x00)))

Definition at line 25 of file misc.c.

#define ENCRYPTED   0x20 /* bit 5 set: file is encrypted */

Definition at line 100 of file misc.c.

#define EXT_MEM_K   (*(unsigned short *)0x90002)

Definition at line 144 of file misc.c.

#define EXTRA_FIELD   0x04 /* bit 2 set: extra field present */

Definition at line 97 of file misc.c.

#define FLOWCTL_CLEAR (   LINE)    do { CYG_DEV_MCR &= ~SIO_MCR_##LINE; } while (0)

Definition at line 42 of file misc.c.

#define FLOWCTL_QUERY (   LINE)    ({ CYG_DEV_MSR & SIO_MSR_##LINE; })

Definition at line 38 of file misc.c.

#define FLOWCTL_SET (   LINE)    do { CYG_DEV_MCR |= SIO_MCR_##LINE; } while (0)

Definition at line 44 of file misc.c.

#define FLOWCTL_WAIT_FOR (   LINE)    do { while (!(CYG_DEV_MSR & SIO_MSR_##LINE)) {} } while (0)

Definition at line 40 of file misc.c.

#define HEAP_SIZE   0x3000

Definition at line 162 of file misc.c.

#define INPLACE_MOVE_ROUTINE   0x1000

Definition at line 158 of file misc.c.

#define LOW_BUFFER_END   0x90000

Definition at line 160 of file misc.c.

#define LOW_BUFFER_SIZE   (LOW_BUFFER_END - LOW_BUFFER_START)

Definition at line 161 of file misc.c.

#define LOW_BUFFER_START   0x2000

Definition at line 159 of file misc.c.

#define LSR_WAIT_FOR (   STATE)    do { while (!(CYG_DEV_LSR & SIO_LSR_##STATE)) {} } while (0)

Definition at line 36 of file misc.c.

#define memzero (   s,
  n 
)    memset((s), 0, (n))

Definition at line 68 of file misc.c.

#define OF (   args)    args

Definition at line 52 of file misc.c.

#define ORIG_NAME   0x08 /* bit 3 set: original file name present */

Definition at line 98 of file misc.c.

#define RESERVED   0xC0 /* bit 6,7: reserved */

Definition at line 101 of file misc.c.

#define SCREEN_INFO   (*(struct screen_info *)0x90000)

Definition at line 148 of file misc.c.

#define SIO_LSR_TEMT   0x40 /* transmitter register empty */

Definition at line 31 of file misc.c.

#define SIO_LSR_THRE   0x20 /* transmitter holding register empty */

Definition at line 30 of file misc.c.

#define SIO_MCR_DTR   0x01

Definition at line 27 of file misc.c.

#define SIO_MCR_RTS   0x02

Definition at line 28 of file misc.c.

#define SIO_MSR_CTS   0x10 /* clear to send */

Definition at line 33 of file misc.c.

#define SIO_MSR_DSR   0x20 /* data set ready */

Definition at line 34 of file misc.c.

#define STACK_SIZE   (4096)

Definition at line 311 of file misc.c.

#define STATIC   static

Definition at line 53 of file misc.c.

#define Trace (   x)

Definition at line 113 of file misc.c.

#define Tracec (   c,
  x 
)

Definition at line 116 of file misc.c.

#define Tracecv (   c,
  x 
)

Definition at line 117 of file misc.c.

#define Tracev (   x)

Definition at line 114 of file misc.c.

#define Tracevv (   x)

Definition at line 115 of file misc.c.

#define WSIZE
Value:
0x8000 /* Window size must be at least 32k, and a power of
* two */

Definition at line 85 of file misc.c.

Typedef Documentation

typedef unsigned char uch

Definition at line 81 of file misc.c.

typedef unsigned long ulg

Definition at line 83 of file misc.c.

typedef unsigned short ush

Definition at line 82 of file misc.c.

Function Documentation

void close_output_buffer_if_we_run_high ( struct moveparams mv)

Definition at line 361 of file misc.c.

int decompress_kernel ( struct moveparams mv)

Definition at line 378 of file misc.c.

void setup_normal_output_buffer ( void  )

Definition at line 320 of file misc.c.

void setup_output_buffer_if_we_run_high ( struct moveparams mv)

Definition at line 339 of file misc.c.

Variable Documentation

const PCI_IO_ADDR addr const PCI_IO_ADDR addr u8 PCI_IO_ADDR addr u32 PCI_IO_ADDR addr u32 PCI_IO_ADDR addr unsigned long port u8 unsigned long port u32 unsigned long port const PCI_IO_ADDR void unsigned long a PCI_IO_ADDR const void unsigned long a PCI_IO_ADDR const void unsigned long a

Definition at line 316 of file misc.c.

__u32 b

Definition at line 317 of file misc.c.

struct { ... } stack_start

Definition at line 168 of file misc.c.

long user_stack[STACK_SIZE]

Definition at line 313 of file misc.c.