Adding upstream version 4.00~pre53+dfsg.
[syslinux-debian/hramrach.git] / core / pmapi.c
blob3313ceafbe6c1d826da9caacb365e80cab5f1347
1 /* -----------------------------------------------------------------------
3 * Copyright 1994-2009 H. Peter Anvin - All Rights Reserved
4 * Copyright 2009-2010 Intel Corporation; author: H. Peter Anvin
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation, Inc., 53 Temple Place Ste 330,
9 * Boston MA 02111-1307, USA; either version 2 of the License, or
10 * (at your option) any later version; incorporated herein by reference.
12 * ----------------------------------------------------------------------- */
14 #include <inttypes.h>
15 #include <com32.h>
16 #include <syslinux/pmapi.h>
17 #include "core.h"
18 #include "fs.h"
20 const struct com32_pmapi pm_api_vector =
22 .lmalloc = pmapi_lmalloc, /* Allocate low memory */
23 .lfree = free, /* Free low memory */
25 .open_file = open_file,
26 .read_file = pmapi_read_file,
27 .close_file = close_file,
29 .opendir = opendir,
30 .readdir = readdir,
31 .closedir = closedir,
33 .idle = __idle,
34 .reset_idle = reset_idle,