Jump to content

VIOCONFIGINFO: Difference between revisions

From EDM2
No edit summary
Ak120 (talk | contribs)
 
(10 intermediate revisions by the same user not shown)
Line 1: Line 1:
== VIOCONFIGINFO ==
Text mode configuration information.


Text mode configuration information.
== Type ==
 
  [[USHORT]] cb
=== Type ===
  USHORT adapter
 
  USHORT display
  [[OS2 API:DataType:ULONG|ULONG]] cb
  ULONG  cbMemory
  [[OS2 API:DataType:ULONG|ULONG]]  adapter
  USHORT Configuration
  [[OS2 API:DataType:ULONG|ULONG]]  display
  USHORT VDHVersion
  [[OS2 API:DataType:ULONG|ULONG]] cbMemory
  USHORT Flags
  [[OS2 API:DataType:ULONG|ULONG]]  Configuration
  ULONG  HWBufferSize
  [[OS2 API:DataType:ULONG|ULONG]]  VDHVersion
  ULONG  FullSaveSize
  [[OS2 API:DataType:ULONG|ULONG]]  Flags
  ULONG  PartSaveSize
  [[OS2 API:DataType:ULONG|ULONG]] HWBufferSize
  USHORT EMAdaptersOFF
  [[OS2 API:DataType:ULONG|ULONG]] FullSaveSize
  USHORT EMDisplaysOFF
  [[OS2 API:DataType:ULONG|ULONG]] PartSaveSize
  [[OS2 API:DataType:ULONG|ULONG]]  EMAdaptersOff
  [[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
:{|
                48.
!Value||Definition
 
|-
adapter       Display adapter type.
|0||Monochrome
 
|-
                Value Definition  
|1||Colour Graphics Adapter
                0-3    Reserved
|-
                3     VGA Display Adapter  
|2||EGA
                4-6   Reserved  
|-
                7     8514/A  
|3||VGA Display Adapter
                8     Image Adapter/A  
|-
                9     XGA Display Adapter
|4-6||Reserved
 
|-
                Values ranging from 0-4095 are reserved for IBM.
|7||8514/A
 
|-
display       Display monitor type
|8||Image Adapter/A
                Display or monitor type.
|-
 
|9||XGA Display Adapter
                Value Definition  
|-
                0-2   Reserved
|10||
                3     13-inch Monochrome Display  
|}
                4     13-inch Color Display  
:Values ranging from 0-4095 are reserved for IBM.
                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  
|-
                13     Reserved
|0||Monochrome
 
|-
                Values ranging from 0-4095 are reserved for IBM.
|1||CGA
 
|-
cbMemory       Bytes of memory on the adapter
|2||EGA
                Amount of memory, in bytes, on the adapter.
|-
 
|3||13-inch Monochrome Display (8503)
Configuration Configuration number
|-
                Number of the display configuration that this data corresponds
|4||13-inch Color Display
                to. This is assigned by the video subsystem.
|-
 
|5-8||Reserved
VDHVersion     Reserved
|-
                This field is reserved.
|9||16-inch 1024x768 capable color display (8514)
 
|-
Flags         The flag bits are defined as follows:
|10||LCD or Plasma display
                Bit  Description
|-
                31-1 Reserved  
|11||Large monochrome display (8507)
                0     Power-up display configuration.
|-
 
|12||14-inch 1024x768 capable color display (8515)
HWBufferSize   Size to save video state
|-
                Size of the buffer required by the Base Video Handler (BVH) to
|13-14||Reserved
                save the full hardware state, excluding the physical display
|-
                buffer.
|15||9515
 
|-
FullSaveSize   Full save size.
|17||9517
                Maximum size buffer required by the BVH to save the full
|-
                physical display buffer.
|18||9518
 
|-
PartSaveSize   Partial save size
|19||
                Maximum size buffer required by the BVH to save the portion of
|}
                the physical display buffer that is overlaid by a pop-up.
:Values ranging from 0-4095 are reserved for IBM.
 
;cbMemory:Bytes of memory on the adapter
EMAdaptersOff  Offset to emulated adapter types
:Amount of memory, in bytes, on the adapter.
                Offset, within the configuration data structure, to the
;Configuration:Configuration number
                following information describing what other display adapters are
:Number of the display configuration that this data corresponds to. This is assigned by the video subsystem.
                emulated by this display adapter.
;VDHVersion:Reserved
 
:This field is reserved.
                Number of Data words
;Flags:The flag bits are defined as follows:
                Contains a one-word field, specifying a count of data words to
::31-1 Reserved
                follow.
::0 Power-up display configuration.
 
;HWBufferSize:Size to save video state
                Data word 1
:Size of the buffer required by the Base Video Handler (BVH) to save the full hardware state, excluding the physical display buffer.
                Bits, set in the data words, identify display adapters emulated.  
;FullSaveSize:Full save size.
                Data word 1 has the following definition:
:Maximum size buffer required by the BVH to save the full physical display buffer.
 
;PartSaveSize:Partial save size
                Bit   Description
:Maximum size buffer required by the BVH to save the portion of the physical display buffer that is overlaid by a pop-up.
                0-2   Reserved  
;EMAdaptersOFF:Offset to emulated adapter types
                3     VGA  
:Offset, within the configuration data structure, to the following information describing what other display adapters are emulated by this display adapter.
                4-6   Reserved  
:;Number of Data words:Contains a one-word field, specifying a count of data words to follow.
                7     8514/A Adapter  
:;Data word 1:Bits, set in the data words, identify display adapters emulated.  
                8     Image Adapter/A  
::Data word 1 has the following definition:
                9     XGA Adapter  
::{|
                10-31 Reserved
!Bit||Description
 
|-
EMDisplayOFF  Offset to emulated display types
|0-2||Reserved
                Offset, within the configuration data structure, to the
|-
                following information describing what other displays are
|3||VGA
                emulated by this display.
|-
 
|4-6||Reserved
                Number of Data words
|-
                One-word field, specifying a count of data words to follow.
|7||8514/A Adapter
 
|-
                Data word 1
|8||Image Adapter/A
                Bits, set in the data words, identify displays emulated. Data
|-
                word 1 has the following definition:
|9||XGA Adapter
 
|-
                Bit   Description  
|10-31||Reserved
                0-2   Reserved  
|}
                3     13-inch Monochrome Display  
;EMDisplaysOFF:Offset to emulated display types
                4     13-inch Color Display  
:Offset, within the configuration data structure, to the following information describing what other displays are emulated by this display.
                5-8   Reserved  
:;Number of Data words:One-word field, specifying a count of data words to follow.
                9     16-inch 1024x768 capable color display  
:;Data word 1:Bits, set in the data words, identify displays emulated. Data word 1 has the following definition:
                10     LCD or Plasma display  
::{|
                11     Large monochrome display  
!Bit||Description
                12     14-inch 1024x768 capable color display  
|-
                13-31 Reserved
|0-2||Reserved
 
|-
 
|3||13-inch Monochrome Display
 
|-
[[OS2_API | Back to OS/2 API]]
|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]]

Latest revision as of 18:12, 5 March 2020

Text mode configuration information.

Type

USHORT cb
USHORT adapter
USHORT display
ULONG  cbMemory
USHORT Configuration
USHORT VDHVersion
USHORT Flags
ULONG  HWBufferSize
ULONG  FullSaveSize
ULONG  PartSaveSize
USHORT EMAdaptersOFF
USHORT EMDisplaysOFF

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 Monochrome
1 Colour Graphics Adapter
2 EGA
3 VGA Display Adapter
4-6 Reserved
7 8514/A
8 Image Adapter/A
9 XGA Display Adapter
10
Values ranging from 0-4095 are reserved for IBM.
display
Display monitor type
Display or monitor type.
Value Definition
0 Monochrome
1 CGA
2 EGA
3 13-inch Monochrome Display (8503)
4 13-inch Color Display
5-8 Reserved
9 16-inch 1024x768 capable color display (8514)
10 LCD or Plasma display
11 Large monochrome display (8507)
12 14-inch 1024x768 capable color display (8515)
13-14 Reserved
15 9515
17 9517
18 9518
19
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:
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
EMDisplaysOFF
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