Port In/Out 기능을 위한 함수 인터페이스를 정의한다.
더 자세히 ...
|
| void | outdw (unsigned short port, unsigned long dword) |
| | Double word 크기의 데이터를 지정된 포트에 쓴다. 더 자세히 ...
|
| |
| void | outw (unsigned short port, unsigned short word) |
| | Word 크기의 데이터를 지정된 포트에 쓴다. 더 자세히 ...
|
| |
| void | outb (unsigned short port, unsigned char byte) |
| | byte 크기의 데이터를 지정도니 포트에 쓴다. 더 자세히 ...
|
| |
| unsigned long | indw (unsigned short port) |
| | double word 크기의 데이트를 지정된 포트에서 읽는다. 더 자세히 ...
|
| |
| unsigned short | inw (unsigned short port) |
| | word 크기의 데이터를 지정된 포트에서 읽는다. 더 자세히 ...
|
| |
| unsigned char | inb (unsigned short port) |
| | byte 크기의 데이터를 지정된 포트에서 읽는다. 더 자세히 ...
|
| |
Port In/Out 기능을 위한 함수 인터페이스를 정의한다.
- 작성자
- Sung-jae Park nices.nosp@m.j@ni.nosp@m.cesj..nosp@m.com
- 날짜
- 2011-7-20
CPU 의 In/Out 핀에 대한 접근을 위한 인터페이스를 정의하고, 구현은 각 architecture 에 맞게 구현한다.
- 주의
- : 최근 GCC(버전 3 이상) 부터는 입력과 출력으로 사용된 레지스터 들은 모두 clobbered list 에 자동으로 포함되므로 clobber list에 명시해줄 필요는 없다. (inline assembly code 에서)
| unsigned char inb |
( |
unsigned short |
port) | |
|
|
inline |
byte 크기의 데이터를 지정된 포트에서 읽는다.
- 매개변수
-
- 반환값
- 읽어온 byte 크기의 데이터
| unsigned long indw |
( |
unsigned short |
port) | |
|
|
inline |
double word 크기의 데이트를 지정된 포트에서 읽는다.
- 매개변수
-
- 반환값
- 읽어온 double word 크기의 데이터
| unsigned short inw |
( |
unsigned short |
port) | |
|
|
inline |
word 크기의 데이터를 지정된 포트에서 읽는다.
- 매개변수
-
- 반환값
- 읽어온 word 크기의 데이터
| void outb |
( |
unsigned short |
port, |
|
|
unsigned char |
byte |
|
) |
| |
|
inline |
byte 크기의 데이터를 지정도니 포트에 쓴다.
- 매개변수
-
| [in] | port | 포트번호 |
| [in] | byte | byte 크기의 데이터 |
- 반환값
- 없음
| void outdw |
( |
unsigned short |
port, |
|
|
unsigned long |
dword |
|
) |
| |
|
inline |
Double word 크기의 데이터를 지정된 포트에 쓴다.
- 매개변수
-
| [in] | port | 포트번호 |
| [in] | dword | double word 크기의 데이터 |
- 반환값
- 없음
- 참고
- indw()
| void outw |
( |
unsigned short |
port, |
|
|
unsigned short |
word |
|
) |
| |
|
inline |
Word 크기의 데이터를 지정된 포트에 쓴다.
- 매개변수
-
| [in] | port | 포트번호 |
| [in] | word | word 크기의 데이터 |
- 반환값
- 없음