#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.
#define __isleap |
( |
|
year | ) |
((year) % 4 == 0 && ((year) % 100 != 0 || (year) % 400 == 0)) |
#define BUILD_CMD |
( |
|
addr | ) |
((0x80000000 | (addr)) & ~3) |
#define BUS_NUMBER |
( |
|
addr | ) |
(0x0000000000FF0000 & (addr)) |
#define DEVICE_FUNCTION |
( |
|
addr | ) |
(0x000000000000FF00 & (addr)) |
#define DIV |
( |
|
a, |
|
|
|
b |
|
) |
| ((a) / (b) - ((a) % (b) < 0)) |
#define LEAPS_THRU_END_OF |
( |
|
y | ) |
(DIV (y, 4) - DIV (y, 100) + DIV (y, 400)) |
Value:do { \
md->type = typ; \
md->pad = 0; \
md->virt_addr = 0; \
} while (0)
#define REG_OFFSET |
( |
|
addr | ) |
(0x00000000000000FF & (addr)) |
#define SECS_PER_HOUR (60 * 60) |