1*c188bc0cScgd /* $NetBSD: bbinfo.h,v 1.1 2002/11/09 06:20:39 cgd Exp $ */ 2*c188bc0cScgd 3*c188bc0cScgd /* 4*c188bc0cScgd * Copyright (c) 1995, 1996 Carnegie-Mellon University. 5*c188bc0cScgd * All rights reserved. 6*c188bc0cScgd * 7*c188bc0cScgd * Author: Chris G. Demetriou 8*c188bc0cScgd * 9*c188bc0cScgd * Permission to use, copy, modify and distribute this software and 10*c188bc0cScgd * its documentation is hereby granted, provided that both the copyright 11*c188bc0cScgd * notice and this permission notice appear in all copies of the 12*c188bc0cScgd * software, derivative works or modified versions, and any portions 13*c188bc0cScgd * thereof, and that both notices appear in supporting documentation. 14*c188bc0cScgd * 15*c188bc0cScgd * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS" 16*c188bc0cScgd * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND 17*c188bc0cScgd * FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE. 18*c188bc0cScgd * 19*c188bc0cScgd * Carnegie Mellon requests users of this software to return to 20*c188bc0cScgd * 21*c188bc0cScgd * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU 22*c188bc0cScgd * School of Computer Science 23*c188bc0cScgd * Carnegie Mellon University 24*c188bc0cScgd * Pittsburgh PA 15213-3890 25*c188bc0cScgd * 26*c188bc0cScgd * any improvements or extensions that they make and grant Carnegie the 27*c188bc0cScgd * rights to redistribute these changes. 28*c188bc0cScgd */ 29*c188bc0cScgd 30*c188bc0cScgd struct bbinfoloc { 31*c188bc0cScgd u_int64_t magic1; 32*c188bc0cScgd u_int64_t start; 33*c188bc0cScgd u_int64_t end; 34*c188bc0cScgd u_int64_t pad1[4]; 35*c188bc0cScgd u_int64_t magic2; 36*c188bc0cScgd }; 37*c188bc0cScgd 38*c188bc0cScgd struct bbinfo { 39*c188bc0cScgd int32_t cksum; 40*c188bc0cScgd int32_t nblocks; 41*c188bc0cScgd int32_t bsize; 42*c188bc0cScgd u_int32_t pad1[8]; 43*c188bc0cScgd int32_t blocks[1]; 44*c188bc0cScgd }; 45*c188bc0cScgd 46*c188bc0cScgd struct netbbinfo { 47*c188bc0cScgd u_int64_t magic1; 48*c188bc0cScgd u_int8_t set; 49*c188bc0cScgd u_int8_t ether_addr[6]; 50*c188bc0cScgd u_int8_t force; 51*c188bc0cScgd u_int64_t pad1[4]; 52*c188bc0cScgd u_int64_t cksum; 53*c188bc0cScgd u_int64_t magic2; 54*c188bc0cScgd }; 55