ncloader  0.1
 모두 데이타 구조 파일들 함수 변수 타입정의 열거형 타입 열거형 멤버 매크로 그룹들 페이지들
Video Controller

x86 전용 비디오 메모리 접근을 위한 함수 인터페이스를 정의한다. 더 자세히 ...

+ Video Controller에 대한 협력 다이어그램:

함수

int video_seek (int handle __UNUSED, int offset, int whence)
 
int video_read (int handle __UNUSED, char *buffer, int size)
 
int video_write (int handle __UNUSED, const char *buffer, int size)
 
int video_ctrl (int handle, int cmd, va_list ap)
 
int video_init (void)
 

상세한 설명

x86 전용 비디오 메모리 접근을 위한 함수 인터페이스를 정의한다.

작성자
Sung-jae Park nices.nosp@m.j@ni.nosp@m.cesj..nosp@m.com
날짜
2011-7-20

VGA Video ram 영역은 비디오 디바이스와 직접 연관된 부분으로 Device mapped memory area 라고 볼 수 있다. 해당 주소에 값을 쓰거나 읽으면 Video Device 에 값을 쓰고/읽는 것 처럼 동작하며, 결국 연결된 모니터로 출력된다.

80x25 크기의 기본 텍스트 모드를 위해 mapping 된 영역은 0xb8000 부터이다. 텍스트와 텍스트의 속성을 표현하기 위해 한 칸에 2 Bytes 씩 할당된다.

Real mode 에서는 0xb800:0000 으로 접근이 가능하다. Protected mode 에서는 Linear address 로 0xb8000 이 된다.

함수 문서화

int video_ctrl ( int  handle,
int  cmd,
va_list  ap 
)
int video_init ( void  )

+ 이 함수 내부에서 호출하는 함수들에 대한 그래프입니다.:

+ 이 함수를 호출하는 함수들에 대한 그래프입니다.:

int video_read ( int handle  __UNUSED,
char *  buffer,
int  size 
)
int video_seek ( int handle  __UNUSED,
int  offset,
int  whence 
)
int video_write ( int handle  __UNUSED,
const char *  buffer,
int  size 
)