tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: bus_space_physload(9)



On Wed, Mar 24, 2010 at 03:06:08PM +0900, Masao Uebayashi wrote:
>       void *bus_space_physload(bus_space_tag_t space, bus_addr_t addr,
>           bus_size_t size);

This function should take the same arguments as bus_space_mmap(9).  I've
added "int prot" and "int flags":

        void *bus_space_physload(bus_space_tag_t space, bus_addr_t addr,
            bus_size_t size, int prot, int flags);

"int prot" is the device's characteristic.  Audio mic devices would use
VM_PROT_READ.  Framebuffers would use VM_PROT_WRITE.  We need to introduce
BUS_SPACE_PROT_* symbols too.

Masao

-- 
Masao Uebayashi / Tombi Inc. / Tel: +81-90-9141-4635


Home | Main Index | Thread Index | Old Index