Details | Last modification | View Log | RSS feed
| Rev | Author | Line No. | Line |
|---|---|---|---|
| 9 | f9daq | 1 | #ifndef __VME_H__ |
| 2 | #define __VME_H__ |
||
| 3 | |||
| 4 | //**************************************************************************** |
||
| 5 | // Copyright (C) 2001-2004 ARW Elktronik Germany |
||
| 6 | // |
||
| 7 | // This program is free software; you can redistribute it and/or modify |
||
| 8 | // it under the terms of the GNU General Public License as published by |
||
| 9 | // the Free Software Foundation; either version 2 of the License, or |
||
| 10 | // (at your option) any later version. |
||
| 11 | // |
||
| 12 | // This program is distributed in the hope that it will be useful, |
||
| 13 | // but WITHOUT ANY WARRANTY; without even the implied warranty of |
||
| 14 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||
| 15 | // GNU General Public License for more details. |
||
| 16 | // |
||
| 17 | // You should have received a copy of the GNU General Public License |
||
| 18 | // along with this program; if not, write to the Free Software |
||
| 19 | // Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
||
| 20 | // |
||
| 21 | // This product is not authorized for use as critical component in |
||
| 22 | // life support systems without the express written approval of |
||
| 23 | // ARW Elektronik Germany. |
||
| 24 | // |
||
| 25 | // Please announce changes and hints to ARW Elektronik |
||
| 26 | // |
||
| 27 | // Maintainer(s): Klaus Hitschler (klaus.hitschler@gmx.de) |
||
| 28 | //**************************************************************************** |
||
| 29 | |||
| 30 | //**************************************************************************** |
||
| 31 | // |
||
| 32 | // vme.h - some important definitions about VME bus address modifiers |
||
| 33 | // |
||
| 34 | // $Log: vme.h,v $ |
||
| 35 | // Revision 1.6 2004/08/13 19:23:26 klaus |
||
| 36 | // conversion to kernel-version 2.6, released version 3.0 |
||
| 37 | // |
||
| 38 | // Revision 1.5 2002/10/18 21:56:28 klaus |
||
| 39 | // completed functional features, untested |
||
| 40 | // |
||
| 41 | // Revision 1.4 2002/10/18 21:56:28 klaus |
||
| 42 | // completed functional features, untested |
||
| 43 | // |
||
| 44 | // Revision 1.3 2002/10/10 18:57:46 klaus |
||
| 45 | // source beautyfied |
||
| 46 | // |
||
| 47 | //**************************************************************************** |
||
| 48 | |||
| 49 | //**************************************************************************** |
||
| 50 | // INCLUDES |
||
| 51 | #include <asm/types.h> |
||
| 52 | |||
| 53 | //**************************************************************************** |
||
| 54 | // DEFINES |
||
| 55 | #ifndef __KERNEL__ |
||
| 56 | #define u8 __u8 |
||
| 57 | #define u16 __u16 |
||
| 58 | #define u32 __u32 |
||
| 59 | #endif |
||
| 60 | |||
| 61 | typedef u16 ADDRESS_MODIFIER; |
||
| 62 | |||
| 63 | #define Std_Sup_Data (ADDRESS_MODIFIER)0x3d |
||
| 64 | #define Std_Sup_Prog (ADDRESS_MODIFIER)0x3e |
||
| 65 | #define Std_NoPriv_Data (ADDRESS_MODIFIER)0x39 |
||
| 66 | #define Std_NoPriv_Prog (ADDRESS_MODIFIER)0x3a |
||
| 67 | |||
| 68 | #define Short_Sup (ADDRESS_MODIFIER)0x2d |
||
| 69 | #define Short_NoPriv (ADDRESS_MODIFIER)0x29 |
||
| 70 | |||
| 71 | #define Ext_Sup_Data (ADDRESS_MODIFIER)0x0d |
||
| 72 | #define Ext_Sup_Prog (ADDRESS_MODIFIER)0x0e |
||
| 73 | #define Ext_NoPriv_Data (ADDRESS_MODIFIER)0x09 |
||
| 74 | #define Ext_NoPriv_Prog (ADDRESS_MODIFIER)0x0a |
||
| 75 | |||
| 76 | #endif // __VME_H__ |
||
| 77 | |||
| 78 |