Jump to content

BANKINFO: Difference between revisions

From EDM2
Anakor (talk | contribs)
Format
Ak120 (talk | contribs)
mNo edit summary
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
== BANKINFO ==
Bank information data structure.
Bank information data structure.


=== Type ===
=== Type ===
 
  [[ULONG]]  ulBankLength;
  [[OS2 API:DataType:ULONG|ULONG]]  ulBankLength;
  [[USHORT]] usBank;
  [[OS2 API:DataType:USHORT|USHORT]] usBank;
  USHORT usVideoModeType;
  [[OS2 API:DataType:USHORT|USHORT]] usVideoModeType;
  USHORT usReadWriteMode;
  [[OS2 API:DataType:USHORT|USHORT]] usReadWriteMode;


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


=== Fields ===
=== Fields ===
;ulBankLength:Length of the bank.
:Represents the combined length of all parameter packet fields. This is a required field for all calls, including those made by way of the 32-bit [[DosDevIOCtl]], with a minimum packet length of 10 bytes.
;usBank:Current bank.
:The current bank value to be set/returned. The bank size is 64KB regardless of the value specified for the video mode type field.
;usVideoModeType:Current video mode type.
:Defines the adapter video mode type to the device driver, and has one of the following values:
::0 - Text Mode
::1 - Planar Mode
::2 - Linear Mode
:This field is required.
;usReadWriteMode:Read/Write bank mode.
:Specifies what bank type is to be set/returned, and has one of the following values:
::0 - Read
::1 - Write
:This field is required.


ulBankLength    Length of the bank.
[[Category:Data type]]
                Represents the combined length of all parameter packet fields.
                This is a required field for all calls, including those made by
                way of the 32-bit DosDevIOCtl, with a minimum packet length of 
                10 bytes.
 
usBank          Current bank.
                The current bank value to be set/returned. The bank size is
                64KB regardless of the value specified for the video mode type
                field.
 
usVideoModeType Current video mode type.
                Defines the adapter video mode type to the device driver, and
                has one of the following values:  
 
                0              Text Mode
                1              Planar Mode
                2              Linear Mode
 
                This field is required.
 
usReadWriteMode Read/Write bank mode.
                Specifies what bank type is to be set/returned, and has one of
                the following values:
 
                0              Read
                1              Write
 
                This field is required.

Latest revision as of 13:45, 24 May 2017

Bank information data structure.

Type

ULONG  ulBankLength;
USHORT usBank;
USHORT usVideoModeType;
USHORT usReadWriteMode;

C Declaration Method

typedef struct

Fields

ulBankLength
Length of the bank.
Represents the combined length of all parameter packet fields. This is a required field for all calls, including those made by way of the 32-bit DosDevIOCtl, with a minimum packet length of 10 bytes.
usBank
Current bank.
The current bank value to be set/returned. The bank size is 64KB regardless of the value specified for the video mode type field.
usVideoModeType
Current video mode type.
Defines the adapter video mode type to the device driver, and has one of the following values:
0 - Text Mode
1 - Planar Mode
2 - Linear Mode
This field is required.
usReadWriteMode
Read/Write bank mode.
Specifies what bank type is to be set/returned, and has one of the following values:
0 - Read
1 - Write
This field is required.