/*
 * Copyright (c) 1995-1997 Mark Brinicombe.
 * All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions
 * are met:
 * 1. Redistributions of source code must retain the above copyright
 *    notice, this list of conditions and the following disclaimer.
 * 2. Redistributions in binary form must reproduce the above copyright
 *    notice, this list of conditions and the following disclaimer in the
 *    documentation and/or other materials provided with the distribution.
 * 3. All advertising materials mentioning features or use of this software
 *    must display the following acknowledgement:
 *	This product includes software developed by Mark Brinicombe.
 * 4. The name of the company nor the name of the author may be used to
 *    endorse or promote products derived from this software without specific
 *    prior written permission.
 *
 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
 * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
 * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
 * THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 *
 * RiscBSD kernel project
 *
 * config.h
 *
 * Definitions of various config structures and symbols
 *
 * Created      : 26/04/95
 * Last updated : 20/06/97
 */

#ifndef __config_h
#define __config.h

#include "Wimp.h"

#define FILETYPE_DOS  0xfe4
#define FILETYPE_UNIX 0xfe6
#define FILETYPE_DATA 0xffd
#define FILETYPE_OBEY 0xfeb

typedef struct _Config {
	char kernel[256];
	char root_dev[16];
	char screenmode[32];
	char other[256];
	char riscos_fs[32];
	int riscos_drive;
	int max_proc;
	int ramdisc;
	int flags;
	int cpu_flags;
	int video_dram;
	int pmap_debug_level;
	char vidc_ops1[64];
	char vidc_ops2[64];
} Config;

#define FLAG_SINGLE	0x0001
#define FLAG_IPKDB	0x0002
#define FLAG_PMAP_DEBUG	0x0004
#define FLAG_NATIVE	0x0020
#define FLAG_SYMTAB	0x0040
#define FLAG_DDBBOOT	0x0080
#define FLAG_VIDC_OPS1	0x0100
#define FLAG_VIDC_OPS2	0x0200

#define CPU_FLAG_NOCACHE  0x01
#define CPU_FLAG_NOWRTBUF 0x02
#define CPU_FLAG_NOFPA    0x04
#define CPU_FLAG_FPA_CLK2 0x08

#define CONFIG_FILENAME		"<BtRiscBSD$dir>.Config"
#define FASTBOOT_FILENAME	"<BtRiscBSD$dir>.fastboot"

#define BOOTLOADER_FILENAME	"<BtRiscBSD$Dir>.BtRiscBSD"
#define NATIVE_MOUNT		"<BtRiscBSD$Dir>.native.mountufs"
#define NATIVE_PRESENT		NATIVE_MOUNT
#define PREBOOT_FILENAME	"<BtRiscBSD$Dir>.PreBoot"
#define EXTRAOPTS_FILENAME	"<BtRiscBSD$Dir>.ExtraOpts"
#endif

/* End of config.h */
