1 /* ASG 971222 -- rewrote this interface */
2 #ifndef __NEC_H_
3 #define __NEC_H_
4 
5 
6 typedef struct _nec_config nec_config;
7 struct _nec_config
8 {
9 	const UINT8*	v25v35_decryptiontable; // internal decryption table
10 };
11 
12 #define NEC_INPUT_LINE_INTP0 10
13 #define NEC_INPUT_LINE_INTP1 11
14 #define NEC_INPUT_LINE_INTP2 12
15 #define NEC_INPUT_LINE_POLL 20
16 
17 #define V25_PORT_P0 0x10000
18 #define V25_PORT_P1 0x10002
19 #define V25_PORT_P2 0x10004
20 #define V25_PORT_PT 0x10006
21 
22 enum
23 {
24 	NEC_PC=0,
25 	NEC_IP, NEC_AW, NEC_CW, NEC_DW, NEC_BW, NEC_SP, NEC_BP, NEC_IX, NEC_IY,
26 	NEC_FLAGS, NEC_ES, NEC_CS, NEC_SS, NEC_DS,
27 	NEC_PENDING
28 };
29 
30 /* Public functions */
31 //DECLARE_LEGACY_CPU_DEVICE(V20, v20);
32 //DECLARE_LEGACY_CPU_DEVICE(V25, v25);
33 //DECLARE_LEGACY_CPU_DEVICE(V30, v30);
34 //DECLARE_LEGACY_CPU_DEVICE(V33, v33);
35 //DECLARE_LEGACY_CPU_DEVICE(V35, v35);
36 
37 #endif
38