Print this page
12315 errors in section 7i of the manual

Split Close
Expand all
Collapse all
          --- old/usr/src/man/man7i/visual_io.7i
          +++ new/usr/src/man/man7i/visual_io.7i
   1    1  .\" Copyright (c) 2005, Sun Microsystems, Inc.  All Rights Reserved
   2    2  .\" Copyright 2018, Joyent, Inc.
        3 +.\" Copyright 2020 Peter Tribble.
   3    4  .\" The contents of this file are subject to the terms of the
   4    5  .\" Common Development and Distribution License (the "License").
   5    6  .\" You may not use this file except in compliance with the License.
   6    7  .\"
   7    8  .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
   8    9  .\" or http://www.opensolaris.org/os/licensing.
   9   10  .\" See the License for the specific language governing permissions
  10   11  .\" and limitations under the License.
  11   12  .\"
  12   13  .\" When distributing Covered Code, include this CDDL HEADER in each
  13   14  .\" file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  14   15  .\" If applicable, add the following below this CDDL HEADER, with the
  15   16  .\" fields enclosed by brackets "[]" replaced with your own identifying
  16   17  .\" information: Portions Copyright [yyyy] [name of copyright owner]
  17      -.Dd August 31, 2018
       18 +.Dd February 17, 2020
  18   19  .Dt VISUAL_IO 7I
  19   20  .Os
  20   21  .Sh NAME
  21   22  .Nm visual_io
  22   23  .Nd illumos VISUAL I/O control operations
  23   24  .Sh SYNOPSIS
  24   25  .In sys/visual_io.h
  25   26  .Sh DESCRIPTION
  26   27  The illumos VISUAL environment defines a small set of ioctls for controlling
  27   28  graphics and imaging devices.
↓ open down ↓ 16 lines elided ↑ open up ↑
  44   45  as the system console device.
  45   46  Use of this set is optional, but if a graphics device is to be used as the
  46   47  system console device, it must implement these ioctls.
  47   48  .Pp
  48   49  The VISUAL environment also defines interfaces for non-ioctl entry points into
  49   50  the driver that the illumos operating environment calls when it is running in
  50   51  standalone mode (for example, when using a stand-alone debugger, entering
  51   52  the PROM monitor, or when the system panicking).
  52   53  These are also known as
  53   54  .Dq Polled I/O
  54      -entry points, which operate under an an explicit set of restrictions, described below.
       55 +entry points, which operate under an explicit set of restrictions, described below.
  55   56  .Sh IOCTLS
  56   57  .Bl -tag -width VIS_GETIDENTIFIER -compact
  57   58  .It Dv VIS_GETIDENTIFIER
  58   59  This
  59   60  .Xr ioctl 2
  60   61  returns an identifier string to uniquely identify a device
  61   62  used in the illumos VISUAL environment.
  62   63  This is a mandatory ioctl and must return a unique string.
  63   64  We suggest that the name be formed as
  64   65  .Ao companysymbol Ac Ns Ao devicetype Ac .
  65      -For example, the
  66      -.Xr cgsix 7D
  67      -driver
  68      -returns
  69      -.Sy SUNWcg6 .
  70   66  .Pp
  71   67  .Dv VIS_GETIDENTIFIER
  72   68  takes a
  73   69  .Vt vis_identifier
  74   70  structure as its parameter.
  75   71  This structure has the form:
  76   72  .Bd -literal -offset 2n
  77   73  #define VIS_MAXNAMELEN 128
  78   74  struct vis_identifier {
  79   75         char name[VIS_MAXNAMELEN];
↓ open down ↓ 522 lines elided ↑ open up ↑
 602  598  If
 603  599  .Fa mode
 604  600  in the
 605  601  .Dv VIS_DEVINIT
 606  602  ioctl was set to
 607  603  .Dv VIS_PIXEL ,
 608  604  .Fa t_row ,
 609  605  and
 610  606  .Fa t_col
 611  607  are defined to be pixel offsets from the starting position of the
 612      -onssole device.
      608 +console device.
 613  609  .Pp
 614  610  .Fa direction
 615  611  specifies which way to do the copy.
 616  612  If direction is
 617  613  .Dv VIS_COPY_FORWARD
 618  614  the graphics driver should copy data from position
 619  615  .Po
 620  616  .Fa s_row ,
 621  617  .Fa s_col
 622  618  .Pc
↓ open down ↓ 54 lines elided ↑ open up ↑
 677  673  .Fn display ,
 678  674  .Fn copy ,
 679  675  and
 680  676  .Fn cursor
 681  677  are required to implement.
 682  678  In
 683  679  addition to performing the prescribed function of their ioctl counterparts, the
 684  680  standalone vectors operate in a special context and must adhere to a strict set
 685  681  of rules.
 686  682  The polled I/O vectors are called directly whenever the system is
 687      -quisced (running in a limited context) and must send output to the display.
      683 +quiesced (running in a limited context) and must send output to the display.
 688  684  Standalone mode describes the state in which the system is running in
 689  685  single-threaded mode and only one processor is active.
 690  686  illumos operating
 691  687  environment services are stopped, along with all other threads on the system,
 692  688  prior to entering any of the polled I/O interfaces.
 693  689  The polled I/O vectors are
 694  690  called when the system is running in a standalone debugger, when executing the
 695  691  PROM monitor (OBP) or when panicking.
 696  692  .Pp
 697  693  The following restrictions must be observed in the polled I/O functions:
↓ open down ↓ 41 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX