Search
lxdream.org :: lxdream/src/bios.h
lxdream 0.9.1
released Jun 29
Download Now
filename src/bios.h
changeset 87:11208d725b61
author nkeynes
date Sun Jan 22 22:40:53 2006 +0000 (15 years ago)
permissions -rw-r--r--
last change Add dummied-up BIOS syscalls
file annotate diff log raw
nkeynes@87
     1
/**
nkeynes@87
     2
 * $Id: bios.h,v 1.1 2006-01-22 22:40:53 nkeynes Exp $
nkeynes@87
     3
 * 
nkeynes@87
     4
 * "Fake" BIOS support, to allow basic functionality without the BIOS
nkeynes@87
     5
 * actually being present.
nkeynes@87
     6
 *
nkeynes@87
     7
 * Copyright (c) 2005 Nathan Keynes.
nkeynes@87
     8
 *
nkeynes@87
     9
 * This program is free software; you can redistribute it and/or modify
nkeynes@87
    10
 * it under the terms of the GNU General Public License as published by
nkeynes@87
    11
 * the Free Software Foundation; either version 2 of the License, or
nkeynes@87
    12
 * (at your option) any later version.
nkeynes@87
    13
 *
nkeynes@87
    14
 * This program is distributed in the hope that it will be useful,
nkeynes@87
    15
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
nkeynes@87
    16
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
nkeynes@87
    17
 * GNU General Public License for more details.
nkeynes@87
    18
 */
nkeynes@87
    19
#ifndef dream_bios_H
nkeynes@87
    20
#define dream_bios_H 1
nkeynes@87
    21
nkeynes@87
    22
#include <stdint.h>
nkeynes@87
    23
#include <glib/gtypes.h>
nkeynes@87
    24
nkeynes@87
    25
#ifdef __cplusplus
nkeynes@87
    26
extern "C" {
nkeynes@87
    27
#endif
nkeynes@87
    28
nkeynes@87
    29
/**
nkeynes@87
    30
 * Execute a BIOS syscall identified by a syscall ID (currently the last
nkeynes@87
    31
 * byte of the vector).
nkeynes@87
    32
 */
nkeynes@87
    33
void bios_syscall( uint32_t syscallid );
nkeynes@87
    34
nkeynes@87
    35
/**
nkeynes@87
    36
 * Install the BIOS emu hack into ram (sets the vectors at 8C0000B0 through 
nkeynes@87
    37
 * 8C0000C0)
nkeynes@87
    38
 */
nkeynes@87
    39
void bios_install( void );
nkeynes@87
    40
nkeynes@87
    41
nkeynes@87
    42
#ifdef __cplusplus
nkeynes@87
    43
}
nkeynes@87
    44
#endif
nkeynes@87
    45
#endif
.