MGSL_PORT_CONFIG Structure


Note: This structure is obsolete, new applications should use MGSL_PORT_CONFIG_EX

This structure is used with the MgslGetPortConfig and MgslSetPortConfig API calls to retrieve and modify the hardware configuration for a port.

typedef struct _MGSL_PORT_CONFIG
{
   ULONG    BaseAddress;
   ULONG    IrqLevel;
   ULONG    DmaChannel;
   ULONG    BusType;
   ULONG    BusNumber;
} MGSL_PORT_CONFIG, *PMGSL_PORT_CONFIG;
BaseAddress base I/O address of adapter card
IrqLevel interrupt level used by adapter
DmaChannel DMA channel used by adapter
BusType Specifies the expansion bus type:
  MGSL_BUS_TYPE_ISA
  MGSL_BUS_TYPE_EISA
  MGSL_BUS_TYPE_PCI
  MGSL_BUS_TYPE_PCMCIA
BusNumber Specifies the zero based expansion bus number. For PCI devices the upper 16 bits is the device number and the lower 16 bits is the bus number. The BUSNUM macro extracts the PCI bus number, the DEVNUM macro extracts the PCI device number, and the BUSDEV macro creates a 32-bit value based on a 16-bit bus and device number. Set the PCI device number to 32 to indicate that the software should auto-detect the PCI device.


Previous Contents Next