summaryrefslogtreecommitdiffstats
path: root/usr.bin/doscmd/ems.c
diff options
context:
space:
mode:
authortg <tg@FreeBSD.org>2001-08-03 10:47:56 +0000
committertg <tg@FreeBSD.org>2001-08-03 10:47:56 +0000
commit35c464f8db5c9063cd84d117cfee4f41f3a34d7d (patch)
treedbd198ff9f3b1109120093a7b905cdf730a13435 /usr.bin/doscmd/ems.c
parent0f2b8ea245e81d2c129d6319196108b8586bed63 (diff)
downloadFreeBSD-src-35c464f8db5c9063cd84d117cfee4f41f3a34d7d.zip
FreeBSD-src-35c464f8db5c9063cd84d117cfee4f41f3a34d7d.tar.gz
Fix warnings from `-Wmissing-prototypes'. Staticize.
Diffstat (limited to 'usr.bin/doscmd/ems.c')
-rw-r--r--usr.bin/doscmd/ems.c45
1 files changed, 20 insertions, 25 deletions
diff --git a/usr.bin/doscmd/ems.c b/usr.bin/doscmd/ems.c
index 92723ff..db16bc6 100644
--- a/usr.bin/doscmd/ems.c
+++ b/usr.bin/doscmd/ems.c
@@ -64,7 +64,7 @@
#include "ems.h"
/* Will be configurable */
-u_long ems_max_size = EMS_MAXSIZE * 1024;
+u_long ems_max_size = EMS_MAXSIZE * 1024;
u_long ems_frame_addr = EMS_FRAME_ADDR;
/*
@@ -113,30 +113,25 @@ struct copydesc {
/* Local prototypes */
-static int init_mapfile();
-static void map_page(u_long pagenum, u_char position, short handle,
- int unmaponly);
-static EMS_handle *get_new_handle(long npages);
-static void context_to_handle(short handle);
-static long find_next_free_handle();
-static short lookup_handle(Hname *hp);
-static void allocate_pages_to_handle(u_short handle, long npages);
-static void allocate_handle(short handle, long npages);
-static void reallocate_pages_to_handle(u_short handle, long npages);
-static void free_handle(short handle);
-static void free_pages_of_handle(short handle);
-static void restore_context(EMS_mapping_context *emc);
-static void save_context_to_dos(EMScontext *emp);
-static int check_saved_context(EMScontext *emp);
-static void *get_valid_pointer(u_short seg, u_short offs, u_long size);
-static u_long move_ems_to_conv(short handle, u_short src_seg,
- u_short src_offset, u_long dst_addr, u_long length);
-static u_long move_conv_to_ems(u_long src_addr, u_short dst_handle,
- u_short dst_seg, u_short dst_offset, u_long length);
-static u_long move_ems_to_ems(u_short src_hande, u_short src_seg,
- u_short src_offset, u_short dst_handle,
- u_short dst_seg, u_short dst_offset, u_long length);
-
+static int init_mapfile(void);
+static void map_page(u_long, u_char, short, int);
+static EMS_handle *get_new_handle(long);
+static void context_to_handle(short);
+static long find_next_free_handle(void);
+static short lookup_handle(Hname *hp);
+static void allocate_pages_to_handle(u_short, long);
+static void allocate_handle(short, long);
+static void reallocate_pages_to_handle(u_short, long);
+static void free_handle(short);
+static void free_pages_of_handle(short);
+static void restore_context(EMS_mapping_context *);
+static void save_context_to_dos(EMScontext *);
+static int check_saved_context(EMScontext *);
+static void *get_valid_pointer(u_short, u_short, u_long);
+static u_long move_ems_to_conv(short, u_short, u_short, u_long, u_long);
+static u_long move_conv_to_ems(u_long, u_short, u_short, u_short, u_long);
+static u_long move_ems_to_ems(u_short, u_short, u_short, u_short,
+ u_short, u_short, u_long);
/*
* EMS initialization routine: Return 1, if successful, return 0 if
OpenPOWER on IntegriCloud