00001
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033 #ifndef AXIS_SRAM_CONFIG_H
00034 #define AXIS_SRAM_CONFIG_H
00035 #ifndef _LINUX_KERNEL_H
00036 #include <linux/kernel.h>
00037 #include <linux/sched.h>
00038 #include <linux/version.h>
00039 #include <linux/module.h>
00040 #include <linux/proc_fs.h>
00041 #include <linux/delay.h>
00042 #include <linux/pci.h>
00043 #include <linux/list.h>
00044 #include <linux/ioport.h>
00045 #include <linux/serial.h>
00046 #include <linux/interrupt.h>
00047 #include <linux/string.h>
00048 #include <linux/spinlock.h>
00049 #include <linux/mtd/mtd.h>
00050 #include <linux/crypto.h>
00051 #include <asm/uaccess.h>
00052 #endif //_LINUX_KERNEL_H
00053
00054
00055
00056
00057
00058
00059
00060
00061 #define AUTO_PROTECTION (1<<0)
00062
00063
00064
00065
00066 #define CREATE_MTD_DEVICE (1<<1)
00067
00068
00069
00070
00071 #define DEFAULT_READ_ENABLE_ON (1<<2)
00072 #define DEFAULT_WRITE_ENABLE_ON (1<<3)
00073
00074 #define AXIS_PAGE_SHIFT 16
00075
00076 #define AXIS_64K_BLOCK (1<<AXIS_PAGE_SHIFT)
00077
00078 #define AXIS_PAGE_SIZE AXIS_64K_BLOCK
00079
00087 struct sram_config_entry
00088 {
00089 size_t length ;
00090 unsigned long options ;
00091 unsigned device_number ;
00092 };
00093
00094
00095
00096 #endif //AXIS_SRAM_CONFIG_H