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