--- np2/io/iocore.h 2004/01/25 05:41:29 1.6 +++ 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" @@ -25,7 +26,6 @@ typedef void (*IOCBFN)(void); #include "fdd320.h" #include "gdc.h" #include "gdc_cmd.h" -#include "gdc_sub.h" #include "mouseif.h" #include "necio.h" #include "nmiio.h" @@ -37,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" { @@ -54,8 +58,9 @@ extern _FDC fdc; extern _GDC gdc; extern _GDCS gdcs; extern _GRCG grcg; -extern _KEYB keyb; +extern _KEYBRD keybrd; extern _MOUSEIF mouseif; +extern _NECIO necio; extern _NMIIO nmiio; extern _NP2SYSP np2sysp; extern _PIC pic; @@ -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);