xref: /csrg-svn/sys/vax/mba/mbavar.h (revision 583)
1*583Sbill /*	mbavar.h	3.4	08/08/80	*/
260Sbill 
360Sbill /*
460Sbill  * VAX Massbus adapter registers
560Sbill  */
660Sbill 
760Sbill struct mba_regs
860Sbill {
960Sbill 	int	mba_csr;
1060Sbill 	int	mba_cr;
1160Sbill 	int	mba_sr;
1260Sbill 	int	mba_var;
1360Sbill 	int	mba_bcr;
14*583Sbill 	int	mba_dr;
15*583Sbill 	int	mba_pad1[250];
16*583Sbill 	int	mba_erb[8][32];		/* external register base */
17*583Sbill 	struct	pte mba_map[256];
1860Sbill };
1960Sbill 
20*583Sbill #define	MBAINIT		0x1
21*583Sbill #define MBAIE		0x4
2260Sbill 
23*583Sbill #define MBAEBITS	0xe0770
2460Sbill 
25*583Sbill #define	PHYSMBA0	((struct mba_regs *)0x20010000)
26*583Sbill #define	PHYSMBA1	((struct mba_regs *)0x20012000)
2760Sbill 
28*583Sbill #define	mbadev(mba,unit)	((struct device *)mba->mba_erb[unit])
2960Sbill 
30*583Sbill #ifdef KERNEL
31*583Sbill struct mba_info
32*583Sbill {
33*583Sbill 	struct	mba_regs *mi_loc;	/* virtual mba */
34*583Sbill 	struct	mba_regs *mi_phys;	/* physical mba */
35*583Sbill 	struct	pte *mi_map;		/* page table base for nexus */
36*583Sbill };
3760Sbill 
38*583Sbill #define MBA0		((struct mba_regs *)0x80064000)
39*583Sbill #define MBA1		((struct mba_regs *)0x80066000)
40*583Sbill 
41*583Sbill int	mbanum[];
42*583Sbill struct	mba_info mbainfo[];
43*583Sbill int	mbaact;
44*583Sbill #endif
45