This driver is compiled in three versions.
The version for the Linux 2.0.x kernel is called f_ksc2915_20.o.
The version for the Linux 2.2.x kernel is called f_ksc2915_22.o.
The version for the Linux 2.4.x kernel is called f_ksc2915_24.o.
The crate(8) program provides an interface to many of these function codes.
The major device number may be set when the module is installed by "major=<major_dev_number>". The major device number defaults to 70 if not specified.
The interrupt number may be set when the module is installed by "interrupt=<int_number>". See the NOTES section below.
For example:
/sbin/insmod f_ksc2915mod_20.o major=80
Nine device nodes need to be added to /dev for this device. Minor numbers 0-7 are used for LAM service. Minor number 255 is used for normal I/O service.
For example:
mknod /dev/camaclam0 c 70 0
mknod /dev/camaclam1 c 70 1
mknod /dev/camaclam2 c 70 2
mknod /dev/camaclam3 c 70 3
mknod /dev/camaclam4 c 70 4
mknod /dev/camaclam5 c 70 5
mknod /dev/camaclam6 c 70 6
mknod /dev/camaclam7 c 70 7
mknod /dev/camac c 70 255
After the nodes are made write permissions should be changed as follows:
chmod 666 /dev/camaclam0
chmod 666 /dev/camaclam1
chmod 666 /dev/camaclam2
chmod 666 /dev/camaclam3
chmod 666 /dev/camaclam4
chmod 666 /dev/camaclam5
chmod 666 /dev/camaclam6
chmod 666 /dev/camaclam7
chmod 666 /dev/camac
This is caused by not using the OS services properly to get this information and should be fixed. However, there isn’t time to fix this right now so we will do it this way for now.
If the card doesn’t process interrupts the best thing to do is cat /proc/interrupts, find the card in the list and note what interrupt the OS thinks it should be using, then add the interrupt directive to the command line when doing insmod or modprobe.