Jump to content

VIOCONFIGINFO: Difference between revisions

From EDM2
No edit summary
Ak120 (talk | contribs)
No edit summary
Line 1: Line 1:
== VIOCONFIGINFO ==
== VIOCONFIGINFO ==
Text mode configuration information.  
Text mode configuration information.  


=== Type ===
=== Type ===
 
  [[ULONG]]  cb
  [[OS2 API:DataType:ULONG|ULONG]]  cb
  ULONG  adapter
  [[OS2 API:DataType:ULONG|ULONG]] adapter
  ULONG  display
  [[OS2 API:DataType:ULONG|ULONG]] display
  ULONG  cbMemory
  [[OS2 API:DataType:ULONG|ULONG]] cbMemory
  ULONG  Configuration
  [[OS2 API:DataType:ULONG|ULONG]] Configuration
  ULONG  VDHVersion
  [[OS2 API:DataType:ULONG|ULONG]] VDHVersion
  ULONG  Flags
  [[OS2 API:DataType:ULONG|ULONG]] Flags
  ULONG  HWBufferSize
  [[OS2 API:DataType:ULONG|ULONG]] HWBufferSize
  ULONG  FullSaveSize
  [[OS2 API:DataType:ULONG|ULONG]] FullSaveSize
  ULONG  PartSaveSize
  [[OS2 API:DataType:ULONG|ULONG]] PartSaveSize
  ULONG  EMAdaptersOff
  [[OS2 API:DataType:ULONG|ULONG]] EMAdaptersOff
  ULONG  EMDisplayOFF
  [[OS2 API:DataType:ULONG|ULONG]] EMDisplayOFF


==== C Declaration Method ====
==== C Declaration Method ====
typedef struct
typedef struct


=== Fields ===
=== Fields ===
     
;cb:Length of this data structure
cb             Length of this data structure
:Input parameter to VioGetConfig. The length must be either 4, to indicate the actual length should be returned, or at least 48.
                Input parameter to VioGetConfig. The length must be either 4,
;adapter:Display adapter type.
                to indicate the actual length should be returned, or at least
Value  Definition  
                48.
0-3    Reserved  
 
3      VGA Display Adapter  
adapter       Display adapter type.
4-6    Reserved  
 
7      8514/A  
                Value  Definition  
8      Image Adapter/A  
                0-3    Reserved  
9      XGA Display Adapter
                3      VGA Display Adapter  
:Values ranging from 0-4095 are reserved for IBM.
                4-6    Reserved  
;display:Display monitor type
                7      8514/A  
:Display or monitor type.
                8      Image Adapter/A  
Value  Definition  
                9      XGA Display Adapter
0-2    Reserved  
 
3      13-inch Monochrome Display  
                Values ranging from 0-4095 are reserved for IBM.
4      13-inch Color Display  
 
5-8    Reserved  
display       Display monitor type
9      16-inch 1024x768 capable color display  
                Display or monitor type.
10    LCD or Plasma display  
 
11    Large monochrome display  
                Value  Definition  
12    14-inch 1024x768 capable color display  
                0-2    Reserved  
13    Reserved
                3      13-inch Monochrome Display  
:Values ranging from 0-4095 are reserved for IBM.
                4      13-inch Color Display  
;cbMemory:Bytes of memory on the adapter
                5-8    Reserved  
:Amount of memory, in bytes, on the adapter.
                9      16-inch 1024x768 capable color display  
;Configuration:Configuration number
                10    LCD or Plasma display  
:Number of the display configuration that this data corresponds to. This is assigned by the video subsystem.
                11    Large monochrome display  
;VDHVersion:Reserved
                12    14-inch 1024x768 capable color display  
:This field is reserved.
                13    Reserved
;Flags:The flag bits are defined as follows:
 
Bit  Description  
                Values ranging from 0-4095 are reserved for IBM.
31-1  Reserved  
 
0    Power-up display configuration.
cbMemory       Bytes of memory on the adapter
;HWBufferSize:Size to save video state
                Amount of memory, in bytes, on the adapter.
:Size of the buffer required by the Base Video Handler (BVH) to save the full hardware state, excluding the physical display buffer.
 
;FullSaveSize:Full save size.
Configuration Configuration number
:Maximum size buffer required by the BVH to save the full physical display buffer.
                Number of the display configuration that this data corresponds
;PartSaveSize:Partial save size
                to. This is assigned by the video subsystem.
:Maximum size buffer required by the BVH to save the portion of the physical display buffer that is overlaid by a pop-up.
 
;EMAdaptersOff:Offset to emulated adapter types
VDHVersion     Reserved
:Offset, within the configuration data structure, to the following information describing what other display adapters are emulated by this display adapter.
                This field is reserved.
 
Flags         The flag bits are defined as follows:
                Bit  Description  
                31-1  Reserved  
                0    Power-up display configuration.
 
HWBufferSize   Size to save video state
                Size of the buffer required by the Base Video Handler (BVH) to
                save the full hardware state, excluding the physical display
                buffer.
 
FullSaveSize   Full save size.
                Maximum size buffer required by the BVH to save the full
                physical display buffer.
 
PartSaveSize   Partial save size
                Maximum size buffer required by the BVH to save the portion of
                the physical display buffer that is overlaid by a pop-up.
 
