Specifications

B
Sample Driver Written in C
This appendix contains a sample driver written in C and a command procedure
for compiling and linking the driver.
B.1 LRDRIVER Example
The LRDRIVER is for the parallel output port of the VL82C106 Combo chip on
an ISA option card for the DEC 2000 Model 300 AXP system. You can obtain the
most current version of this driver from the SYS$EXAMPLES directory.
#pragma module LRDRIVER X1
/*
*****************************************************************************
*
* Copyright © Digital Equipment Corporation, 1994 All Rights Reserved.
* Unpublished rights reserved under the copyright laws of the United States.
*
* The software contained on this media is proprietary to and embodies the
* confidential technology of Digital Equipment Corporation. Possession, use,
* duplication or dissemination of the software and media is authorized only
* pursuant to a valid written license from Digital Equipment Corporation.
*
* RESTRICTED RIGHTS LEGEND Use, duplication, or disclosure by the U.S.
* Government is subject to restrictions as set forth in Subparagraph
* (c)(1)(ii) of DFARS 252.227-7013, or in FAR 52.227-19, as applicable.
*
*****************************************************************************
*
*
* FACILITY:
*
* Example Device Driver for OpenVMS AXP
*
* ABSTRACT:
*
* This is an example device driver for OpenVMS AXP Version 6.1 for the
* parallel printer port of the VL82C106 Combo chip. This driver supports
* the VL82C106 either on the system bus or on an ISA option card on the
* DEC 2000 Model 300 AXP system.
*
* The parallel printer port is a simple programmed I/O device. There
* is a single control register (LPC), a status register (LPS), and a
* write data register (LWD).
*
* AUTHOR:
*
* OpenVMS AXP Development Group
*
* REVISION HISTORY:
*
* X-1 VMS000 OpenVMS AXP Drivers 5-Nov-1993
* Initial version.
*/
B–1