Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
fw-emu.c File Reference
#include <linux/efi.h>
#include <asm/io.h>
#include <asm/pal.h>
#include <asm/sal.h>
#include <asm/setup.h>
#include "ssc.h"

Go to the source code of this file.

Macros

#define MB   (1024*1024UL)
 
#define SIMPLE_MEMMAP   1
 
#define NUM_MEM_DESCS   4
 
#define SECS_PER_HOUR   (60 * 60)
 
#define SECS_PER_DAY   (SECS_PER_HOUR * 24)
 
#define DIV(a, b)   ((a) / (b) - ((a) % (b) < 0))
 
#define LEAPS_THRU_END_OF(y)   (DIV (y, 4) - DIV (y, 100) + DIV (y, 400))
 
#define __isleap(year)   ((year) % 4 == 0 && ((year) % 100 != 0 || (year) % 400 == 0))
 
#define BUILD_CMD(addr)   ((0x80000000 | (addr)) & ~3)
 
#define REG_OFFSET(addr)   (0x00000000000000FF & (addr))
 
#define DEVICE_FUNCTION(addr)   (0x000000000000FF00 & (addr))
 
#define BUS_NUMBER(addr)   (0x0000000000FF0000 & (addr))
 
#define MAKE_MD(typ, attr, start, end)
 

Functions

int offtime (unsigned long t, efi_time_t *tp)
 
void pal_emulator_static (void)
 
struct ia64_boot_paramsys_fw_init (const char *args, int arglen)
 

Macro Definition Documentation

#define __isleap (   year)    ((year) % 4 == 0 && ((year) % 100 != 0 || (year) % 400 == 0))
#define BUILD_CMD (   addr)    ((0x80000000 | (addr)) & ~3)

Definition at line 104 of file fw-emu.c.

#define BUS_NUMBER (   addr)    (0x0000000000FF0000 & (addr))

Definition at line 108 of file fw-emu.c.

#define DEVICE_FUNCTION (   addr)    (0x000000000000FF00 & (addr))

Definition at line 107 of file fw-emu.c.

#define DIV (   a,
  b 
)    ((a) / (b) - ((a) % (b) < 0))
#define LEAPS_THRU_END_OF (   y)    (DIV (y, 4) - DIV (y, 100) + DIV (y, 400))
#define MAKE_MD (   typ,
  attr,
  start,
  end 
)
Value:
do { \
md = efi_memmap + i++; \
md->type = typ; \
md->pad = 0; \
md->phys_addr = start; \
md->virt_addr = 0; \
md->num_pages = (end - start) >> 12; \
md->attribute = attr; \
} while (0)
#define MB   (1024*1024UL)

Definition at line 20 of file fw-emu.c.

#define NUM_MEM_DESCS   4

Definition at line 25 of file fw-emu.c.

#define REG_OFFSET (   addr)    (0x00000000000000FF & (addr))

Definition at line 106 of file fw-emu.c.

#define SECS_PER_DAY   (SECS_PER_HOUR * 24)

Definition at line 40 of file fw-emu.c.

#define SECS_PER_HOUR   (60 * 60)

Definition at line 39 of file fw-emu.c.

#define SIMPLE_MEMMAP   1

Definition at line 22 of file fw-emu.c.

Function Documentation

int offtime ( unsigned long  t,
efi_time_t tp 
)

Definition at line 47 of file fw-emu.c.

void pal_emulator_static ( void  )
struct ia64_boot_param* sys_fw_init ( const char args,
int  arglen 
)
read

Definition at line 232 of file fw-emu.c.