Correcting difference between mvme162lx and mvme162. All versions have

four serial ports.
This commit is contained in:
Joel Sherrill
1997-08-04 21:53:42 +00:00
parent 02d08803b6
commit 669123e1d3

View File

@@ -125,12 +125,17 @@ typedef struct {
to support Multi SCC chips */ to support Multi SCC chips */
#undef scc #undef scc
#if defined(mvme162lx)
static scc_regs *scc[NPORTS] = { static scc_regs *scc[NPORTS] = {
((scc_regs * const) 0xFFF45004), ((scc_regs * const) 0xFFF45004),
((scc_regs * const) 0xFFF45000), ((scc_regs * const) 0xFFF45000),
((scc_regs * const) 0xFFF45804), ((scc_regs * const) 0xFFF45804),
((scc_regs * const) 0xFFF45800) ((scc_regs * const) 0xFFF45800)
}; };
#else
/* XXX fix me */
#warning "MVME162 BSP -- unknown address for SCC's"
#endif
#undef ZWRITE0 #undef ZWRITE0
#define ZWRITE0(port, v) (scc[port]->csr = (unsigned char)(v)) #define ZWRITE0(port, v) (scc[port]->csr = (unsigned char)(v))