Condividi tramite


CM_EISA_SLOT_INFORMATION struttura (wdm.h)

La struttura CM_EISA_SLOT_INFORMATION definisce le informazioni sull'intestazione di configurazione EISA restituite da HalGetBusData per l'input BusDataTypeEisaConfiguration o da HalGetBusDataByOffset per l'input BusDataType = = EisaConfiguration e Offset = 0, presupponendo che il buffer allocato del chiamante sia di lunghezza sufficiente.

Sintassi

typedef struct _CM_EISA_SLOT_INFORMATION {
  UCHAR  ReturnCode;
  UCHAR  ReturnFlags;
  UCHAR  MajorRevision;
  UCHAR  MinorRevision;
  USHORT Checksum;
  UCHAR  NumberFunctions;
  UCHAR  FunctionInformation;
  ULONG  CompressedId;
} CM_EISA_SLOT_INFORMATION, *PCM_EISA_SLOT_INFORMATION;

Members

ReturnCode

Contiene un codice di stato se si verifica un errore quando viene eseguito una query sul BIOS EISA. I codici di stato possibili includono quanto segue:

  • EISA_INVALID_SLOT
  • EISA_INVALID_FUNCTION
  • EISA_INVALID_CONFIGURATION
  • EISA_EMPTY_SLOT
  • EISA_INVALID_BIOS_CALL

ReturnFlags

Flag restituiti.

MajorRevision

Informazioni fornite dal produttore.

MinorRevision

Informazioni fornite dal produttore.

Checksum

Valore checksum, che consente la convalida dei dati di configurazione.

NumberFunctions

Numero in questo slot.

FunctionInformation

Se è disponibile CM_EISA_FUNCTION_INFORMATION per questo slot.

CompressedId

Identificazione compressa EISA del dispositivo in questo slot. Questo valore è identico al membro CompressedId della struttura CM_EISA_FUNCTION_INFORMATION . Questo membro può essere letto per determinare se il chiamante deve chiamare HalGetBusData o HalGetBusDataByOffset con spazio buffer sufficiente per ottenere CM_EISA_FUNCTION_INFORMATION più dettagliato per un dispositivo supportato.

Commenti

Le informazioni restituite da HalGetBusData o HalGetBusDataByOffset in CM_EISA_SLOT_INFORMATION e in CM_EISA_FUNCTION_INFORMATION immediatamente dopo la lettura.

Il driver di un dispositivo EISA potrebbe chiamare HalGetBusData o HalGetBusDataByOffset per ogni slot in ogni bus EISA nel sistema, richiedendo solo CM_EISA_SLOT_INFORMATION per trovare i dispositivi supportati esaminando i valori CompressedId restituiti. Quindi, tale driver potrebbe allocare spazio buffer sufficiente per chiamare di nuovo HalGetBusData(ByOffset) per CM_EISA_SLOT_INFORMATION e CM_EISA_FUNCTION_INFORMATION in slot in cui è possibile trovare i relativi dispositivi.

Requisiti

Requisito Valore
Intestazione wdm.h (include Wdm.h, Ntddk.h, Ntifs.h, Miniport.h)

Vedi anche

CM_EISA_FUNCTION_INFORMATION

HalGetBusData

HalGetBusDataByOffset