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

axis_w1.h

Go to the documentation of this file.
00001 
00008 /****************************************************************************
00009 *
00010 *     Axis 2 PCI Linux Kernel driver
00011 *     File:    des_io.h
00012 *     Version: 1.0
00013 *     Copyright 2004 Heber Limited (http://www.heber.co.uk)
00014 *
00015 *     This program is free software; you can redistribute it and/or modify it
00016 *     under the terms of the GNU General Public License as published by the
00017 *     Free Software Foundation; either version 2, or (at your option) any
00018 *     later version.
00019 *
00020 *     This program is distributed in the hope that it will be useful, but
00021 *     WITHOUT ANY WARRANTY; without even the implied warranty of
00022 *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00023 *     General Public License for more details.
00024 *
00025 *     You should have received a copy of the GNU General Public License along
00026 *     with this program; if not, write to the Free Software Foundation, Inc.,
00027 *     675 Mass Ave, Cambridge, MA 02139, USA.
00028 *
00029 *     Changes:
00030 *
00031 ****************************************************************************/
00032 #ifndef AXIS_W1_H
00033 #define AXIS_W1_H
00034 #ifndef _LINUX_KERNEL_H
00035 
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/crypto.h>
00050 #include <asm/uaccess.h>
00051 
00052 #endif  //_LINUX_KERNEL_H
00053 
00054 
00055 #ifndef AXIS_HARDWARE_H
00056 #include "axis_hardware.h"
00057 #endif //AXIS_HARDWARE_H
00058 #define _SOCK_H //bodge to remove warnings caused by signed /unsigned mismatch in socket code not sure why w1.h
00059 #include "linux/../../drivers/w1/w1.h"
00060 
00061 #define IBUTTON_RX_BIT          (1<<31)
00062 #define IBUTTON_TX_BIT          (1<<30)     
00063 #define SERIAL_NUMBER_RX_BIT (1<<29)
00064 #define SERIAL_NUMBER_TX_BIT (1<<28)
00065 
00066 #define AXIS_SERIAL_NUMBER_OFFSET                   (0x14+CONTROL_OFFSET)
00067 #define AXIS_IBUTTONOFFSET                          (0x14+CONTROL_OFFSET)
00068 
00069 struct axis_w1
00070 {
00071     unsigned long tx_mask ;
00072     unsigned long rx_mask ;
00073     unsigned long register_offset ;
00074     struct axis_pci_device_entry* device ;
00075     struct w1_bus_master *bus_master;
00076     struct w1_bus_master master ;
00077 } ;
00078 
00079 
00080 int build_w1_config(struct axis_pci_device_entry * device);
00081 void delete_w1_config(struct axis_pci_device_entry * device);
00082 //void create_proc_w1_entries(struct axis_pci_device_entry* device);
00083 //void delete_proc_w1_entries(struct axis_pci_device_entry* device);
00084 
00085 void create_serial_number_entries(struct axis_pci_device_entry* device);
00086 void delete_serial_number_entries(struct axis_pci_device_entry* device);
00087 
00088 #endif  //AXIS_W1_H
00089 

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