In message: <009c01c1c356$93e13be0$c80ca8c0@khromovv>
            "Valery N. Khromov" <[EMAIL PROTECTED]> writes:
: I'd like to develop a kernel module for FreeBSD, able to read & write
: directly to VGA text-mode screen buffer. I know that this buffer is located
: at 0xB8000 in physical address space. But in kernel I must address it using
: kernel virtual address space.
: 
: Thus, the question is: how can I _correctly_ convert physical address into
: kernel virtual address?
: 
: Now I use the following trick: 0xC0000000 + 0xB8000, but I want to use more
: correct method. :)

bus_alloc_resource() followed by bus_space_{read,write}_*.

Warner

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to