The maab driver module
maab
Description:
The KMAAB module shows the piece of memory in the kernel space
that is the MAAB-CARD PCI-Memory and can be mapped to the user memory.
The driver search the PCI bus for MAAB Card and get the memory
address of the card. In user space this memory area can be used for
reading and writing
The 'procinfo' method is used to make this buffer visible in the
/proc/maab file.
cat /proc/maab
shows
Proc entry from maab:
'Memory Content'
The 'mmap' method maps the DSP memory space in user space
see maablib for details.
Driver inodes:
The driver inode in /dev is usually created by
mknod /dev/maab c major minor
If another major is needed it can be specified by the
maab_major option to insmod:
insmod maab.o maab_major=new_major
Driver inodes:
All driver generated with LDDK have debugging information
compiled into the code that can be configured with the dbgMask
option to insmod. The bits of dbgMask specifies the debugging verbosity:
- Bit-0 Flag for setting all options=on
- Bit-1 function entrys
- Bit-2 function exits
- Bit-3 branches
- Bit-4 data given to functions
- Bit-5 interrupts
- Bit-6 register info
- Bit-7 reserved
For example:
insmod maab.o dbgMask=0x06
logs all function entrys and exits to the kernel log daemon.
Mon Jul 20 04:40:28 1998