Jump to content

ADAPTERSTRUCT: Difference between revisions

From EDM2
Created page with "Adapter structure. ==Type== PSZ AdaptDescriptName; USHORT AdaptFlags; USHORT BaseType; USHORT SubType; USHORT InterfaceType; USH..."
 
No edit summary
Line 2: Line 2:


==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==
  typedef
  typedef struct


==Remarks==
==Remarks==
Line 20: Line 20:
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==
==Example Code==
  typedef struct _ADAPTERSTRUCT {
  typedef struct _ADAPTERSTRUCT {
   PSZ          AdaptDescriptName;
   PSZ          AdaptDescriptName;

Revision as of 16:27, 17 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.

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 ;