--- np2/cbus/cbuscore.c 2004/03/19 00:30:00 1.4 +++ np2/cbus/cbuscore.c 2007/11/03 00:00:19 1.8 @@ -9,8 +9,10 @@ #include "mpu98ii.h" -static const IOCBFN resetfn[] = { +static const FNIORESET resetfn[] = { +#if defined(SUPPORT_IDEIO) ideio_reset, +#endif #if defined(SUPPORT_SASI) sasiio_reset, #endif @@ -20,10 +22,13 @@ 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 #if defined(SUPPORT_SASI) sasiio_bind, #endif @@ -33,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)); }