tech-kern archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: bus_space_physload(9)
On Thu, Mar 25, 2010 at 11:43:52AM +0900, Masao Uebayashi wrote:
> void *
> bus_space_physload(bus_space_tag_t t, bus_addr_t addr, bus_size_t size,
> int prot, int flags)
> {
> const bus_addr_t busp = addr;
> const bus_addr_t busq = addr + size;
> const paddr_t physp = bus_space_mmap(t, busp, 0, prot, flags);
> const paddr_t physq = bus_space_mmap(t, busq, 0, prot, flags);
>
> /* return struct vm_physseg * as a cookie */
> return uvm_page_physload_device(
> physp, /* physical start */
> physq); /* physical end */
> }
uvm_page_physload_device(9) would take "int prot" and "int flags" too, to
record them...
Masao
--
Masao Uebayashi / Tombi Inc. / Tel: +81-90-9141-4635
Home |
Main Index |
Thread Index |
Old Index