xref: /csrg-svn/sys/pmax/stand/dec_boot.h (revision 53205)
152130Smckusick /*
252130Smckusick  * Copyright (c) 1992 Regents of the University of California.
352130Smckusick  * All rights reserved.
452130Smckusick  *
552130Smckusick  * This code is derived from software contributed to Berkeley by
652130Smckusick  * Ralph Campbell.
752130Smckusick  *
852130Smckusick  * %sccs.include.redist.c%
952130Smckusick  *
10*53205Sralph  *	@(#)dec_boot.h	7.2 (Berkeley) 04/19/92
1152130Smckusick  *
1252130Smckusick  * devDiskLabel.h --
1352130Smckusick  *
1452130Smckusick  *      This defines the disk label that Sun writes on the 0'th sector of
1552130Smckusick  *      the 0'th cylinder of its SMD disks.  The disk label contains some
1652130Smckusick  *      geometry information and also the division of the disk into a
1752130Smckusick  *      number of partitions.  Each partition is identified to the drive
1852130Smckusick  *      by a different unit number.
1952130Smckusick  *
2052130Smckusick  * from: $Header: /sprite/src/kernel/dev/RCS/devDiskLabel.h,
2152130Smckusick  *	v 9.4 90/03/01 12:22:36 jhh Exp $ SPRITE (Berkeley)
2252130Smckusick  */
2352130Smckusick 
2452130Smckusick /*
2552130Smckusick  * Boot block information on the 0th sector.
2652130Smckusick  * The boot program is stored in sequences of contiguous blocks.
2752130Smckusick  * If mode is 0, there is just one sequence of blocks and one Dec_BootMap
2852130Smckusick  * is used.  If mode is 1, there are multiple sequences of blocks
2952130Smckusick  * and multiple Dec_BootMaps are used, the last with numBlocks = 0.
30*53205Sralph  *
31*53205Sralph  * NOTE: The standard disk label offset is 64 which is
32*53205Sralph  * after the boot information expected by the PROM boot loader.
3352130Smckusick  */
34*53205Sralph 
35*53205Sralph struct Dec_BootMap {
36*53205Sralph 	int	numBlocks;		/* Number of blocks to read. */
37*53205Sralph 	int	startBlock;		/* Starting block on disk. */
38*53205Sralph };
39*53205Sralph 
40*53205Sralph struct Dec_DiskBoot {
41*53205Sralph 	char	pad[8];
42*53205Sralph 	int	magic;			/* DEC_BOOT_MAGIC */
43*53205Sralph 	int	mode;			/* Mode for boot info. */
44*53205Sralph 	int	loadAddr;		/* Address to start loading. */
45*53205Sralph 	int	execAddr;		/* Address to start execing. */
46*53205Sralph 	struct	Dec_BootMap map[61];	/* boot program sections. */
47*53205Sralph };
4852130Smckusick 
4952130Smckusick #define DEC_BOOT_MAGIC	0x02757a
50*53205Sralph #define DEC_BOOT_SECTOR	0
51