#include <async.h>
#include <sysinfo.h>
#include <as.h>
#include <errno.h>
#include <stdio.h>
#include <ddi.h>
#include "serial_console.h"
#include "sgcn.h"
Go to the source code of this file.
Data Structures | |
struct | sgcn_buffer_header_t |
SGCN buffer header. More... | |
Defines | |
#define | HEIGHT 24 |
#define | SGCN_BUFFER(type, offset) ((type *) (sram_virt_addr + sram_buffer_offset + (offset))) |
#define | SGCN_BUFFER_HEADER (SGCN_BUFFER(sgcn_buffer_header_t, 0)) |
Returns a pointer to the console buffer header. | |
#define | WIDTH 80 |
Functions | |
int | sgcn_init (void) |
Initializes the SGCN serial driver. | |
static void | sgcn_putc (char c) |
Pushes the character to the SGCN serial. | |
Variables | |
static uintptr_t | sram_buffer_offset |
SGCN buffer offset within SGCN. | |
static uintptr_t | sram_virt_addr |
Virtual address mapped to SRAM. |
Definition in file sgcn.c.