Deleted Added
full compact
x86bios.h (197444) x86bios.h (197466)
1/*-
2 * Written by paradox <ddkprog@yahoo.com>
3 * Public domain.
4 *
5 * x86 registers were borrowed from x86emu.h x86emu_regs.h
6 * for compatability.
7 *
1/*-
2 * Written by paradox <ddkprog@yahoo.com>
3 * Public domain.
4 *
5 * x86 registers were borrowed from x86emu.h x86emu_regs.h
6 * for compatability.
7 *
8 * $FreeBSD: head/sys/compat/x86bios/x86bios.h 197383 2009-09-21 08:17:57Z delphij $
8 * $FreeBSD: head/sys/compat/x86bios/x86bios.h 197466 2009-09-24 19:24:42Z jkim $
9 */
10
11#ifndef _X86BIOS_H_
12#define _X86BIOS_H_
13
14#include <sys/types.h>
15#include <sys/endian.h>
16#include <sys/systm.h>

--- 107 unchanged lines hidden (view full) ---

124#define SEG_ADDR(x) (((x) >> 4) & 0x00F000)
125#define SEG_OFF(x) ((x) & 0x0FFFF)
126#define FARP(x) ((le32toh(x) & 0xffff) + ((le32toh(x) >> 12) & 0xffff00))
127
128#define MAPPED_MEMORY_SIZE 0xc00000
129#define PAGE_RESERV (4096*5)
130
131__BEGIN_DECLS
9 */
10
11#ifndef _X86BIOS_H_
12#define _X86BIOS_H_
13
14#include <sys/types.h>
15#include <sys/endian.h>
16#include <sys/systm.h>

--- 107 unchanged lines hidden (view full) ---

124#define SEG_ADDR(x) (((x) >> 4) & 0x00F000)
125#define SEG_OFF(x) ((x) & 0x0FFFF)
126#define FARP(x) ((le32toh(x) & 0xffff) + ((le32toh(x) >> 12) & 0xffff00))
127
128#define MAPPED_MEMORY_SIZE 0xc00000
129#define PAGE_RESERV (4096*5)
130
131__BEGIN_DECLS
132void x86biosCall(struct x86regs *regs, int intno);
133void *x86biosAlloc(int count, int *segs);
134void x86biosFree(void *pbuf, int count);
135void *x86biosOffs(uint32_t offs);
132void *x86bios_alloc(int count, int *segs);
133void x86bios_free(void *pbuf, int count);
134void x86bios_intr(struct x86regs *regs, int intno);
135void *x86bios_offset(uint32_t offs);
136__END_DECLS
137
138#endif /* !_X86BIOS_H_ */
136__END_DECLS
137
138#endif /* !_X86BIOS_H_ */