io.h

来自「geekos 0.3.0简单的操作系统」· C头文件 代码 · 共 24 行

H
24
字号
/* * x86 port IO routines * Copyright (c) 2001, David H. Hovemeyer <daveho@cs.umd.edu> * $Revision: 1.9 $ *  * 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 <geekos/ktypes.h>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 IO_Delay(void);#endif  /* GEEKOS_IO_H */

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?