callbacks.h revision 677833bc953b6cb418c701facbdcf4aa18d6c44e
*
* This file provides the mechanisms for making calls from Etherboot
* to external programs and vice-versa.
*
* Initial version by Michael Brown <mbrown@fensystems.co.uk>, January 2004.
*
* $Id$
*/
#ifndef CALLBACKS_H
#define CALLBACKS_H
/* Opcodes and flags for in_call()
*/
#define EB_OPCODE(x) ( (x) & 0xffff )
#define EB_OPCODE_MAIN (0x0000)
/* Standard return codes
*/
/* Include arch-specific callbacks bits
*/
#include "callbacks_arch.h"
/* Skip the definitions that won't make sense to the assembler */
#ifndef ASSEMBLY
#include <stdarg.h>
#ifndef in_call_data_t
typedef struct {} empty_struct_t;
#define in_call_data_t empty_struct_t
#endif
#endif /* ASSEMBLY */
#endif /* CALLBACKS_H */