--- np2/cbus/cbuscore.c 2004/01/30 01:56:01 1.3 +++ np2/cbus/cbuscore.c 2005/02/07 14:46:08 1.7 @@ -2,6 +2,7 @@ #include "pccore.h" #include "iocore.h" #include "cbuscore.h" +#include "ideio.h" #include "sasiio.h" #include "scsiio.h" #include "pc9861k.h" @@ -9,6 +10,9 @@ static const IOCBFN resetfn[] = { +#if defined(SUPPORT_IDEIO) + ideio_reset, +#endif #if defined(SUPPORT_SASI) sasiio_reset, #endif @@ -18,9 +22,13 @@ static const IOCBFN resetfn[] = { #if defined(SUPPORT_PC9861K) pc9861k_reset, #endif - mpu98ii_reset}; + mpu98ii_reset, + }; static const IOCBFN bindfn[] = { +#if defined(SUPPORT_IDEIO) + ideio_bind, +#endif #if defined(SUPPORT_SASI) sasiio_bind, #endif @@ -30,17 +38,18 @@ static const IOCBFN bindfn[] = { #if defined(SUPPORT_PC9861K) pc9861k_bind, #endif - mpu98ii_bind}; + mpu98ii_bind, + }; void cbuscore_reset(void) { - iocore_cb(resetfn, sizeof(resetfn)/sizeof(IOCBFN)); + iocore_cb(resetfn, NELEMENTS(resetfn)); } void cbuscore_bind(void) { - iocore_cb(bindfn, sizeof(bindfn)/sizeof(IOCBFN)); + iocore_cb(bindfn, NELEMENTS(bindfn)); }