xref: /netbsd-src/sys/arch/x68k/stand/boot_ufs/boot_ufs.h (revision aee2dc9e7eec104a0ad7d8de604926018fe131ce)
1 /*	$NetBSD: boot_ufs.h,v 1.6 2020/01/14 04:00:41 isaki Exp $	*/
2 
3 /***************************************************************
4  *
5  *	file: boot.h
6  *
7  *	author: chapuni(GBA02750@niftyserve.or.jp)
8  *
9  */
10 
11 /* xxboot.S */
12 __dead void BOOT_ERROR(const char *msg);
13 int badbaddr(volatile void *adr);
14 #ifdef SCSI_ADHOC_BOOTPART
15 void RAW_READ0(void *buf, u_int32_t blkpos, size_t bytelen);
16 #endif
17 void B_PUTC(unsigned int c);
18 void B_PRINT(const char *p);
19 
20 extern unsigned ID;		/* target SCSI ID */
21 extern unsigned BOOT_INFO;	/* result of IOCS(__BOOTINF) */
22 
23 /* check whether the bootinf is SCSI or floppy */
24 #define BINF_ISFD(pbinf)	(*((char *)(pbinf) + 1) == 0)
25 
26 extern unsigned FDMODE;		/* Floppy access mode: PDA x 256 + MODE */
27 extern struct {
28 	struct fdfmt{
29 		unsigned char	N;	/* sector length 0: 128, ..., 3: 1K */
30 		unsigned char	C;	/* cylinder # */
31 		unsigned char	H;	/* head # */
32 		unsigned char	R;	/* sector # */
33 	} minsec, maxsec;
34 } FDSECMINMAX;			/* FD format type of the first track */
35 #ifdef SCSI_ADHOC_BOOTPART
36 extern u_int32_t SCSI_PARTTOP;	/* top position of boot partition in sector */
37 extern u_int32_t SCSI_BLKLEN;	/* sector len 0: 256, 1: 512, 2: 1024 */
38 #endif
39