/*-1* Copyright (c) 1998 Robert Nordier2* All rights reserved.3*4* Redistribution and use in source and binary forms are freely5* permitted provided that the above copyright notice and this6* paragraph and the following disclaimer are duplicated in all7* such forms.8*9* This software is provided "AS IS" and without any express or10* implied warranties, including, without limitation, the implied11* warranties of merchantability and fitness for a particular12* purpose.13*/1415#ifndef _RBX_H_16#define _RBX_H_1718#define RBX_ASKNAME 0x0 /* -a */19#define RBX_SINGLE 0x1 /* -s */20/* 0x2 is reserved for log2(RB_NOSYNC). */21/* 0x3 is reserved for log2(RB_HALT). */22/* 0x4 is reserved for log2(RB_INITNAME). */23#define RBX_DFLTROOT 0x5 /* -r */24#define RBX_KDB 0x6 /* -d */25/* 0x7 is reserved for log2(RB_RDONLY). */26/* 0x8 is reserved for log2(RB_DUMP). */27/* 0x9 is reserved for log2(RB_MINIROOT). */28#define RBX_CONFIG 0xa /* -c */29#define RBX_VERBOSE 0xb /* -v */30#define RBX_SERIAL 0xc /* -h */31#define RBX_CDROM 0xd /* -C */32/* 0xe is reserved for log2(RB_POWEROFF). */33#define RBX_GDB 0xf /* -g */34#define RBX_MUTE 0x10 /* -m */35/* 0x11 is reserved for log2(RB_SELFTEST). */36/* 0x12 is reserved for boot programs. */37/* 0x13 is reserved for boot programs. */38#define RBX_PAUSE 0x14 /* -p */39#define RBX_QUIET 0x15 /* -q */40#define RBX_NOINTR 0x1c /* -n */41/* 0x1d is reserved for log2(RB_MULTIPLE) and is just misnamed here. */42#define RBX_DUAL 0x1d /* -D */43/* 0x1f is reserved for log2(RB_BOOTINFO). */4445/* pass: -a, -s, -r, -d, -c, -v, -h, -C, -g, -m, -p, -D */46#define RBX_MASK (OPT_SET(RBX_ASKNAME) | OPT_SET(RBX_SINGLE) | \47OPT_SET(RBX_DFLTROOT) | OPT_SET(RBX_KDB ) | \48OPT_SET(RBX_CONFIG) | OPT_SET(RBX_VERBOSE) | \49OPT_SET(RBX_SERIAL) | OPT_SET(RBX_CDROM) | \50OPT_SET(RBX_GDB ) | OPT_SET(RBX_MUTE) | \51OPT_SET(RBX_PAUSE) | OPT_SET(RBX_DUAL))5253#define OPT_SET(opt) (1 << (opt))54#define OPT_CHECK(opt) ((opts) & OPT_SET(opt))5556extern uint32_t opts;5758#endif /* !_RBX_H_ */596061