Logo Search packages:      
Sourcecode: vbetool version File versions  Download package

x86-common.h

/*
Common routines for x86emu/lrmi interfaces. Taken from lrmi.c.

Copyright (C) 1998 by Josh Vanderhoof
Copyright (C) 2005 by Jonathan McDowell <noodles@earth.li>

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL JOSH VANDERHOOF BE LIABLE FOR ANY CLAIM, DAMAGES OR
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.
*/

#include <stdio.h>
#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/mman.h>
#include <unistd.h>
#include <fcntl.h>

#include "include/lrmi.h"

#define REAL_MEM_BASE   ((void *)0x10000)
#define REAL_MEM_SIZE   0x40000
#define REAL_MEM_BLOCKS       0x100

void *LRMI_alloc_real(int size);
void LRMI_free_real(void *m);
int LRMI_common_init(void);

Generated by  Doxygen 1.6.0   Back to index