NPAB_Get_Bus_Type

Returns a value indicating the bus type of the bus specified by busTag.

Thread Context:Non-Blocking

Syntax

    LONG NPAB_Get_Bus_Type (
       LONG   npaHandle,
       LONG   busTag,
       LONG  *busType
       );
    
    

Parameters

npaHandle
(IN) The HAM's handle for using the NPA APIs, assigned during NPA_Register_HAM_Module.
busTag
(IN) A value returned by NPAB_Search_Adapter or by parsing the Product ID option of the NPAOptionStruct. This value specifies the bus on which the operation is to be performed.
busType
(OUT) Points to a value that indicates one of the following bus types:

Value

Description

0

ISA / ISA PnP bus

1

PC MCA bus

2

PC EISA bus

3

PC Card (PCMCIA) bus

4

PCI bus

8

CardBus

Return Values

The following table lists return values and descriptions.

0

The requested operation was completed successfully.

4

Parameter error. busTag was invalid.

Remarks

This function returns a pointer to a value that indicates the bus type of the specified bus. All instances of a particular bus type return the same value. For example, all EISA buses return 2.