Mercurial > sos > sos
view include/system.h @ 42:c75be274ce23
Now functioning arch code
author | Josef 'Jeff' Sipek <jeffpc@josefsipek.net> |
---|---|
date | Thu, 07 Apr 2011 23:29:10 -0400 |
parents | 40af39d064fa |
children | 9cec88f4c98b |
line wrap: on
line source
#ifndef __SYSTEM_H #define __SYSTEM_H /* this is the device number for the console device, do not change */ #define CON_DEV 0x0009 #define NULL ((void*) 0) typedef unsigned long long u64; typedef signed long long s64; typedef unsigned int u32; typedef signed int s32; typedef unsigned short u16; typedef signed short s16; typedef unsigned char u8; typedef signed char s8; #ifdef __cplusplus extern "C" { #endif extern void init_io_int(void); extern void init_console(void); extern int putline(char *buf, int len); extern int getline(char *buf, int len); extern u32 find_dev(int devnum); extern int fba_read_blk(u32 dev, u32 blkno, void *ptr); extern int fba_write_blk(u32 dev, u32 blkno, void *ptr); #ifdef __cplusplus } #endif #endif