4 #define CBD_BASE 0xFB800000
6 #define CBD_LAM_VME_IRQ 3
7 #define CBD_IT2_VME_IRQ 2
8 #define CBD_IT4_VME_IRQ 4
12 #define BCNAF16(b,c,n,a,f) (CBD_BASE | ((b)<<19) | ((c)<<16) | ((n)<<11) | ((a)<<7) | ((f)<<2) | 2)
13 #define BCNAF24(b,c,n,a,f) (CBD_BASE | ((b)<<19) | ((c)<<16) | ((n)<<11) | ((a)<<7) | ((f)<<2))
15 extern inline UINT32 cam24r(
int b,
int c,
int n,
int a,
int f)
20 ret = (*(UINT16 *)BCNAF24(b,c,n,a,f))<<16 ;
22 ret |= *(UINT16 *)BCNAF16(b,c,n,a,f) ;
27 extern inline void cam24w(
int b,
int c,
int n,
int a,
int f, UINT32
data)
30 *(UINT16 *)BCNAF24(b,c,n,a,f) = data >> 16 ;
32 *(UINT16 *)BCNAF16(b,c,n,a,f) = data & 0xFFFF ;
38 extern int cbdCrate[8] ;
39 extern int cbdCrateCou ;