/home/hillier_g/checkout/most4linux/most-kernel/most-pci.h

Go to the documentation of this file.
00001 /*
00002  *  Copyright(c) Siemens AG, Muenchen, Germany, 2005, 2006, 2007
00003  *                           Bernhard Walle <bernhard.walle@gmx.de>
00004  *                           Gernot Hillier <gernot.hillier@siemens.com>
00005  *
00006  * ----------------------------------------------------------------------------
00007  * This program is free software; you can redistribute it and/or modify
00008  * it under the terms of the GNU General Public License version 2 as 
00009  * published by the Free Software Foundation;
00010  *
00011  * This program is distributed in the hope that it will be useful,
00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014  * GNU General Public License for more details.
00015  *
00016  * You should have received a copy of the GNU General Public License
00017  * along with this program; if not, write to the Free Software
00018  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
00019  * ----------------------------------------------------------------------------
00020  */
00021 #ifndef MOST_PCI_H
00022 #define MOST_PCI_H
00023 
00031 #ifdef HAVE_CONFIG_H
00032 #include "config/config.h"
00033 #endif
00034 #include <linux/interrupt.h>
00035 #include <linux/spinlock.h>
00036 
00037 #ifdef RT_RTDM
00038 #   include <rtdm/rtdm_driver.h>
00039 #endif
00040 
00041 #include "most-common.h"
00042 
00046 struct most_pci_device
00047 {
00048     void __iomem       *mem;                   
00050     struct pci_dev     *lpci_dev;              
00051     u8                 interrupt_line;         
00054     short              fpga_revision;          
00055     unsigned int       fpga_features;          
00056     unsigned char      page;                   
00057 #ifdef RT_RTDM
00058     rtdm_irq_t         rt_irq_handle;          
00059 #endif
00060 };
00061 
00062 
00066 #define PCI_DEV(most_device)                                                        \
00067     ((struct most_pci_device *)((most_device)->impl))
00068 
00069 #endif /* MOST_PCI_H */
00070 
00071 
00072 /* vim: set ts=4 et sw=4: */

Generated on Fri Mar 9 14:48:58 2007 for MOST Linux Drivers (Linux and RTAI) by  doxygen 1.5.0