1
0
mirror of https://github.com/PDP-10/klh10.git synced 2026-01-13 15:27:10 +00:00
PDP-10.klh10/src/dvlites.h
Olaf Seibert 58b59dbaa1 Overlay panda-dist/klh10-2.0h
by the late MRC, Mark Crispin.
Source: probably the former http://panda.com/tops-20/ .
panda-dist.tar.gz dated Mar 30  2007.
2015-04-27 23:07:21 +02:00

53 lines
1.8 KiB
C

/* DVLITES.H - Driver for Spare Time Gizmos Panda Display lights
*/
/* Copyright 2005 Mark Crispin
** All Rights Reserved
**
** This file is part of the KLH10 Distribution. Use, modification, and
** re-distribution is permitted subject to the terms in the file
** named "LICENSE", which contains the full text of the legal notices
** and should always accompany this Distribution.
**
** This program is provide "AS IS" with NO WARRANTY OF ANY KIND.
**
** This notice (including the copyright and warranty disclaimer)
** must be included in all copies or derivations of this software.
*/
#if KLH10_DEV_LITES /* Moby conditional */
/* General routines for all displays */
/* one-time initialize and set port */
int lites_init (unsigned int prt);
/* set current unit */
void lites_setdisplay (unsigned int unt);
/* set enable on current unit */
void lites_setenable (short enable);
/* write data LEDs on current unit */
void lites_data (unsigned char data[5]);
/* write status LEDs on current unit */
void lites_status (unsigned char data);
#define STATUS_LED1 0x80 /* status LED1 */
#define STATUS_LED2 0x40 /* status LED2 */
#define STATUS_LED3 0x20 /* status LED3 */
#define STATUS_LED4 0x10 /* status LED4 */
#define STATUS_LEDS (STATUS_LED1 | STATUS_LED2 | STATUS_LED3 | STATUS_LED4)
/* Specific routines for display 0 */
/* write program status lights */
void lights_pgmlites (unsigned long lh,unsigned long rh);
/* write program auxillary lights */
void lights_pgmaux (unsigned char aux);
/* system heartbeat */
void lights_status (char cpu,char disk,char tape,char net,char push);
#else /* KLH10_DEV_LITES */
#define lights_pgmlites(lh,rh)
#define lights_pgmaux(aux)
#define lights_status(cpu,disk,tape,net,push)
#endif /* KLH10_DEV_LITES */