/* $NetBSD: boot_ufs.h,v 1.6 2020/01/14 04:00:41 isaki Exp $ */ /*************************************************************** * * file: boot.h * * author: chapuni(GBA02750@niftyserve.or.jp) * */ /* xxboot.S */ __dead void BOOT_ERROR(const char *msg); int badbaddr(volatile void *adr); #ifdef SCSI_ADHOC_BOOTPART void RAW_READ0(void *buf, u_int32_t blkpos, size_t bytelen); #endif void B_PUTC(unsigned int c); void B_PRINT(const char *p); extern unsigned ID; /* target SCSI ID */ extern unsigned BOOT_INFO; /* result of IOCS(__BOOTINF) */ /* check whether the bootinf is SCSI or floppy */ #define BINF_ISFD(pbinf) (*((char *)(pbinf) + 1) == 0) extern unsigned FDMODE; /* Floppy access mode: PDA x 256 + MODE */ extern struct { struct fdfmt{ unsigned char N; /* sector length 0: 128, ..., 3: 1K */ unsigned char C; /* cylinder # */ unsigned char H; /* head # */ unsigned char R; /* sector # */ } minsec, maxsec; } FDSECMINMAX; /* FD format type of the first track */ #ifdef SCSI_ADHOC_BOOTPART extern u_int32_t SCSI_PARTTOP; /* top position of boot partition in sector */ extern u_int32_t SCSI_BLKLEN; /* sector len 0: 256, 1: 512, 2: 1024 */ #endif