Move bs_unimplemented() to bus_space_generic.c so it can be shared.
This commit is contained in:
parent
a23e40a761
commit
2737497b83
@ -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.
|
||||
|
@ -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);
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user