#include <agnix/init.h>
#include <agnix/display.h>
#include <agnix/ioport.h>
Include dependency graph for textdisp.c:
Go to the source code of this file.
Defines | |
#define | TEXT_DISP_BASE_ADDR 0xb8000 |
Functions | |
int | textdisp_putc (struct display_s *disp, char c, int pos_x, int pos_y, char color) |
int | textdisp_init (void) |
int __init | adi_text_display_init (void) |
Variables | |
display_s | text_display |
display_ops_s | text_display_ops |
|
Definition at line 18 of file textdisp.c. Referenced by adi_text_display_init(). |
|
Definition at line 48 of file textdisp.c. References TEXT_DISP_BASE_ADDR, text_display, text_display_ops, textdisp_init(), and textdisp_putc(). Referenced by adi_console_init(). 00049 { 00050 text_display_ops.init = textdisp_init; 00051 text_display_ops.putc = textdisp_putc; 00052 00053 text_display.disp_base_addr = (char *)TEXT_DISP_BASE_ADDR; 00054 text_display.disp_size_x = 80; 00055 text_display.disp_size_y = 25; 00056 text_display.ops = &text_display_ops; 00057 00058 textdisp_init(); 00059 00060 return 0; 00061 }
Here is the call graph for this function: |
|
Definition at line 34 of file textdisp.c. Referenced by adi_text_display_init(). 00035 { 00036 int i; 00037 00038 for (i = 0; i < 16; i++) { 00039 inb(0x3da); 00040 outb(i, 0x3c0); 00041 outb(i, 0x3c0); 00042 } 00043 outb(0x20, 0x3c0); 00044 00045 return 0; 00046 }
|
|
Definition at line 23 of file textdisp.c. Referenced by adi_text_display_init(). 00024 { 00025 int size_x = disp->disp_size_x; 00026 char *addr = (char *)(disp->disp_base_addr) + ((pos_y * size_x + pos_x) << 1); 00027 00028 *addr = c; 00029 *(addr + 1) = color; 00030 00031 return 0; 00032 }
|
|
Definition at line 20 of file textdisp.c. Referenced by adi_text_display_init(). |
|
Definition at line 21 of file textdisp.c. Referenced by adi_text_display_init(). |