#include <linux/export.h>
#include <linux/kernel.h>
#include <linux/stddef.h>
#include <linux/string.h>
#include <linux/nvram.h>
#include <linux/init.h>
#include <linux/delay.h>
#include <linux/errno.h>
#include <linux/adb.h>
#include <linux/pmu.h>
#include <linux/bootmem.h>
#include <linux/completion.h>
#include <linux/spinlock.h>
#include <asm/sections.h>
#include <asm/io.h>
#include <asm/prom.h>
#include <asm/machdep.h>
#include <asm/nvram.h>
#include "pmac.h"
Go to the source code of this file.
#define CORE99_ADLER_START 0x14 |
#define CORE99_SIGNATURE 0x5a |
#define NVRAM_SIZE 0x2000 /* 8kB of non-volatile RAM */ |
#define SM_FLASH_CMD_CLEAR_STATUS 0x50 |
#define SM_FLASH_CMD_ERASE_CONFIRM 0xd0 |
#define SM_FLASH_CMD_ERASE_SETUP 0x20 |
#define SM_FLASH_CMD_READ_STATUS 0x70 |
#define SM_FLASH_CMD_RESET 0xff |
#define SM_FLASH_CMD_WRITE_SETUP 0x40 |
#define SM_FLASH_STATUS_DONE 0x80 |
#define SM_FLASH_STATUS_ERR 0x38 |
int pmac_get_partition |
( |
int |
partition | ) |
|
u8 pmac_xpram_read |
( |
int |
xpaddr | ) |
|
void pmac_xpram_write |
( |
int |
xpaddr, |
|
|
u8 |
data |
|
) |
| |