Search
lxdream.org :: lxdream/src/bios.h :: diff
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 (14 years ago)
permissions -rw-r--r--
last change Add dummied-up BIOS syscalls
file annotate diff log raw
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/src/bios.h Sun Jan 22 22:40:53 2006 +0000
1.3 @@ -0,0 +1,45 @@
1.4 +/**
1.5 + * $Id: bios.h,v 1.1 2006-01-22 22:40:53 nkeynes Exp $
1.6 + *
1.7 + * "Fake" BIOS support, to allow basic functionality without the BIOS
1.8 + * actually being present.
1.9 + *
1.10 + * Copyright (c) 2005 Nathan Keynes.
1.11 + *
1.12 + * This program is free software; you can redistribute it and/or modify
1.13 + * it under the terms of the GNU General Public License as published by
1.14 + * the Free Software Foundation; either version 2 of the License, or
1.15 + * (at your option) any later version.
1.16 + *
1.17 + * This program is distributed in the hope that it will be useful,
1.18 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
1.19 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1.20 + * GNU General Public License for more details.
1.21 + */
1.22 +#ifndef dream_bios_H
1.23 +#define dream_bios_H 1
1.24 +
1.25 +#include <stdint.h>
1.26 +#include <glib/gtypes.h>
1.27 +
1.28 +#ifdef __cplusplus
1.29 +extern "C" {
1.30 +#endif
1.31 +
1.32 +/**
1.33 + * Execute a BIOS syscall identified by a syscall ID (currently the last
1.34 + * byte of the vector).
1.35 + */
1.36 +void bios_syscall( uint32_t syscallid );
1.37 +
1.38 +/**
1.39 + * Install the BIOS emu hack into ram (sets the vectors at 8C0000B0 through
1.40 + * 8C0000C0)
1.41 + */
1.42 +void bios_install( void );
1.43 +
1.44 +
1.45 +#ifdef __cplusplus
1.46 +}
1.47 +#endif
1.48 +#endif
.