Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ mvdevice(F) — OpenDesktop 3.0.0

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

sdevice(F)


 mvdevice(F)                     19 June 1992                     mvdevice(F)


 Name

    mvdevice - video driver back end configuration file

 Description

    The /etc/conf/cf.d/mvdevice file accomplishes configurability of video
    hardware by permitting the linking of back ends to the console video
    driver.  This linking scheme includes a C library of video back ends for
    use with the link kit and separate driver entries for each of the back
    ends.

    The configuration program uses the mvdevice file to produce a space.c for
    the console driver.  This space.c includes the appropriate include files
    and extern references to the appropriate video back ends.  In addition,
    the configuration program builds the console display switch within the
    space.c.

    The mvdevice file has the following entries:

    prefix              name of driver from 1 to 4 characters long (for exam-
                        ple ``mono'').  This is the name of the video back
                        end.

    routinemask        This mask tells which routines were supported by the
                        particular back end.  These routines are:  vvvinit(),
                        vvvcmos(), vvvinitscreen(), vvvscroll(), vvvcopy(),
                        vvvclear(), vvvpchar(), vvvscurs(), vvvsgr(),
                        vvvioctl(), vvvadapctl().

    type                This is placed in the file as a literal.  For exam-
                        ple, if the word MONO was put into the file, it would
                        include the word MONO as the type entry of the
                        adapter structure.

    oem                 OEM information treated exactly the same as the type
                        (i.e. a literal).

    paddr               The physical address at which the video RAM is
                        located.  This would allow a user to configure a
                        future driver.  Also included as a literal field.

    size                The size of the video RAM.  Also included as a
                        literal field.

    This information provides all the basic information needed for the pro-
    gram to generate an appropriate space.c and build the the correct adapter
    switch.

    The routine mask uses the following bits to signify the following rou-
    tines:

       0x0001          vvvinit()
       0x0002          vvvcmos()
       0x0004          vvvinitscreen()
       0x0008          vvvscroll()
       0x0010          vvvcopy()
       0x0020          vvvclear()
       0x0040          vvvpchar()
       0x0080          vvvscurs()
       0x0100          vvvsgr()
       0x0200          vvvioctl()
       0x0400          vvvadapctl()

    The default mvdevice file looks like this:

    #
    #       mvdevice:       video configuration master file.
    #
    #
    #prefix name    routines        type    oem     paddr   size
    mono    MONO    0x07fd          MONO    0       0       0
    cga     CGA     0x07fd          CGA     0       0       0
    ega     EGA     0x07ff          EGA     0       0       0
    vga     VGA     0x07ff          VGA     0       0       0

 See also

    sdevice(F)


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