Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ hwconfig(C) — OpenDesktop 1.1.0

Media Vault

Software Library

Restoration Projects

Artifacts Sought


     HWCONFIG(C)                          UNIX System V



     Name
          hwconfig - read the configuration information


     Syntax
          /etc/hwconfig [-nlh]  [-f  filename]  [  [-]  param]  [  [-]
          param=val] ...


     Description
          hwconfig returns the configuration information contained  in
          the  file  /usr/adm/hwconfig  or  the  file specified on the
          command  line  with   the   -f   filename   option.    Using
          combinations  of the remaining options, the user can view as
          much information as needed from the configuration file.  The
          display format is as follows:
          magic_char device_name base+finish vec dma rest
          where:

               magic_char     is the character %

               device_name    is the name of the device driver

               base+finish    is  the  starting  and   the   finishing
                              addresses of the driver working space

               vec            is the interrupt vector number

               dma            is the dma channel number

               rest           is   a   possibly    empty    list    of
                              parameter=value pairs

          The default hwconfig display looks similar to this:

          device    address    vector dma comment
          --------------------------------------------------------------------
          fpu      -            35    -   type=80387
          floppy   0x3F2-0x3F7  06    2   unit=0 type=96ds15
          serial   0x2F8-0x2FF  03    -   unit=1 type=Standard nports=1
          parallel 0x378-0x37A  07    -   unit=0
          console  -            -     -   unit=ega type=0
          disk     0x1F0-0x1F7  36    -   type=W0 unit=0 cyls=791 hds=16 secs=48

     Options
               -n             the device name is always printed out.

               -l             the   long   format   of   the    device
                              configuration content is used.

               -h             uses the long format, with headers.

               -ffile         uses file as the input file  instead  of
                              the default /usr/adm/hwconfig.

               param          any of  the  12  pre-defined  parameters
                              available:   name,  base,  offset,  vec,
                              dma,  unit,  type,  nports,  hds,  cyls,
                              secs, and drvr.

               -param         shows all values of param throughout the
                              configuration  file.   param  can be any
                              valid system parameter.

               -param=val     shows only  information  from  the  line
                              where param equals the value val.

          The -n, -l and  -h  options  are  in  increasing  overriding
          power.  That is, if -n and -l are both specified, -l will be
          used.   param  on  its  own  indicates  a  query   for   its
          corresponding  value(s),  whereas  param=value  indicates  a
          matching <token,val> pair in the input file.  -l is used  by
          default if there are no queries and no explicit option.

          Command line queries, i.e. those with parameters  only,  are
          always displayed in short format.


     Examples
          hwconfig  The entire contents of the file  /usr/adm/hwconfig
                    is printed.

          hwconfig base
                    All the values of  the  base  parameter  found  in
                    /usr/adm/hwconfig are printed.

          hwconfig -f conf base=300 vec=19
                    All entries in conf that match the  base  and  vec
                    values given are printed.

          hwconfig name=floppy base
                    The name and value of  base  in  /usr/adm/hwconfig
                    for  the  drivers with the name floppy are printed
                    for all entries.

          hwconfig -n base dma
                    The device name associated with the base  and  dma
                    is displayed.  For example:
                    name=scsi base=0x234 dma=4

          hwconfig base dma vec=4
                    The base and dma values of  all  /usr/adm/hwconfig
                    entries with matching vec=4 are printed.

          hwconfig -l base dma vec=4
                    is like

          hwconfig -l vec=4
                    except that base and dma values  will  be  printed
                    first.

          hwconfig -h
                    Everything is printed in the long format,  with  a
                    header  similar  to the one shown at boot-up time.
                    It will ignore all queries, but do matching on the
                    token values.  For example,
                    hwconfig -h vec=4 dma=1
                    will print in long format, with header, all  those
                    entries with vec=4 and dma=1


     Files
          /usr/adm/hwconfig


     Value Added
          hwconfig is an extension of AT&T System V  provided  by  the
          Santa Cruz Operation.


     (printed 2/15/90)                                HWCONFIG(C)















































































































































































































































































































































































































































































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