/* vim: set filetype=c:
 *
 **************************************************************************
 *
 * Boot-ROM-Code to load an operating system across a TCP/IP network.
 *
 * Module:  funcs.h86
 * Purpose: Definitions for PXE function tables
 * Entries: none
 *
 **************************************************************************
 *
 * Copyright (C) 2003-2007 Gero Kuhlmann <gero@gkminix.han.de>
 *
 *  This program is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation; either version 2 of the License, or
 *  any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program; if not, write to the Free Software
 *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 *
 * $Id: funcs.h86,v 1.5 2007/01/06 18:30:47 gkminix Exp $
 */

#ifndef HEADERS_FUNCS_H86
#define HEADERS_FUNCS_H86


/*
 **************************************************************************
 *
 * This file can only get included into target C source files.
 */
#if defined(_ASSEMBLY_) || !defined(_TARGET_) || !defined(_BOOTROM_)
# error This file can only get included into target C source files
#endif



/*
 **************************************************************************
 *
 * We need some includes before we can include this file
 */
#include <common.h86>



/*
 **************************************************************************
 *
 * Definition of jump tables to be used for the PXE interface
 */
struct funcentry {
	short           (*func)();	/* pointer to function handler */
	size_t            paramsize;	/* size of parameter structure */
};

struct functab {
	short             minfunc;	/* minimum function number */
	short             maxfunc;	/* maximum function number */
	struct funcentry  funcs[];	/* array of function pointers */
};

extern struct functab tftp_func_tab;	/* TFTP PXE functions */
extern struct functab udp_func_tab;	/* UDP PXE functions */


#endif

