How to Install and Test PCI8255MULTI Card on Linux

1. Instalation :

Download driver from as follows:

KERNEL 2.2.14

KERNEL 2.4.18


Download the driver to /tmp

Please follow as follows to install:
This sample is under REDHAT 8.0 KERNEL 2.4.18-14.


Step1: Extract the file



Step 2: DIP Switch





The switch is used to identify card number, default setting is card 1. There are two methods to set

the card number:

A. PnP mode

Just plug in PCI bus adapter into PCI slot, the PCI BIOS will allocate I/O address to each adapter

automatically and assign card number start from 0 to each adapter. However, if you plug in more

than one adapter, please set whole adapters to card number 1 (default setting), then use software tools

to distinguish port id.

B.Manual mode

Set card number by card identifier switch, the PCI BIOS will assign pre-allocated I/O address to

each adapter. Please set different card number to each adapter (do not duplicate card number setting).

  1         2        3        4

Card Number


ON     OFF    OFF    OFF

1

OFF     ON     OFF     OFF

2

ON     ON     OFF     OFF

3

OFF     OFF     ON     OFF

4


Step 3: Execute the install file to install .



Step 4: Please use "lsmod" command to check.




Step 5: Please edit /etc/rc.local to add a command line as follows:





Step 6: Please reboot systems.


Step 7: Please use 'lsmod' to check after system restarted. You can find the dpci8255multi .



2.About uninstall



3. About Test:


(1) The test equipment

The result is as follows:

(2) The test program
The device driver already includes two test programs.

The 'test.c' is the basic I/O program for 8255. Another "test1.c" is used for test the 8253 timer.


(3) Please compile the 'test.c' 'test1.c' files as following step:
Then it will create the 'test' 'test1' file.



(3)Please execute the 'test' file to test .



The test.c's content is as follows:







(4) Please execute 'test1' to test input and output. The result is as follows:



The test1.c's content is as follows: