|
|
| version 1.3, 2004/02/05 16:43:44 | version 1.4, 2004/02/20 16:09:04 |
|---|---|
| Line 34 | Line 34 |
| static void | static void |
| check_io(WORD port, DWORD len) | check_io(UINT port, UINT len) |
| { | { |
| WORD off; | UINT off; |
| BYTE bit; | UINT8 bit; |
| BYTE map; | UINT8 map; |
| if (CPU_STAT_IOLIMIT == 0) { | if (CPU_STAT_IOLIMIT == 0) { |
| VERBOSE(("check_io: CPU_STAT_IOLIMIT == 0 (port = %04x, len = %d)", port, len)); | VERBOSE(("check_io: CPU_STAT_IOLIMIT == 0 (port = %04x, len = %d)", port, len)); |
| Line 63 check_io(WORD port, DWORD len) | Line 63 check_io(WORD port, DWORD len) |
| } | } |
| } | } |
| BYTE | UINT8 |
| cpu_in(WORD port) | cpu_in(UINT port) |
| { | { |
| if (CPU_STAT_PM && (CPU_STAT_VM86 || (CPU_STAT_CPL > CPU_STAT_IOPL))) { | if (CPU_STAT_PM && (CPU_STAT_VM86 || (CPU_STAT_CPL > CPU_STAT_IOPL))) { |
| Line 73 cpu_in(WORD port) | Line 73 cpu_in(WORD port) |
| return iocore_inp8(port); | return iocore_inp8(port); |
| } | } |
| WORD | UINT16 |
| cpu_in_w(WORD port) | cpu_in_w(UINT port) |
| { | { |
| if (CPU_STAT_PM && (CPU_STAT_VM86 || (CPU_STAT_CPL > CPU_STAT_IOPL))) { | if (CPU_STAT_PM && (CPU_STAT_VM86 || (CPU_STAT_CPL > CPU_STAT_IOPL))) { |
| Line 83 cpu_in_w(WORD port) | Line 83 cpu_in_w(WORD port) |
| return iocore_inp16(port); | return iocore_inp16(port); |
| } | } |
| DWORD | UINT32 |
| cpu_in_d(WORD port) | cpu_in_d(UINT port) |
| { | { |
| if (CPU_STAT_PM && (CPU_STAT_VM86 || (CPU_STAT_CPL > CPU_STAT_IOPL))) { | if (CPU_STAT_PM && (CPU_STAT_VM86 || (CPU_STAT_CPL > CPU_STAT_IOPL))) { |
| Line 94 cpu_in_d(WORD port) | Line 94 cpu_in_d(WORD port) |
| } | } |
| void | void |
| cpu_out(WORD port, BYTE data) | cpu_out(UINT port, UINT8 data) |
| { | { |
| if (CPU_STAT_PM && (CPU_STAT_VM86 || (CPU_STAT_CPL > CPU_STAT_IOPL))) { | if (CPU_STAT_PM && (CPU_STAT_VM86 || (CPU_STAT_CPL > CPU_STAT_IOPL))) { |
| Line 104 cpu_out(WORD port, BYTE data) | Line 104 cpu_out(WORD port, BYTE data) |
| } | } |
| void | void |
| cpu_out_w(WORD port, WORD data) | cpu_out_w(UINT port, UINT16 data) |
| { | { |
| if (CPU_STAT_PM && (CPU_STAT_VM86 || (CPU_STAT_CPL > CPU_STAT_IOPL))) { | if (CPU_STAT_PM && (CPU_STAT_VM86 || (CPU_STAT_CPL > CPU_STAT_IOPL))) { |
| Line 114 cpu_out_w(WORD port, WORD data) | Line 114 cpu_out_w(WORD port, WORD data) |
| } | } |
| void | void |
| cpu_out_d(WORD port, DWORD data) | cpu_out_d(UINT port, UINT32 data) |
| { | { |
| if (CPU_STAT_PM && (CPU_STAT_VM86 || (CPU_STAT_CPL > CPU_STAT_IOPL))) { | if (CPU_STAT_PM && (CPU_STAT_VM86 || (CPU_STAT_CPL > CPU_STAT_IOPL))) { |