make iicbb_devclass and iicbb_driver globally visible. This will let

drivers that implemnt the i2c bit banging bus interface not have to
recompile iicbb in order to add an attachment for it.

This will mean the bktr and other definitions can go back to their
respective drivers.
This commit is contained in:
John-Mark Gurney 2003-06-19 02:50:08 +00:00
parent 94040887ee
commit 9c77e81b5d
2 changed files with 5 additions and 2 deletions

View File

@ -96,13 +96,13 @@ static device_method_t iicbb_methods[] = {
{ 0, 0 }
};
static driver_t iicbb_driver = {
driver_t iicbb_driver = {
"iicbb",
iicbb_methods,
sizeof(struct iicbb_softc),
};
static devclass_t iicbb_devclass;
devclass_t iicbb_devclass;
static int iicbb_probe(device_t dev)
{

View File

@ -132,6 +132,9 @@ extern u_char iicbus_get_addr(device_t);
#define IICBUS_MAXVER 1
#define IICBUS_PREFVER IICBUS_MODVER
extern driver_t iicbb_driver;
extern devclass_t iicbb_devclass;
#define IICBB_MODVER 1
#define IICBB_MINVER 1
#define IICBB_MAXVER 1