devport(3G) — Silicon Graphics
NAME
devport − assigns a serial port to an external graphics device
SPECIFICATION
C
devport(dev,portno)
Device dev;
long portno;
FORTRAN
subroutine devpor(dev,portno)
integer*4 dev, portno
Pascal
procedure devport(dev, portno: longint);
DESCRIPTION
There are four serial ports on the back panel of the IRIS, ports 0 through 3. Port 0 connects the keyboard to the IRIS system. The remaining ports connect additional terminals or graphics peripherals, such as a dial and button box or a digitizing tablet.
The system software assumes that a dial and button box or a digitizing tablet will be connected to port 3. However, if both a dial and button box and a digitizing tablet are used with the IRIS, you must tell the system which port is being used for each device. devport assigns a serial port to the specified device. You must specify a device number for the peripheral and a port number between 1 and 3. (See Appendix A for device numbers.) For example, devport(DIAL0,2) followed by devport(BPAD0,3) indicates the dial and button box is connected to port 2 and the digitizing tablet is connected to port 3.
SEE ALSO
The manual page for the following routine is located in the Unix Programmer’s Manual, Volume I: devport(1)
NOTE
Use this routine before using any input peripherals.
Version 3.6 — December 20, 1987