EMAdaptersOff Offset to emulated adapter types
                Offset, within the configuration data structure, to the
                following information describing what other display adapters are
                emulated by this display adapter.
 
                Number of Data words
                Contains a one-word field, specifying a count of data words to
                follow.
 
                Data word 1
                Bits, set in the data words, identify display adapters emulated.
                Data word 1 has the following definition:
 
                Bit    Description
                0-2    Reserved
                3      VGA
                4-6    Reserved
                7      8514/A Adapter
                8      Image Adapter/A
                9      XGA Adapter
                10-31  Reserved
 
EMDisplayOFF  Offset to emulated display types
                Offset, within the configuration data structure, to the
                following information describing what other displays are
                emulated by this display.
 
                Number of Data words
                One-word field, specifying a count of data words to follow.
 
                Data word 1
                Bits, set in the data words, identify displays emulated. Data
                word 1 has the following definition:
 
                Bit    Description
                0-2    Reserved
                3      13-inch Monochrome Display
                4      13-inch Color Display
                5-8    Reserved
                9      16-inch 1024x768 capable color display
                10    LCD or Plasma display
                11    Large monochrome display
                12    14-inch 1024x768 capable color display
                13-31  Reserved
 
 


[[OS2_API | Back to OS/2 API]]
:Number of Data words
:Contains a one-word field, specifying a count of data words to follow.
Data word 1
Bits, set in the data words, identify display adapters emulated.
Data word 1 has the following definition:
Bit    Description
0-2    Reserved
3      VGA
4-6    Reserved
7      8514/A Adapter
8      Image Adapter/A
9      XGA Adapter
10-31  Reserved


;EMDisplayOFF:Offset to emulated display types
:Offset, within the configuration data structure, to the following information describing what other displays are emulated by this display.
:Number of Data words
:One-word field, specifying a count of data words to follow.
Data word 1
Bits, set in the data words, identify displays emulated. Data
word 1 has the following definition:
Bit    Description
0-2    Reserved
3      13-inch Monochrome Display
4      13-inch Color Display
5-8    Reserved
9      16-inch 1024x768 capable color display
10    LCD or Plasma display
11    Large monochrome display
12    14-inch 1024x768 capable color display
13-31  Reserved


[[Category:The OS/2 API Project]]
[[Category:Data type]]

Revision as of 13:20, 31 October 2016

VIOCONFIGINFO

Text mode configuration information.

Type

ULONG  cb
ULONG  adapter
ULONG  display
ULONG  cbMemory
ULONG  Configuration
ULONG  VDHVersion
ULONG  Flags
ULONG  HWBufferSize
ULONG  FullSaveSize
ULONG  PartSaveSize
ULONG  EMAdaptersOff
ULONG  EMDisplayOFF

C Declaration Method

typedef struct

Fields

cb
Length of this data structure
Input parameter to VioGetConfig. The length must be either 4, to indicate the actual length should be returned, or at least 48.
adapter
Display adapter type.
Value  Definition 
0-3    Reserved 
3      VGA Display Adapter 
4-6    Reserved 
7      8514/A 
8      Image Adapter/A 
9      XGA Display Adapter
Values ranging from 0-4095 are reserved for IBM.
display
Display monitor type
Display or monitor type.
Value  Definition 
0-2    Reserved 
3      13-inch Monochrome Display 
4      13-inch Color Display 
5-8    Reserved 
9      16-inch 1024x768 capable color display 
10     LCD or Plasma display 
11     Large monochrome display 
12     14-inch 1024x768 capable color display 
13     Reserved
Values ranging from 0-4095 are reserved for IBM.
cbMemory
Bytes of memory on the adapter
Amount of memory, in bytes, on the adapter.
Configuration
Configuration number
Number of the display configuration that this data corresponds to. This is assigned by the video subsystem.
VDHVersion
Reserved
This field is reserved.
Flags
The flag bits are defined as follows:
Bit   Description 
31-1  Reserved 
0     Power-up display configuration.
HWBufferSize
Size to save video state
Size of the buffer required by the Base Video Handler (BVH) to save the full hardware state, excluding the physical display buffer.
FullSaveSize
Full save size.
Maximum size buffer required by the BVH to save the full physical display buffer.
PartSaveSize
Partial save size
Maximum size buffer required by the BVH to save the portion of the physical display buffer that is overlaid by a pop-up.
EMAdaptersOff
Offset to emulated adapter types
Offset, within the configuration data structure, to the following information describing what other display adapters are emulated by this display adapter.
Number of Data words
Contains a one-word field, specifying a count of data words to follow.
Data word 1
Bits, set in the data words, identify display adapters emulated. 
Data word 1 has the following definition:
Bit    Description
0-2    Reserved 
3      VGA 
4-6    Reserved 
7      8514/A Adapter 
8      Image Adapter/A 
9      XGA Adapter 
10-31  Reserved
EMDisplayOFF
Offset to emulated display types
Offset, within the configuration data structure, to the following information describing what other displays are emulated by this display.
Number of Data words
One-word field, specifying a count of data words to follow.
Data word 1
Bits, set in the data words, identify displays emulated. Data
word 1 has the following definition:
Bit    Description 
0-2    Reserved 
3      13-inch Monochrome Display 
4      13-inch Color Display 
5-8    Reserved 
9      16-inch 1024x768 capable color display 
10     LCD or Plasma display 
11     Large monochrome display 
12     14-inch 1024x768 capable color display 
13-31  Reserved