Jump to content

DETECTEDSTRUCT: Difference between revisions

From EDM2
Created page with "Structure used by Resource Manager to identify detected devices. == Type == PSZ DetectedDescriptName; USHORT DetectFlags; IDTYPE IDType; ..."
 
Ak120 (talk | contribs)
mNo edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
Structure used by Resource Manager to identify detected devices.  
Structure used by Resource Manager to identify detected devices.


== Type ==
== Type ==
  PSZ          DetectedDescriptName;
[[PSZ]]         DetectedDescriptName;
  USHORT      DetectFlags;        
[[USHORT]]       DetectFlags;
  IDTYPE      IDType;            
IDTYPE      IDType;
  DEVID        DeviceID;          
DEVID        DeviceID;
  DEVID        FunctionID;        
DEVID        FunctionID;
  DEVID        CompatibleID;      
DEVID        CompatibleID;
  PADJUNCT    pAdjuntList;        
PADJUNCT    pAdjuntList;
  VENDID      VendorID;          
VENDID      VendorID;
  SERNUM      SerialNumber;
SERNUM      SerialNumber;
 
 
== C Declaration Method ==
== C Declaration Method ==
  typedef struct
  typedef struct


== Fields ==
== Fields ==
; DetectedDescriptName : Descriptive ASCII string.
;DetectedDescriptName : Descriptive ASCII string.
; DetectFlags : Detected last boot.
;DetectFlags : Detected last boot.
; IDType : ISA PNP, PCI, or other ID.  
;IDType : ISA PNP, PCI, or other ID.
; DeviceID : Device ID.  
;DeviceID : Device ID.
; FunctionID : Multi-function hardware ID (single function card = DeviceID).  
;FunctionID : Multi-function hardware ID (single function card = DeviceID).
; CompatibleID : Compatible device ID.
;CompatibleID : Compatible device ID.
; pAdjuntList : Pointer to a linked list of adjunct data structures.
;pAdjuntList : Pointer to a linked list of adjunct data structures.
; VendorID : Vendor ID for the detected device; if not known, then 0.  
;VendorID : Vendor ID for the detected device; if not known, then 0.
; SerialNumber : Serial number for the detected device; if not known, then 0.
;SerialNumber : Serial number for the detected device; if not known, then 0.
 
== Remarks ==
 
== Example Code ==
<PRE>
typedef struct _DETECTEDSTRUCT {
  PSZ          DetectedDescriptName;  /*  Descriptive ASCII string. */
  USHORT      DetectFlags;          /*  Detected last boot. */
  IDTYPE      IDType;                /*  ISA PNP, PCI, or other ID. */
  DEVID        DeviceID;              /*  Device ID. */
  DEVID        FunctionID;            /*  Multi-function hardware ID (single function card = DeviceID). */
  DEVID        CompatibleID;          /*  Compatible device ID. */
  PADJUNCT    pAdjuntList;          /*  Pointer to a linked list of adjunct data structures. */
  VENDID      VendorID;              /*  Vendor ID for the detected device; if not known, then 0. */
  SERNUM      SerialNumber;          /*  Serial number for the detected device; if not known, then 0. */
} DETECTEDSTRUCT;
 
FAR * PDETECTEDSTRUCT , NEAR * NPDETECTEDSTRUCT
</PRE>


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

Latest revision as of 11:07, 18 August 2017

Structure used by Resource Manager to identify detected devices.

Type

PSZ          DetectedDescriptName;
USHORT       DetectFlags;
IDTYPE       IDType;
DEVID        DeviceID;
DEVID        FunctionID;
DEVID        CompatibleID;
PADJUNCT     pAdjuntList;
VENDID       VendorID;
SERNUM       SerialNumber;

C Declaration Method

typedef struct

Fields

DetectedDescriptName
Descriptive ASCII string.
DetectFlags
Detected last boot.
IDType
ISA PNP, PCI, or other ID.
DeviceID
Device ID.
FunctionID
Multi-function hardware ID (single function card = DeviceID).
CompatibleID
Compatible device ID.
pAdjuntList
Pointer to a linked list of adjunct data structures.
VendorID
Vendor ID for the detected device; if not known, then 0.
SerialNumber
Serial number for the detected device; if not known, then 0.