tech-kern archive

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

Re: bus_space(9) header files



On Fri, Apr 02, 2010 at 12:51:26PM -0500, David Young wrote:

> I would like to add some function prototypes to <sys/bus.h> for all
> architectures to share.  Today, <sys/bus.h> is little more than this:
> 
> #include <machine/bus.h>
> 
> I would like to add the MI function prototypes underneath the
> #include:
> 
> #include <machine/bus.h>
> 
> /* MI function prototypes */
> bus_space_tag_t bus_space_tag_create(bus_space_tag_t, /* TBD */);
> void bus_space_tag_destroy(bus_space_tag_t);
> 
> According to the manual page, drivers should #include <machine/bus.h>
> for bus_space(9) definitions.  Many #include <sys/bus.h>, instead.  ISTM
> that the doco should be corrected to say <sys/bus.h>.

sys/bus.h is correct.  The intent behind having a sys/bus.h was to
eventually eliminate the pasteware so please go for it.  Did you
miss bus_proto.h?



Home | Main Index | Thread Index | Old Index