/*
 * loader.i86  -  Define the PXE loader parameter structures
 *
 * 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: loader.i86,v 1.5 2007/01/06 18:31:04 gkminix Exp $
 */

#ifndef PXE_LOADER_I86
#define PXE_LOADER_I86


/*
 * This file can only get included into target assembler source files.
 */
#define GAS_INCLUDE
#include <compiler.h>



/*
 **************************************************************************
 *
 * This file contains the loader paraneter structures as per Intels PXE
 * specification version 2.1.
 *
 **************************************************************************
 */


/*
 **************************************************************************
 *
 * Definition of base code loader structure:
 */

			.struct	0

o_bcl_status:		.struct	.+2	/* Out: status */
o_bcl_ax:		.struct	.+2	/* In: PCI PFA */
o_bcl_bx:		.struct	.+2	/* In: PnP CSN */
o_bcl_dx:		.struct	.+2	/* In: PnP data port */
o_bcl_pnp_ptr:
o_bcl_di:		.struct	.+2	/* In: Offset to PnP inst. struct. */
o_bcl_es:		.struct	.+2	/* In: Segment of PnP inst. struct. */
o_bcl_undi_romid:	.struct	.+4	/* In: Far ptr. to UNDI ROMID */

#define bc_loader_size		16	/* size of loader structure */



/*
 **************************************************************************
 *
 * Definition of UNDI loader structure:
 */

			.struct	0

o_ul_status:		.struct	.+2	/* Out: status */
o_ul_ax:		.struct	.+2	/* In: PCI PFA */
o_ul_bx:		.struct	.+2	/* In: PnP CSN */
o_ul_dx:		.struct	.+2	/* In: PnP data port */
o_ul_pnp_ptr:
o_ul_di:		.struct	.+2	/* In: Offset to PnP inst. struct. */
o_ul_es:		.struct	.+2	/* In: Segment of PnP inst. struct. */
o_ul_undi_ds:		.struct	.+2	/* In: UNDI data segment */
o_ul_undi_cs:		.struct	.+2	/* In: UNDI code segment */
o_ul_pxeptr:		.struct	.+4	/* Out: Far ptr. to !PXE structure */
o_ul_pxenvptr:		.struct	.+4	/* Out: Far Ptr. to PXENV+ structure */

#define undi_loader_size	24	/* size of loader structure */

#endif

