Main Page | Data Structures | File List | Data Fields | Globals

axis_sram_config.h

Go to the documentation of this file.
00001 
00009 /****************************************************************************
00010 *
00011 *     Axis 2 PCI Linux Kernel driver
00012 *     File:    axis_sram.h
00013 *     Version: 1.0
00014 *     Copyright 2004 Heber Limited (http://www.heber.co.uk)
00015 *
00016 *     This program is free software; you can redistribute it and/or modify it
00017 *     under the terms of the GNU General Public License as published by the
00018 *     Free Software Foundation; either version 2, or (at your option) any
00019 *     later version.
00020 *
00021 *     This program is distributed in the hope that it will be useful, but
00022 *     WITHOUT ANY WARRANTY; without even the implied warranty of
00023 *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00024 *     General Public License for more details.
00025 *
00026 *     You should have received a copy of the GNU General Public License along
00027 *     with this program; if not, write to the Free Software Foundation, Inc.,
00028 *     675 Mass Ave, Cambridge, MA 02139, USA.
00029 *
00030 *     Changes:
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     If this bit is defined then the RAM write / read enables are turned on and off by the driver in
00057     response to reads and writes. As the Ram will be hidden at all other times mmapping won't work
00058     if this option is set
00059 */
00060 
00061 #define AUTO_PROTECTION         (1<<0)
00062 
00063 /*
00064     If this is set then the RAM block is exported to the MTD subsystem and can be used as a block device
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

Generated on Fri Jan 28 12:33:47 2005 for Axis Kernel Driver by doxygen 1.3.6