Adaptec AHA-1520A Manual de Serviço Página 207

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 434
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 206
SunOS 5.5 Devices mcpp(7D)
NAME mcpp ALM-2 Parallel Printer port driver
SYNOPSIS #include <fcntl.h>
#include <sys/mcpio.h>
open("/dev/mcppn", mode);
DESCRIPTION
(PARALLEL
PORT)
The parallel port is Centronics-compatible and is suitablefor most common parallel
printers. Devices attached to this interface are normally handled by the line printer
spooling system and should not be accessed directly by the user.
The printer devices reside on a separate major device number from the serial devices.
Minor device numbers in the range 0 7 access the printer, and the recommended nam-
ing is /dev/mcpp[0-7].
IOCTLS Various control flags and status bits may be fetched and set on anALM-2 printer port.
The following flags and status bits are supported; they are defined in sys/mcpio.h:
MCPRIGNSLCT 0x02 set if interface ignoring SLCTon open
MCPRDIAG 0x04 set if printer port is in self-test mode
MCPRVMEINT 0x08 set if VME bus interrupts are enabled
MCPRINTPE 0x10 print message when out of paper
MCPRINTSLCT 0x20 print message when printer offline
MCPRPE 0x40 set if device ready, cleared if device out of paper
MCPRSLCT 0x80 set if device online (Centronics SLCT asserted)
The flags MCPRINTSLCT, MCPRINTPE, andMCPRDIAG may be changed; the other bits
are status bits and may not be changed.
The ioctl() calls supported by ALM-2 printer ports are listed below.
MCPIOGPR The argument is a pointer to an unsigned char. The printer flags and
status bits are stored in the unsigned char pointed to by the argument.
MCPIOSPR The argument is a pointer to an unsigned char. The printer flags are set
from the unsigned char pointed to by the argument.
ERRORS Normally, the interface only reports the status of the device when attempting an open(2)
call. An open() on a /dev/mcppdevice will fail if:
ENODEV The unit being opened does not exist.
ENXIO The device is offline or out of paper.
Bit 17 of the configuration flags may be specified to say that the interface should ignore
Centronics SLCT and RDY/PEwhen attempting to open the device, but this is normally
useful only for configuration and troubleshooting:if the SLCT andRDY lines are not
asserted during an actual data transfer (as with a write(2) call), no data is transferred.
FILES /dev/mcpp[0-7] parallel printer port
modified 8 Mar 1993 7D-203
Vista de página 206
1 2 ... 202 203 204 205 206 207 208 209 210 211 212 ... 433 434

Comentários a estes Manuais

Sem comentários