Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ video(K) — OpenDesktop Software Development System 1.0.0d

Media Vault

Software Library

Restoration Projects

Artifacts Sought



     VIDEO(K)                  UNIX System V                  VIDEO(K)



     Name
          video: DISPLAYED, viddoio, vidinitscreen, vidmap,
          vidresscreen, vidsavscreen, vidumapinit, vidunmap - supports
          video adapter driver development

     Syntax
          #include "sys/vid.h"

          int
          DISPLAYED(msp)
          struct mscrn *mps;

          int
          viddoio(msp, arg, portlist)
          struct mscrn *mps;
          struct port_io_arg *arg;
          struct portrange *portlist;

          int
          vidinitscreen(msp)
          struct mscrn *mps;

          caddr_t
          vidmap(address, nbytes)
          paddr_t address;
          int nbytes;

          int
          vidresscreen(msp)
          struct mscrn *mps;

          int
          vidsavscreen(msp)
          struct mscrn *mps;

          int
          vidumapinit(base, size)
          int base, size;

          int
          vidunmap(address, nbytes)
          caddr_t address;
          int nbytes;

     Description
          The descriptions of the routines are as follows:

               DISPLAYED      Returns TRUE if the screen is displayed.
                              DISPLAYED is a macro defined in
                              sys/vid.h.  The msp argument is a
                              pointer to an instance of the
                              multiscreen mscrn structure.


               viddoio        Supports input and output I/O control
                              commands for the adapter driver.  The
                              adapter driver passes the user's
                              port_io_arg pointer, arg, and a list of
                              I/O ports.  The port_io_arg and
                              portrange structures are documented in
                              sys/vid.h.  The portlist is terminated
                              with a portrange count field of zero.
                              The msp argument is a pointer to an
                              instance of the multiscreen mscrn
                              structure.

               vidinitscreen  Initializes a multiscreen to 80 rows, 25
                              cols, white on black, and so on.  The
                              msp argument is a pointer to an instance
                              of the multiscreen mscrn structure.

               vidmap         Maps nbytes of physical memory address
                              to virtual memory.  A kernel data
                              pointer to the virtual memory is
                              returned.  Unlike memget(K), no physical
                              memory is actually added to the kernel
                              address space; vidmap simply translates
                              a physical address pointer to virtual.

               vidresscreen   Restores the screen.  Calls the adapter
                              driver associated with a multiscreen to
                              restore the screen.  The msp argument is
                              a pointer to an instance of the
                              multiscreen mscrn structure.

               vidsavscreen   Saves the screen.  Calls the adapter
                              driver associated with a multiscreen to
                              save the screen.  The msp argument is a
                              pointer to an instance of the
                              multiscreen mscrn structure.

               vidumapinit    Returns a user physical address mapped
                              to memory starting at virtual base
                              extending for size bytes.

               vidunmap       Unmaps nbytes of a previously mapped
                              address.  This routine is the reverse of
                              vidmap.

                                                      (printed 7/11/89)

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