|
|
| version 1.2, 2004/02/20 16:09:04 | version 1.5, 2011/12/21 18:02:47 |
|---|---|
| Line 1 | Line 1 |
| /* $Id$ */ | |
| /* | /* |
| * Copyright (c) 2003 NONAKA Kimihiro | * Copyright (c) 2003 NONAKA Kimihiro |
| * All rights reserved. | * All rights reserved. |
| Line 12 | Line 10 |
| * 2. Redistributions in binary form must reproduce the above copyright | * 2. Redistributions in binary form must reproduce the above copyright |
| * notice, this list of conditions and the following disclaimer in the | * notice, this list of conditions and the following disclaimer in the |
| * documentation and/or other materials provided with the distribution. | * documentation and/or other materials provided with the distribution. |
| * 3. The name of the author may not be used to endorse or promote products | |
| * derived from this software without specific prior written permission. | |
| * | * |
| * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR |
| * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES | * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES |
| Line 30 | Line 26 |
| #ifndef IA32_CPU_CPU_IO_H__ | #ifndef IA32_CPU_CPU_IO_H__ |
| #define IA32_CPU_CPU_IO_H__ | #define IA32_CPU_CPU_IO_H__ |
| #include "interface.h" | |
| #ifdef __cplusplus | #ifdef __cplusplus |
| extern "C" { | extern "C" { |
| #endif | #endif |
| UINT8 cpu_in(UINT port); | UINT8 IOINPCALL cpu_in(UINT port); |
| UINT16 cpu_in_w(UINT port); | UINT16 IOINPCALL cpu_in_w(UINT port); |
| UINT32 cpu_in_d(UINT port); | UINT32 IOINPCALL cpu_in_d(UINT port); |
| void cpu_out(UINT port, UINT8 val); | void IOOUTCALL cpu_out(UINT port, UINT8 val); |
| void cpu_out_w(UINT port, UINT16 val); | void IOOUTCALL cpu_out_w(UINT port, UINT16 val); |
| void cpu_out_d(UINT port, UINT32 val); | void IOOUTCALL cpu_out_d(UINT port, UINT32 val); |
| #ifdef __cplusplus | #ifdef __cplusplus |
| } | } |