X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?p=palacios.git;a=blobdiff_plain;f=geekos%2Finclude%2Fgeekos%2Fio.h;fp=geekos%2Finclude%2Fgeekos%2Fio.h;h=230300b797c31d40c303b3a67669cac30262871d;hp=0000000000000000000000000000000000000000;hb=ddc16b0737cf58f7aa90a69c6652cdf4090aec51;hpb=626595465a2c6987606a6bc697df65130ad8c2d3 diff --git a/geekos/include/geekos/io.h b/geekos/include/geekos/io.h new file mode 100644 index 0000000..230300b --- /dev/null +++ b/geekos/include/geekos/io.h @@ -0,0 +1,26 @@ +/* + * x86 port IO routines + * Copyright (c) 2001, David H. Hovemeyer + * $Revision: 1.2 $ + * + * This is free software. You are permitted to use, + * redistribute, and modify it as specified in the file "COPYING". + */ + +#ifndef GEEKOS_IO_H +#define GEEKOS_IO_H + +#include + +void Out_Byte(ushort_t port, uchar_t value); +uchar_t In_Byte(ushort_t port); + +void Out_Word(ushort_t port, ushort_t value); +ushort_t In_Word(ushort_t port); + +void Out_DWord(ushort_t port, uint_t value); +uint_t In_DWord(ushort_t port); + +void IO_Delay(void); + +#endif /* GEEKOS_IO_H */