#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/types.h>
#include <linux/slab.h>
#include <linux/list.h>
#include <linux/string.h>
#include <linux/sched.h>
#include <linux/smp.h>
#include <linux/errno.h>
#include <linux/init.h>
#include <linux/of.h>
#include <linux/of_device.h>
#include <asm/spitfire.h>
#include <asm/chmctrl.h>
#include <asm/cpudata.h>
#include <asm/oplib.h>
#include <asm/prom.h>
#include <asm/head.h>
#include <asm/io.h>
#include <asm/memctrl.h>
Go to the source code of this file.
#define DRV_MODULE_NAME "chmc" |
#define DRV_MODULE_VERSION "0.2" |
#define INTERLEAVE_BOTH 3 |
#define INTERLEAVE_INTERNAL 2 |
#define INTERLEAVE_NONE 0 |
#define INTERLEAVE_SAME 1 |
#define JB_MC_REG1_ADDR_GEN_1 0x0000001c00000000UL |
#define JB_MC_REG1_ADDR_GEN_1_SHIFT 34 |
#define JB_MC_REG1_ADDR_GEN_2 0x000000e000000000UL |
#define JB_MC_REG1_ADDR_GEN_2_SHIFT 37 |
#define JB_MC_REG1_DIMM1_BANK0 0x1000000000000000UL |
#define JB_MC_REG1_DIMM1_BANK1 0x4000000000000000UL |
#define JB_MC_REG1_DIMM1_PTYPE 0x0000000000100000UL |
#define JB_MC_REG1_DIMM1_PTYPE_SHIFT 20 |
#define JB_MC_REG1_DIMM2_BANK2 0x2000000000000000UL |
#define JB_MC_REG1_DIMM2_BANK3 0x8000000000000000UL |
#define JB_MC_REG1_DIMM2_PTYPE 0x0000000000200000UL |
#define JB_MC_REG1_DIMM2_PTYPE_SHIFT 21 |
#define JB_MC_REG1_INTERLEAVE 0x0000000001800000UL |
#define JB_MC_REG1_INTERLEAVE_SHIFT 23 |
#define JB_MC_REG1_XOR 0x0000010000000000UL |
#define JB_NUM_DIMM_GROUPS 2 |
#define JB_NUM_DIMMS_PER_GROUP 2 |
#define JBUS_LAST_BIT (144 - 1) |
#define JBUSMC_REGS_SIZE 8 |
#define SAFARI_LAST_BIT (576 - 1) |
MODULE_DEVICE_TABLE |
( |
of |
, |
|
|
us3mc_match |
|
|
) |
| |
module_exit |
( |
us3mc_cleanup |
| ) |
|
module_init |
( |
us3mc_init |
| ) |
|