[Previous] [Contents] [Next]

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 will look for multiple PCMCIA adapters installed on the machine, including the ones on the PCI bus. 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.


WARNING: 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:

Hardware I/O Ports
Intel 386sl 0x3e0, 0x3e2
Cirrus 67xx 0x3e0, 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)


Note: The pcmciatrap utility may be run only by root.

Files:

The standard input is unused.

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

Exit status:

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

See also:

Pcmcia.*, PcmciaLaunch, pin


[Previous] [Contents] [Next]