slram.c (5e2aa2ed08e2e280121dc7cf5609c87d464f12ef) | slram.c (2584cf83578c26db144730ef498f4070f82ee3ea) |
---|---|
1/*====================================================================== 2 3 This driver provides a method to access memory not used by the kernel 4 itself (i.e. if the kernel commandline mem=xxx is used). To actually 5 use slram at least mtdblock or mtdchar is required (for block or 6 character device access). 7 8 Usage: --- 27 unchanged lines hidden (view full) --- 36#include <linux/ptrace.h> 37#include <linux/slab.h> 38#include <linux/string.h> 39#include <linux/timer.h> 40#include <linux/major.h> 41#include <linux/fs.h> 42#include <linux/ioctl.h> 43#include <linux/init.h> | 1/*====================================================================== 2 3 This driver provides a method to access memory not used by the kernel 4 itself (i.e. if the kernel commandline mem=xxx is used). To actually 5 use slram at least mtdblock or mtdchar is required (for block or 6 character device access). 7 8 Usage: --- 27 unchanged lines hidden (view full) --- 36#include <linux/ptrace.h> 37#include <linux/slab.h> 38#include <linux/string.h> 39#include <linux/timer.h> 40#include <linux/major.h> 41#include <linux/fs.h> 42#include <linux/ioctl.h> 43#include <linux/init.h> |
44#include <asm/io.h> | 44#include <linux/io.h> |
45 46#include <linux/mtd/mtd.h> 47 48#define SLRAM_MAX_DEVICES_PARAMS 6 /* 3 parameters / device */ 49#define SLRAM_BLK_SZ 0x4000 50 51#define T(fmt, args...) printk(KERN_DEBUG fmt, ## args) 52#define E(fmt, args...) printk(KERN_NOTICE fmt, ## args) --- 295 unchanged lines hidden --- | 45 46#include <linux/mtd/mtd.h> 47 48#define SLRAM_MAX_DEVICES_PARAMS 6 /* 3 parameters / device */ 49#define SLRAM_BLK_SZ 0x4000 50 51#define T(fmt, args...) printk(KERN_DEBUG fmt, ## args) 52#define E(fmt, args...) printk(KERN_NOTICE fmt, ## args) --- 295 unchanged lines hidden --- |