1*1907Swnj /* mbavar.h 4.2 12/17/80 */ 260Sbill 3*1907Swnj #if VAX==780 460Sbill /* 560Sbill * VAX Massbus adapter registers 660Sbill */ 760Sbill 860Sbill struct mba_regs 960Sbill { 1060Sbill int mba_csr; 1160Sbill int mba_cr; 1260Sbill int mba_sr; 1360Sbill int mba_var; 1460Sbill int mba_bcr; 15583Sbill int mba_dr; 16583Sbill int mba_pad1[250]; 17583Sbill int mba_erb[8][32]; /* external register base */ 18583Sbill struct pte mba_map[256]; 1960Sbill }; 2060Sbill 21583Sbill #define MBAINIT 0x1 221279Sbill #define MBAIE 0x4 2360Sbill 241279Sbill #define MBAEBITS 0xe0770 2560Sbill 26583Sbill #define PHYSMBA0 ((struct mba_regs *)0x20010000) 27583Sbill #define PHYSMBA1 ((struct mba_regs *)0x20012000) 2860Sbill 29583Sbill #define mbadev(mba,unit) ((struct device *)mba->mba_erb[unit]) 3060Sbill 31583Sbill #ifdef KERNEL 32583Sbill struct mba_info 33583Sbill { 34583Sbill struct mba_regs *mi_loc; /* virtual mba */ 35583Sbill struct mba_regs *mi_phys; /* physical mba */ 36583Sbill struct pte *mi_map; /* page table base for nexus */ 37583Sbill }; 3860Sbill 391279Sbill #define MBA0 ((struct mba_regs *)0x80064000) 401279Sbill #define MBA1 ((struct mba_regs *)0x80066000) 41583Sbill 42583Sbill int mbanum[]; 43583Sbill struct mba_info mbainfo[]; 44583Sbill int mbaact; 45583Sbill #endif 46*1907Swnj #endif 47