sys/pmax/dev/mfb.c
/*
 * Configure the mouse and keyboard based on machine type
 */
Configure the mouse and keyboard based on machine type
Configure the mouse and keyboard based on machine type
static void
mfbConfigMouse()
{
	int s;
	s = spltty();
	switch (pmax_boardtype) {
#if NDC > 0
	case DS_3MAX:
		dcDivertXInput = mfbKbdEvent;
		dcMouseEvent = mfbMouseEvent;
		dcMouseButtons = mfbMouseButtons;
		break;
#endif
#if NSCC > 1
	case DS_3MIN:
		sccDivertXInput = mfbKbdEvent;
		sccMouseEvent = mfbMouseEvent;
		sccMouseButtons = mfbMouseButtons;
		break;
#endif
#if NDTOP > 0
	case DS_MAXINE:
		dtopDivertXInput = mfbKbdEvent;
		dtopMouseEvent = mfbMouseEvent;
		dtopMouseButtons = mfbMouseButtons;
		break;
#endif
	default:
		printf("Can't configure mouse/keyboard\n");
	};
	splx(s);
}
static void mfbConfigMouse ( ) { int s ; s = spltty ( ) ; switch ( pmax_boardtype ) { #if NDC > 0 case DS_3MAX : dcDivertXInput = mfbKbdEvent ; dcMouseEvent = mfbMouseEvent ; dcMouseButtons = mfbMouseButtons ; break ; #endif #if NSCC > 1 case DS_3MIN : sccDivertXInput = mfbKbdEvent ; sccMouseEvent = mfbMouseEvent ; sccMouseButtons = mfbMouseButtons ; break ; #endif #if NDTOP > 0 case DS_MAXINE : dtopDivertXInput = mfbKbdEvent ; dtopMouseEvent = mfbMouseEvent ; dtopMouseButtons = mfbMouseButtons ; break ; #endif default : printf ( " \n " ) ; } ; splx ( s ) ; }
Configure the mouse and keyboard based on machine type
Configure the mouse and keyboard based on machine type