Main Page | Data Structures | File List | Data Fields | Globals

nextfcode.h

Go to the documentation of this file.
00001 #ifndef _TOKE_NEXTFCODE_H
00002 #define _TOKE_NEXTFCODE_H
00003 
00004 /*
00005  *                     OpenBIOS - free your system!
00006  *                         ( FCode tokenizer )
00007  *
00008  *  This program is part of a free implementation of the IEEE 1275-1994
00009  *  Standard for Boot (Initialization Configuration) Firmware.
00010  *
00011  *  Copyright (C) 2001-2005 Stefan Reinauer, <stepan@openbios.org>
00012  *
00013  *  This program is free software; you can redistribute it and/or modify
00014  *  it under the terms of the GNU General Public License as published by
00015  *  the Free Software Foundation; version 2 of the License.
00016  *
00017  *  This program is distributed in the hope that it will be useful,
00018  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00019  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00020  *  GNU General Public License for more details.
00021  *
00022  *  You should have received a copy of the GNU General Public License
00023  *  along with this program; if not, write to the Free Software
00024  *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA, 02110-1301 USA
00025  *
00026  */
00027 
00028 /* **************************************************************************
00029  *
00030  *      Function Prototypes for Managing FCode Assignment Pointer 
00031  *         and for Detection of Overlapping-FCode Error in Tokenizer
00032  *
00033  *      (C) Copyright 2006 IBM Corporation.  All Rights Reserved.
00034  *      Module Author:  David L. Paktor    dlpaktor@us.ibm.com
00035  *
00036  **************************************************************************** */
00037 
00038 #include "types.h"
00039 
00040 
00041 /* ************************************************************************** *
00042  *
00043  *      Global Variables Exported
00044  *
00045  **************************************************************************** */
00046 
00047 extern u16  nextfcode;         /*  The next FCode-number to be assigned      */
00048 
00049 
00050 /* ************************************************************************** *
00051  *
00052  *      Function Prototypes / Functions Exported:
00053  *
00054  **************************************************************************** */
00055 
00056 void reset_fcode_ranges( void);
00057 void list_fcode_ranges( bool final_tally);
00058 void set_next_fcode( u16  new_fcode);
00059 void assigning_fcode( void);
00060 void bump_fcode( void);
00061 
00062 /* **************************************************************************
00063  *
00064  *          Macros:
00065  *
00066  *          FCODE_START             Standard-specified starting number for
00067  *                                      user-generated FCodes.
00068  *
00069  *          FCODE_LIMIT             Standard-specified maximum number for
00070  *                                      FCodes of any origin.
00071  *
00072  *      I know these are not likely to change, but I still feel better
00073  *          making them named symbols, just on General Principles...
00074  *
00075  **************************************************************************** */
00076 
00077 #define FCODE_START  0x0800
00078 #define FCODE_LIMIT  0x0fff
00079 
00080 #endif   /*  _TOKE_NEXTFCODE_H    */

Generated on Fri Aug 18 14:03:39 2006 for Toke1.0 by  doxygen 1.4.4