Resource allocation on character driver

Matías Perret Cantoni perretcantonim at gmail.com
Tue Mar 3 00:43:03 UTC 2015


Hello!

I'm trying to write a very simple character driver.  What I need is to
allocate a specific byte of memory and then write/read it.

I know that for newbus drivers one can use the bus_set_resource() and
bus_alloc_resource_any() for this.

Is there any way for doing this in a driver that doesn't only implements
the loader() function? (no identify, probe and attach methods)

I'm new at this, so all kind of advises are welcomed!

Regards,
Matias.-


More information about the freebsd-arm mailing list