Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ predefined(5) — AIX PS/2 1.2.1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

attributes

system



PREDEFINED(5,F)             AIX Technical Reference             PREDEFINED(5,F)



-------------------------------------------------------------------------------
predefined



PURPOSE

Provides information for predefined devices.

DESCRIPTION

The predefined file contains information about hardware adapters and devices
that is used by the devices command.  Some of these devices may not be present
in a particular configuration, but all of them are supported by the system.
The predefined file contains information needed when adding one of these
devices so that you do not have to supply the information yourself.  The size
of this file increases with new entries as additional licensed programs are
installed in the system.

The devices command uses the information in this file to set up stanzas in the
system and qconfig files when devices are added to the system.  Note that
information in this file has no effect on the system until it is moved to a
stanza in the system or qconfig file.

The predefined file is similar in structure and content to the system file, and
its stanzas can contain any of the keywords that are allowed in the system
file.

The use of extended characters in the predefined file is not supported.

The predefined file contains several special stanzas:

defqueue   Used by the devices command to create the queue stanza in the
           qconfig file when a printer or plotter is added.

defdevice  Used by the devices command to create the device stanza in the
           qconfig file when a printer or plotter is added.

default    Contains keywords and their values that are common to all device
           stanzas.

ports      Contains a list of ports supported by devices.  A port is an adapter
           or a communications port, for example, an RS232 port, a parallel
           port, the PS/2 Tape Adapter, or the 3270 Connection Adapter.  A port
           is described by the following lines:

                     xyzn = minor
                  *    port description

           where:





Processed November 7, 1990      PREDEFINED(5,F)                               1





PREDEFINED(5,F)             AIX Technical Reference             PREDEFINED(5,F)



           xyz    is a unique port prefix, consisting of letters only

           n      is any positive decimal number

           minor  is the port's minor number

           port description
                  is less than 20 characters in length.  Port description must
                  be the same length as the line that follows the pflag
                  parameter in a device's predefined stanza that references
                  xyzn.

           n and minor do not have to be equal.  If there are multiple ports
           with the same port prefix, the value of n must increment from one
           port to the next.  For example, AIX PS/2 supports three parallel
           ports.  Their port descriptions are as follows:

                   p1 = 0
                 * Parallel port 1
                   p2 = 1
                 * Parallel port 2
                   p3 = 2
                 * Parallel port 3

           Note that the description of all ports of prefix xyz must be the
           same length.

adapts     Assigns ports to adapters.  Each line in the adapts stanza has the
           following format:

                     ID = portrange

           where

           ID     is the adapter ID contained in the adapter's POS registers.

           portrange
                  is the range of valid ports.

           For example, the Dual Asyn Adapter (DAA) has an adapter ID equal to
           eeff.  The two DAA ports may be assigned to any one of eight serial
           ports.  Given that the port prefix for serial ports is s, the port
           assignment for the DAA is:

                     eeff = s1-8

           where valid serial port names are:

                   s1, s2, s3, s4, s5, s6, s7, and s8.

           An adapter ID can be assigned only one port range.




Processed November 7, 1990      PREDEFINED(5,F)                               2





PREDEFINED(5,F)             AIX Technical Reference             PREDEFINED(5,F)



EXAMPLE

The following shows sample entries of the predefined file.

  defqueue:
          argname = none
          device = none

  defdevice:
          file = /dev/none
          backend = /usr/lpd/piobe

  default:
          modes = rw-rw-rw-
          owner = root
  *
  ports:
          s1 = 0
  * serial port 1
          s2 = 1
  * serial port 2
          s3 = 2
  * serial port 3
          s4 = 3
  * serial port 4
          s5 = 4





























Processed November 7, 1990      PREDEFINED(5,F)                               3





PREDEFINED(5,F)             AIX Technical Reference             PREDEFINED(5,F)



  * serial port 5
          s6 = 5
  * serial port 6
          s7 = 6
  * serial port 7
          s8 = 7
  * serial port 8
          p1 = 0
  * parallel port 1
  *
  adapts:
  0    = s1-8      *serial port on planar
  1    = p1-3      *parallel port on planar
  eeff = s1-8      *serial ports on Dual Async Adapter
  ddff = s1-8      *serial ports on internal modem

  4202s:
  * IBM 4202 Proprinter XL on a serial port
          name = 4202s
          driver = sa
          minor = c
          kaf_file = /etc/ddi/sprinter.kaf
          kaf_use = kserial
          file = /etc/ddi/sprinter
          par = false
          use = d4202s
          noddi = false
          dtype = printer
  * Printer
          specproc = cfgaqcfg
          noduplicate = false
          dname = lp
          noshow = false
          pflag = true
  * Serial port 1
          port = s1-8
          slot = 0

FILE

/etc/predefined

RELATED INFORMATION

In this book:  "attributes" and "system."










Processed November 7, 1990      PREDEFINED(5,F)                               4



Typewritten Software • bear@typewritten.org • Edmonds, WA 98026