#include "ntvdm.h"
#include <debug.h>
#include "emulator.h"
#include "pic.h"
#include "io.h"
Go to the source code of this file.
◆ NDEBUG
Definition at line 14 of file pic.c.
◆ PIC
◆ PPIC
◆ call_ica_hw_interrupt()
Definition at line 308 of file pic.c.
311{
313
314
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332 if (ms ==
ICA_SLAVE) InterruptNumber += 8;
333
334
336 {
338
339
340
341
342
343
344
345
346 }
347}
GLuint GLuint GLsizei count
VOID PicInterruptRequest(BYTE Number)
◆ PicGetInterrupt()
Definition at line 244 of file pic.c.
245{
247
248
249 for (
i = 0;
i < 8;
i++)
250 {
252 {
253
255
256
258
259
261 }
262 }
263
264
265 for (
i = 0;
i < 8;
i++)
266 {
268 {
269
271
273 {
274
276 }
277 else
278 {
279
281
282
284 }
285 }
286 }
287
288
291 else
293}
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
BOOLEAN CascadeRegisterSet
Referenced by EmulatorIntAcknowledge().
◆ PicInitialize()
Definition at line 295 of file pic.c.
296{
297
302}
static BYTE WINAPI PicReadCommand(USHORT Port)
static BYTE WINAPI PicReadData(USHORT Port)
static VOID WINAPI PicWriteCommand(USHORT Port, BYTE Data)
static VOID WINAPI PicWriteData(USHORT Port, BYTE Data)
VOID RegisterIoPort(USHORT Port, EMULATOR_INB_PROC InHandler, EMULATOR_OUTB_PROC OutHandler)
Referenced by EmulatorInitialize().
◆ PicInterruptRequest()
◆ PicReadCommand()
Definition at line 43 of file pic.c.
44{
46
47
50 else
52
54 {
55
58 }
59 else
60 {
61
63 }
64}
Referenced by PicInitialize().
◆ PicReadData()
◆ PicWriteCommand()
Definition at line 66 of file pic.c.
67{
69
70
73 else
75
77 {
78
83 return;
84 }
85
87 {
88
90 {
91
93 }
94
95 return;
96 }
97
98
100 {
102 {
103
105 }
106 else
107 {
108
110 }
111
113 {
114
116 }
117 }
118}
#define PIC_OCW2_NUM_MASK
#define PIC_OCW3_READ_ISR
Referenced by PicInitialize().
◆ PicWriteData()
Definition at line 129 of file pic.c.
130{
132
133
136 else
138
139
141 {
142
144 return;
145 }
146
147
149 {
150
152
153
156 {
157
159 }
160 return;
161 }
162
163
165 {
166
169
170
172 {
173
175 }
176 return;
177 }
178
179
181 {
182
184 }
185
186
188}
Referenced by PicInitialize().
◆ VDDReleaseIrqLine()
Definition at line 361 of file pic.c.
363{
367}
#define ERROR_INVALID_PARAMETER
◆ VDDReserveIrqLine()
Definition at line 351 of file pic.c.
353{
356 return 0xFFFF;
357}
◆ MasterPic
◆ SlavePic