1N/A/*
1N/A * GRUB -- GRand Unified Bootloader
1N/A * Copyright (C) 1999,2000,2001,2002,2003,2004 Free Software Foundation, Inc.
1N/A *
1N/A * This program is free software; you can redistribute it and/or modify
1N/A * it under the terms of the GNU General Public License as published by
1N/A * the Free Software Foundation; either version 2 of the License, or
1N/A * (at your option) any later version.
1N/A *
1N/A * This program is distributed in the hope that it will be useful,
1N/A * but WITHOUT ANY WARRANTY; without even the implied warranty of
1N/A * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1N/A * GNU General Public License for more details.
1N/A *
1N/A * You should have received a copy of the GNU General Public License
1N/A * along with this program; if not, write to the Free Software
1N/A * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
1N/A */
1N/A
1N/A/*
1N/A * Transport layer to use Etherboot NIC drivers in GRUB.
1N/A */
1N/A
1N/A#ifndef ETHERBOOT_H
1N/A#define ETHERBOOT_H
1N/A
1N/A#include "shared.h"
1N/A#include "osdep.h"
1N/A#include "if_ether.h"
1N/A#include "in.h"
1N/A
1N/A/* Link configuration time in tenths of a second */
1N/A#ifndef VALID_LINK_TIMEOUT
1N/A#define VALID_LINK_TIMEOUT 100 /* 10.0 seconds */
1N/A#endif
1N/A
1N/A#ifndef NULL
1N/A#define NULL ((void *)0)
1N/A#endif
1N/A
1N/A
1N/A#define gateA20_set() gateA20(1)
1N/A#define gateA20_unset() gateA20(0)
1N/A#if !defined(__sun)
1N/A#define EBDEBUG 0
1N/A#endif
1N/A/* The 'rom_info' maybe arch depended. It must be moved to some other
1N/A * place */
1N/Astruct rom_info {
1N/A unsigned short rom_segment;
1N/A unsigned short rom_length;
1N/A};
1N/A
1N/Aextern void poll_interruptions P((void));
1N/A
1N/A/* For UNDI drivers */
1N/Aextern uint32_t get_free_base_memory ( void );
1N/Aextern void *allot_base_memory ( size_t );
1N/Aextern void forget_base_memory ( void*, size_t );
1N/Aextern void free_unused_base_memory ( void );
1N/A
1N/A#endif /* ETHERBOOT_H */