Accessing flash on a PCI card

Amit Shah amitshah at gmx.net
Wed Jul 7 12:09:08 EDT 2004


Thomas Gleixner wrote:

> On Tue, 2004-07-06 at 12:26, Amit Shah wrote:
>> I have a PCI card that has Intel Flash. I've cooked up a small driver
>> (the host kernel is 2.6.6) that iomaps the base address exported by the
>> PCI BARs and can verify that it's an intel flash by doing some config-
>> write and read sequences.
>> 
>> I now want to export the flash to userspace for reading / writing to the
>> flash. I guess it would be better to let MTD handle the stuff than me
>> doing things all over again. So, how can I access that flash memory over
>> the PCI with MTD?
> 
> Look at
> drivers/mtd/maps/pci.c and other files using PCI in the same folder

Thanks, Thomas!

-- 
Amit Shah
http://amitshah.nav.to/





More information about the linux-mtd mailing list