Move bs_unimplemented() to bus_space_generic.c so it can be shared.

This commit is contained in:
Ian Lepore 2015-01-21 03:24:18 +00:00
parent a23e40a761
commit 2737497b83
3 changed files with 10 additions and 9 deletions

View File

@ -39,15 +39,6 @@ __FBSDID("$FreeBSD$");
/* Prototypes for all the bus_space structure functions */
bs_protos(generic);
static void
bs_unimplemented(void)
{
panic("unimplemented bus_space function called");
}
#define BS_UNIMPLEMENTED (void *)bs_unimplemented
/*
* The bus space tag. This is constant for all instances, so
* we never have to explicitly "create" it.

View File

@ -53,6 +53,13 @@ __FBSDID("$FreeBSD$");
#include <machine/cpufunc.h>
#include <machine/devmap.h>
void
generic_bs_unimplemented(void)
{
panic("unimplemented bus_space function called");
}
/* Prototypes for all the bus_space structure functions */
bs_protos(generic);

View File

@ -730,6 +730,9 @@ bs_c_2_proto(f); \
bs_c_4_proto(f); \
bs_c_8_proto(f);
void generic_bs_unimplemented(void);
#define BS_UNIMPLEMENTED (void *)generic_bs_unimplemented
#define BUS_SPACE_ALIGNED_POINTER(p, t) ALIGNED_POINTER(p, t)
#define BUS_SPACE_MAXADDR_24BIT 0xFFFFFF