Move freeldr to reactos\boot\freeldr.
[reactos.git] / reactos / boot / freeldr / freeldr / include / portio.h
1 /*
2 * FreeLoader
3 * Copyright (C) 2001 Brian Palmer <brianp@sginet.com>
4 * Copyright (C) 2001 Eric Kohl
5 * Copyright (C) 2001 Emanuele Aliberti
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
20 */
21
22 #ifndef __PORTIO_H
23 #define __PORTIO_H
24
25 /*
26 * Port I/O functions
27 */
28
29 VOID
30 /*STDCALL*/
31 READ_PORT_BUFFER_UCHAR (PUCHAR Port, PUCHAR Value, U32 Count);
32
33 VOID
34 /*STDCALL*/
35 READ_PORT_BUFFER_ULONG (U32* Port, U32* Value, U32 Count);
36
37 VOID
38 /*STDCALL*/
39 READ_PORT_BUFFER_USHORT (U16* Port, U16* Value, U32 Count);
40
41 UCHAR
42 /*STDCALL*/
43 READ_PORT_UCHAR (PUCHAR Port);
44
45 U32
46 /*STDCALL*/
47 READ_PORT_ULONG (U32* Port);
48
49 U16
50 /*STDCALL*/
51 READ_PORT_USHORT (U16* Port);
52
53 VOID
54 /*STDCALL*/
55 WRITE_PORT_BUFFER_UCHAR (PUCHAR Port, PUCHAR Value, U32 Count);
56
57 VOID
58 /*STDCALL*/
59 WRITE_PORT_BUFFER_ULONG (U32* Port, U32* Value, U32 Count);
60
61 VOID
62 /*STDCALL*/
63 WRITE_PORT_BUFFER_USHORT (U16* Port, U16* Value, U32 Count);
64
65 VOID
66 /*STDCALL*/
67 WRITE_PORT_UCHAR (PUCHAR Port, UCHAR Value);
68
69 VOID
70 /*STDCALL*/
71 WRITE_PORT_ULONG (U32* Port, U32 Value);
72
73 VOID
74 /*STDCALL*/
75 WRITE_PORT_USHORT (U16* Port, U16 Value);
76
77
78 #endif // defined __PORTIO_H