xref: /netbsd/sys/dev/vme/vmereg.h (revision bf9ec67e)
1 /* $NetBSD: vmereg.h,v 1.1 1999/06/30 15:06:05 drochner Exp $ */
2 
3 /* constants for address modifiers */
4 
5 #define VME_AM_ADRSIZEMASK 0x30
6 #define VME_AM_A32 0
7 #define VME_AM_A16 0x20
8 #define VME_AM_A24 0x30
9 #define VME_AM_USERDEF 0x10 /* user/vendor definable */
10 
11 #define VME_AM_MBO 8 /* must be set for standard AMs */
12 
13 #define VME_AM_PRIVMASK 4
14 #define VME_AM_SUPER 4
15 #define VME_AM_USER 0
16 
17 #define VME_AM_MODEMASK 3
18 #define VME_AM_DATA 1
19 #define VME_AM_PRG 2 /* only with A32, A24 */
20 #define VME_AM_BLT32 3 /* only with A32, A24 */
21 #define VME_AM_BLT64 0 /* new, only with A32, A24 */
22 
23 #if 0
24 /* some AMs not yet supported by the framework */
25 
26 /* ??? */
27 VME_AM_A24_xxx 0x32
28 VME_AM_A32_xxx 0x05
29 
30 /* VME64 extension */
31 VME_AM_A40 0x34,0x35,0x37
32 VME_AM_A64 0x00,0x01,0x03,0x04
33 VME_AM_CR_CSR 0x2f /* GEO */
34 
35 /* 2eVME extension */
36 VME_AM_2E_6U 0x20
37 VME_AM_2E_3U 0x21
38 #endif
39