;
; extern.inc
;
; Prototypes for external functions

%ifndef EXTERN_INC
%define EXTERN_INC

	; rllpack.c
	extern rllpack, rllunpack

	; hello.c
	extern hello

	;abort.c
	extern abort_load_new

	; elflink/load_env32.c
	extern load_env32, pm_env32_run

	; memscan.c
	extern highmem_init

	extern linux_kernel

	extern mp1, mp2, mp3, mp4, mp5

	extern hexdump, mydump

	extern mem_init

	; fs.c
	extern pm_fs_init, pm_searchdir, getfssec, getfsbytes
	extern pm_mangle_name, pm_load_config
        extern pm_open_file, pm_close_file
	extern SectorSize, SectorShift

	; chdir.c
	extern pm_realpath

        ; readdir.c
        extern opendir, readdir, closedir

	; newconfig.c
	extern pm_is_config_file

%ifdef DEBUG
	; debug.c
	extern pm_debug_msg

  %macro dprint 1+
	push ax
	call %%fwd
	db %1
	db 0
%%fwd:	pop ax
	pm_call pm_debug_msg
	pop ax
  %endmacro
%else
  %macro dprint 1+
  %endmacro
%endif

%if IS_PXELINUX
	; pxe.c
	extern unload_pxe, reset_pxe, http_bake_cookies
%endif

	; plaincon.c
	extern pm_writechr

	; cleanup.c
	extern cleanup_hardware

	; writestr.c
	extern pm_writestr, crlf

	; writehex.c
	extern pm_writehex2, pm_writehex4, pm_writehex8

	; graphics.c
	extern syslinux_force_text_mode, vgashowcursor, vgahidecursor, pm_using_vga

	; conio.c
	extern pm_pollchar, pm_write_serial, pm_serialcfg

	; font.c
	extern pm_getchar, pm_adjust_screen, pm_userfont

	; localboot.c
	extern pm_local_boot

%endif ; EXTERN_INC
