pcmciatrap

autodetect PCMCIA adapter and optionally start correct driver (QNX)

Syntax:

Print command line that would be required to start the appropriate driver:

   pcmciatrap [options] [query]

Start driver:

   pcmciatrap [options] start

Options:

-q
Quiet output.
-v
Verbose output to help debugging failed detection.

Description:

The pcmciatrap utility scans the machine it is run on for PCMCIA adapter hardware. If start is not specified, the command line that would be required to start the appropriate driver will be written to the standard output. If start is specified, the appropriate PCMCIA driver (Pcmcia.*) will be automatically started. This is ideal for use in sysinit files.

The pcmciatrap utility determines the chip type by probing I/O ports that are likely to be associated with a PCMCIA adapter. If you have other adapters at these addresses the utility may confuse the hardware and/or any associated drivers. Some NE2000 Ethernet adapters can crash the machine if they are accessed improperly.

The PCMCIA adapter hardware that pcmciatrap scans for includes the following:

HardwareI/O Ports
Intel 386sl0x3e0, 0x3e2
Cirrus 67xx0x3e0, 0x3e2

Additional chips may have been added since this document was published. See the usage message for pcmciatrap for a list of currently supported PCMCIA chips. (use pcmciatrap)

The pcmciatrap utility may be run only by root.

Exit status:

>0
Failed to detect PCMCIA adapter and/or start driver.
0
Sucessfully detected adapter/started driver.

Files:

The standard input is unused.

The query information and -v output is written to the standard output.

See also: