--- np2/io/iocore.h 2004/01/25 05:41:29 1.6 +++ np2/io/iocore.h 2005/02/12 12:40:39 1.12 @@ -11,6 +11,7 @@ typedef REG8 (IOINPCALL *IOINP)(UINT por typedef void (*IOCBFN)(void); +#include "lsidef.h" #include "artic.h" #include "cgrom.h" @@ -25,11 +26,11 @@ 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" #include "np2sysp.h" +#include "pcidev.h" #include "pic.h" #include "pit.h" #include "printif.h" @@ -54,8 +55,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 +66,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 +88,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);