--- np2/io/iocore.h 2004/03/06 18:25:36 1.9 +++ np2/io/iocore.h 2005/03/19 23:06:17 1.13 @@ -11,6 +11,7 @@ typedef REG8 (IOINPCALL *IOINP)(UINT por typedef void (*IOCBFN)(void); +#include "lsidef.h" #include "artic.h" #include "cgrom.h" @@ -36,6 +37,10 @@ typedef void (*IOCBFN)(void); #include "sysport.h" #include "upd4990.h" +#if defined(SUPPORT_PC9821) +#include "pcidev.h" +#endif + #ifdef __cplusplus extern "C" { @@ -64,6 +69,10 @@ extern _RS232C rs232c; extern _SYSPORT sysport; extern _UPD4990 uPD4990; +#if defined(SUPPORT_PC9821) +extern _PCIDEV pcidev; +#endif + // I/O - 8bit decode void iocore_attachcmnout(UINT port, IOOUT func); @@ -82,16 +91,16 @@ void iocore_attachsysinpex(UINT port, UI const IOINP *func, UINT funcs); // サウンドI/O - 12bit decode -BOOL iocore_attachsndout(UINT port, IOOUT func); -BOOL iocore_attachsndinp(UINT port, IOINP func); +BRESULT iocore_attachsndout(UINT port, IOOUT func); +BRESULT iocore_attachsndinp(UINT port, IOINP func); // 拡張I/O - 16bit decode -BOOL iocore_attachout(UINT port, IOOUT func); -BOOL iocore_attachinp(UINT port, IOINP func); +BRESULT iocore_attachout(UINT port, IOOUT func); +BRESULT iocore_attachinp(UINT port, IOINP func); void iocore_create(void); void iocore_destroy(void); -BOOL iocore_build(void); +BRESULT iocore_build(void); void iocore_cb(const IOCBFN *cbfn, UINT count); void iocore_reset(void);