Thread (8 messages) read the whole thread 8 messages, 4 authors, 2004-08-07

Re: New kernel API for ROMs

From: Jon Smirl <hidden>
Date: 2004-08-07 17:40:58

--- Alan Cox <alan@lxorguk.ukuu.org.uk> wrote:
On Sad, 2004-08-07 at 17:37, Kronos wrote:
quoted
You can check and see if the ROM is really big and use vmalloc, if
not
quoted
then you use kmalloc (if I remember correctly my radeon has a 4KB
ROM -
quoted
vmalloc would be overkill).
You can also read it out to userspace in a loop in chunks thus
needing
only a single 4K page or you could mmap it
We have to copy the whole thing when the driver tells us to. After we
copy the ROM the hardware is going to use the address decoder for
something else. There is no safe way to get back to the ROM again other
than to unload the device driver.

=====
Jon Smirl
jonsmirl@yahoo.com


		
__________________________________
Do you Yahoo!?
Y! Messenger - Communicate in real time. Download now. 
http://messenger.yahoo.com


-------------------------------------------------------
This SF.Net email is sponsored by OSTG. Have you noticed the changes on
Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now,
one more big change to announce. We are now OSTG- Open Source Technology
Group. Come see the changes on the new OSTG site. www.ostg.com
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help