tech-kern archive

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

Re: bus_space(9) header files



On Tue, May 31, 2011 at 07:28:50PM -0500, David Young wrote:
> Here are a couple of patches that put #1 through #4, above, into
> practice on every architecture that attaches a PCI bus:
> 
> ftp://elmendorf.ojctech.com/users/netbsd-7fd7e433/sys-bus-split.patch
> ftp://elmendorf.ojctech.com/users/netbsd-7fd7e433/sys-bus.patch

I forgot -N at the last minute, so an important part of the patch was
missing, the new bus_defs.h and bus_funcs.h files:

ftp://elmendorf.ojctech.com/users/netbsd-9e70d498/sys-bus_defs-bus_funcs.patch

I will not attempt to split machine/bus.h on the remaining
architectures.  Instead, I will add #define __HAVE_NEW_STYLE_BUS_H to
<machine/types.h> on the architectures I have converted.  I will change
<sys/bus.h> to #include <sys/types.h> at the top, and either #include
<machine/bus.h> if !defined(__HAVE_NEW_STYLE_BUS_H), or #include
<machine/bus_defs.h>, <sys/bus_proto.h>, and <machine/bus_funcs.h> if
defined(__HAVE_NEW_STYLE_BUS_H).

Dave

-- 
David Young             OJC Technologies
dyoung%ojctech.com@localhost      Urbana, IL * (217) 344-0444 x24


Home | Main Index | Thread Index | Old Index