> I have a PCI device which have extra memory on it.
> I want to use the ioremap() function to get a virtual address
> so that I can access the memory.
> But when I try to load the module, it fails and tells me ioremap() and
> readb() are unresolved symbols.
> I use 2.2.14 linux kernel.
> Is there anybody who knows what's wrong?
> or can you send me a simple example code to teach me how to use ioremap()
> correctly?
Are you including the rigth stuff?
I'm using ioremap ok and I'm including these:
#ifndef __KERNEL__
# define __KERNEL__
#endif
#ifndef MODULE
# define MODULE
#endif
#define __NO_VERSION__
#include <linux/module.h>
#include <linux/version.h>
char kernel_version [] = UTS_RELEASE;
#include <linux/kernel.h>
#include <linux/errno.h>
#include <linux/fs.h>
#include <linux/proc_fs.h>
#include <linux/types.h>
#include <linux/malloc.h>
#include <linux/pci.h>
#include <linux/mm.h>
#include <asm/io.h>
#include <asm/string.h>
Hope it helps,
Andre
ps - If you measure read speed from the PCI board to memory, please tell
me the numbers. Thanks
--
"Share the code. If you hide it ain't good."
Popular knowledge
|
|
Andre.David.vcf
< 1K
Download
|