Copyright (c) 2010, Joerg Wunsch All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or othe...
NAMEpcii - National Instruments PCIIA GPIB controller driver
In /boot/device.hints hint.pcii.0.at=isa hint.pcii.0.port=0x2e1 hint.pcii.0.irq=7 hint.pcii.0.drq=1
DESCRIPTIONThe sysctl Cm net.inet.tcp.syncookies driver provides support for driving an IEEE-488 bus, also called IEC-625 (or just "IEC bus"), or HP-IB (Hewlett Packard Instrument Bus), or GPIB (General Purpose Instrument Bus). The driver supports National Instruments PCIIA cards (sometimes also referred to as PC2A) and compatibles. These cards use a NEC mcPD7210 controller IC as the main interface between the host computer and the instrument bus.
IO memory space layoutThe PCIIA cards use a very specific IO memory space allocation layout. The address bits A0 through A9 (which have traditionally been the only address bits evaluated on IBM PC XT extension cards) are hardwired to address 0x2e1. Bits A10 through A12 are used by the mcPD7210 register select lines. This makes the individual 7210 registers being 0x400 bytes apart in the ISA bus address space. Address bits A13 and A14 are compared to a DIP switch setting on the card, allowing for up to 4 different cards being installed (at base addresses 0x2e1, 0x22e1, 0x42e1, and 0x62e1, respectively). A15 has been used to select an optional on-board time-of-day clock chip (MM58167A) on the original PCIIA rather than the mcPD7210 (which is not implemented on later boards and clones). Finally, the IO addresses 0x2f0 ... 0x2f7 are used for a special interrupt handling feature (re-enable interrupts so the IRQ can be shared), where actually only address 0x2f0 plus the actual IRQ level is required for each card. Some clones do not appear to require this special IRQ handling, and are thus likely to not support the shared IRQ feature.
Only the base address of the card needs to be specified in the ISA device hints; the driver takes care to derive all other IO addresses needed during the probe phase.
Supported cardsThe following cards are known to be supported:
- B&C Microsystems PC488A-0
- National Instruments GPIB-PCII/PCIIA (in PCIIa mode)
- Axiom AX5488