Date: Mon, 2 Mar 2015 21:43:01 -0300 From: =?UTF-8?Q?Mat=C3=ADas_Perret_Cantoni?= <perretcantonim@gmail.com> To: freebsd-arm@freebsd.org Subject: Resource allocation on character driver Message-ID: <CADLKG01GgWkOvPMWjv9E=kTZ%2BCbVZHxFwCaDdzc2AuYpVebCKg@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
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.-
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CADLKG01GgWkOvPMWjv9E=kTZ%2BCbVZHxFwCaDdzc2AuYpVebCKg>