nckernel  0.1
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
video.c File Reference
#include <slibc.h>
#include <sys/types.h>
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include <stddef.h>
#include <stdarg.h>
#include <stropts.h>
#include <fcntl.h>
#include <stdint.h>
#include <unistd.h>
#include <object.h>
#include <list.h>
#include <vfs.h>
#include <device.h>
#include <video.h>
#include <debug.h>
Include dependency graph for video.c:

Go to the source code of this file.

Data Structures

struct  info
 VMA 가 Enable 된 이후에 사용 가능한 전역 변수임 More...
 

Macros

#define MAX_COLUMN   80
 
#define MAX_SIZE   2000
 
#define TAB_SIZE   7
 
#define VIDEO_BUFFER   ((char *)0xb8000)
 

Functions

int video_close (struct ninfo *ninfo, struct nctx *ctx)
 
int video_init (void)
 
int video_ioctl (struct ninfo *ninfo, struct nctx *ctx, int request, va_list ap)
 
off_t video_lseek (struct ninfo *ninfo, struct nctx *ctx, off_t off, int whence)
 
int video_open (struct ninfo *ninfo, struct nctx *ctx)
 
int video_read (struct ninfo *ninfo, struct nctx *ctx, void *buf, size_t size)
 
int video_write (struct ninfo *ninfo, struct nctx *ctx, const void *buf, size_t size)
 

Macro Definition Documentation

#define MAX_COLUMN   80

Definition at line 23 of file video.c.

Referenced by video_write().

#define MAX_SIZE   2000

Definition at line 22 of file video.c.

Referenced by video_init(), and video_write().

#define TAB_SIZE   7

Definition at line 21 of file video.c.

#define VIDEO_BUFFER   ((char *)0xb8000)

Definition at line 24 of file video.c.

Referenced by video_open().

Function Documentation

int video_close ( struct ninfo ninfo,
struct nctx ctx 
)

Definition at line 161 of file video.c.

References free(), NULL, and nctx::priv.

Here is the call graph for this function:

int video_ioctl ( struct ninfo ninfo,
struct nctx ctx,
int  request,
va_list  ap 
)

Definition at line 138 of file video.c.

References ENOSYS.

off_t video_lseek ( struct ninfo ninfo,
struct nctx ctx,
off_t  off,
int  whence 
)

Definition at line 32 of file video.c.

References EINVAL, nctx::offset, SEEK_CUR, SEEK_END, SEEK_SET, and ninfo::size.

int video_open ( struct ninfo ninfo,
struct nctx ctx 
)

Definition at line 143 of file video.c.

References info::attribute, info::auto_scroll, ENOMEM, malloc(), nctx::offset, nctx::priv, info::video, and VIDEO_BUFFER.

Here is the call graph for this function:

int video_read ( struct ninfo ninfo,
struct nctx ctx,
void *  buf,
size_t  size 
)

Definition at line 55 of file video.c.

References buffer, nctx::offset, nctx::priv, ninfo::size, and info::video.

int video_write ( struct ninfo ninfo,
struct nctx ctx,
const void *  buf,
size_t  size 
)