* Accessing flash on a PCI card
@ 2004-07-06 10:26 Amit Shah
2004-07-07 4:46 ` Thomas Gleixner
0 siblings, 1 reply; 3+ messages in thread
From: Amit Shah @ 2004-07-06 10:26 UTC (permalink / raw)
To: linux-mtd
Hi all,
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?
Thanks for any hints,
Amit.
--
Amit Shah
http://amitshah.nav.to/
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Accessing flash on a PCI card
2004-07-06 10:26 Accessing flash on a PCI card Amit Shah
@ 2004-07-07 4:46 ` Thomas Gleixner
2004-07-07 16:09 ` Amit Shah
0 siblings, 1 reply; 3+ messages in thread
From: Thomas Gleixner @ 2004-07-07 4:46 UTC (permalink / raw)
To: Amit Shah; +Cc: linux-mtd
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
Thomas
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Accessing flash on a PCI card
2004-07-07 4:46 ` Thomas Gleixner
@ 2004-07-07 16:09 ` Amit Shah
0 siblings, 0 replies; 3+ messages in thread
From: Amit Shah @ 2004-07-07 16:09 UTC (permalink / raw)
To: linux-mtd
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/
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2004-07-07 16:11 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-07-06 10:26 Accessing flash on a PCI card Amit Shah
2004-07-07 4:46 ` Thomas Gleixner
2004-07-07 16:09 ` Amit Shah
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox