1*1279Sbill /* mbavar.h 3.5 10/09/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; 14583Sbill int mba_dr; 15583Sbill int mba_pad1[250]; 16583Sbill int mba_erb[8][32]; /* external register base */ 17583Sbill struct pte mba_map[256]; 1860Sbill }; 1960Sbill 20583Sbill #define MBAINIT 0x1 21*1279Sbill #define MBAIE 0x4 2260Sbill 23*1279Sbill #define MBAEBITS 0xe0770 2460Sbill 25583Sbill #define PHYSMBA0 ((struct mba_regs *)0x20010000) 26583Sbill #define PHYSMBA1 ((struct mba_regs *)0x20012000) 2760Sbill 28583Sbill #define mbadev(mba,unit) ((struct device *)mba->mba_erb[unit]) 2960Sbill 30583Sbill #ifdef KERNEL 31583Sbill struct mba_info 32583Sbill { 33583Sbill struct mba_regs *mi_loc; /* virtual mba */ 34583Sbill struct mba_regs *mi_phys; /* physical mba */ 35583Sbill struct pte *mi_map; /* page table base for nexus */ 36583Sbill }; 3760Sbill 38*1279Sbill #define MBA0 ((struct mba_regs *)0x80064000) 39*1279Sbill #define MBA1 ((struct mba_regs *)0x80066000) 40583Sbill 41583Sbill int mbanum[]; 42583Sbill struct mba_info mbainfo[]; 43583Sbill int mbaact; 44583Sbill #endif 45