Jump to content

ADAPTERSTRUCT: Difference between revisions

From EDM2
No edit summary
Ak120 (talk | contribs)
mNo edit summary
Line 1: Line 1:
Adapter structure.
Adapter structure


==Type==
==Type==
  [[PSZ]]         AdaptDescriptName;
[[PSZ]]       AdaptDescriptName;
  [[USHORT]]       AdaptFlags;
[[USHORT]]   AdaptFlags;
  [[USHORT]]      BaseType;
USHORT   BaseType;
  [[USHORT]]      SubType;
USHORT   SubType;
  [[USHORT]]      InterfaceType;
USHORT   InterfaceType;
  [[USHORT]]      HostBusType;
USHORT   HostBusType;
  [[USHORT]]      HostBusWidth;
USHORT   HostBusWidth;
  [[PADJUNCT]]    pAdjunctList;
PADJUNCT pAdjunctList;
  [[ULONG]]       Reserved;           
[[ULONG]]     Reserved;           


==C Declaration Method==
==C Declaration Method==
Line 18: Line 18:
The BaseType, SubType, and InterfaceType fields provide a category of the adapter being created. Refer to RMBASE.H for a complete list of adapter categories.
The BaseType, SubType, and InterfaceType fields provide a category of the adapter being created. Refer to RMBASE.H for a complete list of adapter categories.


The HostBusType and HostBusWidth fields describe the host bus that the adapter supports. The fields also describe how the adapter is connected to the host system rather than how the adapter is connected to the devices it supports.  
The HostBusType and HostBusWidth fields describe the host bus that the adapter supports. The fields also describe how the adapter is connected to the host system rather than how the adapter is connected to the devices it supports.
 
==Example Code==
typedef struct _ADAPTERSTRUCT {
  PSZ          AdaptDescriptName;
  USHORT      AdaptFlags;
  USHORT      BaseType;
  USHORT      SubType;
  USHORT      InterfaceType;
  USHORT      HostBusType;
  USHORT      HostBusWidth;
  PADJUNCT    pAdjunctList;
  ULONG        Reserved;          /*  Reserved value. */
} ADAPTERSTRUCT;
typedef  ADAPTERSTRUCT  * PADAPTERSTRUCT ;


[[Category:Data type]]
[[Category:Data type]]

Revision as of 10:14, 18 August 2017

Adapter structure

Type

PSZ       AdaptDescriptName;
USHORT    AdaptFlags;
USHORT    BaseType;
USHORT    SubType;
USHORT    InterfaceType;
USHORT    HostBusType;
USHORT    HostBusWidth;
PADJUNCT  pAdjunctList;
ULONG     Reserved;          

C Declaration Method

typedef struct

Remarks

The BaseType, SubType, and InterfaceType fields provide a category of the adapter being created. Refer to RMBASE.H for a complete list of adapter categories.

The HostBusType and HostBusWidth fields describe the host bus that the adapter supports. The fields also describe how the adapter is connected to the host system rather than how the adapter is connected to the devices it supports.