--- np2/cbus/cbuscore.c 2004/03/19 03:36:52 1.5 +++ np2/cbus/cbuscore.c 2007/11/03 00:00:19 1.8 @@ -9,7 +9,7 @@ #include "mpu98ii.h" -static const IOCBFN resetfn[] = { +static const FNIORESET resetfn[] = { #if defined(SUPPORT_IDEIO) ideio_reset, #endif @@ -22,9 +22,10 @@ static const IOCBFN resetfn[] = { #if defined(SUPPORT_PC9861K) pc9861k_reset, #endif - mpu98ii_reset}; + mpu98ii_reset, + }; -static const IOCBFN bindfn[] = { +static const FNIOBIND bindfn[] = { #if defined(SUPPORT_IDEIO) ideio_bind, #endif @@ -37,17 +38,18 @@ static const IOCBFN bindfn[] = { #if defined(SUPPORT_PC9861K) pc9861k_bind, #endif - mpu98ii_bind}; + mpu98ii_bind, + }; -void cbuscore_reset(void) { +void cbuscore_reset(const NP2CFG *pConfig) { - iocore_cb(resetfn, sizeof(resetfn)/sizeof(IOCBFN)); + iocore_cbreset(resetfn, NELEMENTS(resetfn), pConfig); } void cbuscore_bind(void) { - iocore_cb(bindfn, sizeof(bindfn)/sizeof(IOCBFN)); + iocore_cbbind(bindfn, NELEMENTS(bindfn)); }