History log of /netbsd/sys/sys/bus.h (Results 1 – 13 of 13)
Revision Date Author Comments
# a2c3c26b 08-Mar-2020 thorpej <thorpej@NetBSD.org>

Add BUS_ADDR_{LO,HI}32() macros to correctly extract the lower and
upper halves of 64-bit DMA addresses for 32-bit and 64-bit bus_addr_t.
This is a common pattern in modern drivers, so it's a good id

Add BUS_ADDR_{LO,HI}32() macros to correctly extract the lower and
upper halves of 64-bit DMA addresses for 32-bit and 64-bit bus_addr_t.
This is a common pattern in modern drivers, so it's a good idea to provide
a common correct definition.

This particular implementation suggested by riastradh@.

show more ...


# 7890d720 19-Apr-2018 christos <christos@NetBSD.org>

s/static inline/static __inline/g for consistency with other include
headers.


# 32ae5c65 07-May-2012 tsutsui <tsutsui@NetBSD.org>

Add dummy bus_dma(9) typedefs (enabled by __HAVE_NO_BUS_DMA) in <sys/bus.h>
for ports which don't bother to have unnecessary bus_dma(9) implementation
to appease MI driver modules that require bus_dm

Add dummy bus_dma(9) typedefs (enabled by __HAVE_NO_BUS_DMA) in <sys/bus.h>
for ports which don't bother to have unnecessary bus_dma(9) implementation
to appease MI driver modules that require bus_dma_tag_t.

For amiga, move <m68k/bus_dma.h> inclusion from <machine/pci_machdep.h>
to <machine/bus.h> since amiga will want actual bus_dma(9) in future
for PCI devices.

Fixes builds on sys/modules/if_axe etc on ancient ports.

"Sounds good" from martin@ on port-m68k@.

show more ...


# f4d69af6 01-Sep-2011 christos <christos@NetBSD.org>

Add bus_dma overrides. From dyoung


# 16eae759 31-Aug-2011 dyoung <dyoung@NetBSD.org>

Add some definitions for bus_dma(9) overrides.


# 0261252a 20-Aug-2011 he <he@NetBSD.org>

Put back bus_space_handle_is_equal() and bus_space_is_equal() in
the non-__HAVE_NEW_STYLE_BUS_H case, since bus_proto.h isn't and
can't be included in that case. Restores buildable state for
ports w

Put back bus_space_handle_is_equal() and bus_space_is_equal() in
the non-__HAVE_NEW_STYLE_BUS_H case, since bus_proto.h isn't and
can't be included in that case. Restores buildable state for
ports which don't (yet) define __HAVE_NEW_STYLE_BUS_H. Also add
comments to preprocessing directives spaced far apart.

OK'ed by dyoung@

show more ...


# da9d7bde 17-Aug-2011 dyoung <dyoung@NetBSD.org>

Remove bus_space_handle_is_equal() and bus_space_is_equal() since
they're declared in bus_proto.h.


# 78a8b0a4 08-Jul-2011 dyoung <dyoung@NetBSD.org>

Update bus_space_tag_create(9) declaration.


# b3c26983 06-Jul-2011 dyoung <dyoung@NetBSD.org>

Bring the bus_space_is_equal() declaration out of the #ifdef
__HAVE_NEW_STYLE_BUS_H, since we need it either way.


# 26b1fa54 06-Jul-2011 dyoung <dyoung@NetBSD.org>

If __HAVE_NEW_STYLE_BUS_H is #defined, make <sys/bus.h> declare the
new MI API for reserving bus space without mapping it, #include
<machine/bus_defs.h>, <machine/bus_funcs.h>, and <sys/bus_proto.h>.

If __HAVE_NEW_STYLE_BUS_H is #defined, make <sys/bus.h> declare the
new MI API for reserving bus space without mapping it, #include
<machine/bus_defs.h>, <machine/bus_funcs.h>, and <sys/bus_proto.h>.

Refine the bus_space_tag_create() API.

show more ...


# ad6e139a 19-Apr-2010 dyoung <dyoung@NetBSD.org>

Add default implementations for bus_space_is_equal(9),
bus_space_tag_create(9), and bus_space_tag_destroy(9). Use
bus_space_is_equal(9) throughout the kernel to compare
bus_space_tag_t's. Tested on

Add default implementations for bus_space_is_equal(9),
bus_space_tag_create(9), and bus_space_tag_destroy(9). Use
bus_space_is_equal(9) throughout the kernel to compare
bus_space_tag_t's. Tested on i386 and on sparc64.

show more ...


# ce099b40 28-Apr-2008 martin <martin@NetBSD.org>

Remove clause 3 and 4 from TNF licenses


# 1ba4d295 19-Oct-2007 ad <ad@NetBSD.org>

Add a dummy bus.h that pulls in machine/bus.h. In the future we may
want to put MI defs here.