NetBSD/sys/arch/sun68k/stand/libsa/bbinfo.h

42 lines
1.4 KiB
C

/* $NetBSD: bbinfo.h,v 1.1 2001/12/15 23:09:51 fredette Exp $ */
/*
* Copyright (c) 1995, 1996 Carnegie-Mellon University.
* All rights reserved.
*
* Author: Chris G. Demetriou
*
* Permission to use, copy, modify and distribute this software and
* its documentation is hereby granted, provided that both the copyright
* notice and this permission notice appear in all copies of the
* software, derivative works or modified versions, and any portions
* thereof, and that both notices appear in supporting documentation.
*
* CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
* CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND
* FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
*
* Carnegie Mellon requests users of this software to return to
*
* Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU
* School of Computer Science
* Carnegie Mellon University
* Pittsburgh PA 15213-3890
*
* any improvements or extensions that they make and grant Carnegie the
* rights to redistribute these changes.
*/
#define MAXBLOCKNUM 64 /* enough for a 32K boot program (bs 512) */
/* Magic string -- 32 bytes long (including the NUL) */
#define BBINFO_MAGIC "NetBSD/sun68k bootxx "
#define BBINFO_MAGICSIZE sizeof(BBINFO_MAGIC)
struct bbinfo {
uint8_t bbi_magic[BBINFO_MAGICSIZE];
int32_t bbi_block_size;
int32_t bbi_block_count;
int32_t bbi_block_table[MAXBLOCKNUM];
};