NetBSD/sys/arch/x68k/stand/boot_ufs/boot_ufs.h

41 lines
1.3 KiB
C

/* $NetBSD: boot_ufs.h,v 1.2 2002/03/17 16:14:30 minoura Exp $ */
/***************************************************************
*
* file: boot.h
*
* author: chapuni(GBA02750@niftyserve.or.jp)
*
*/
/* xxboot.S */
__dead void BOOT_ERROR __P((const char *msg)) __attribute__((noreturn));
int badbaddr __P((volatile void *adr));
#ifdef SCSI_ADHOC_BOOTPART
void RAW_READ0 __P((void *buf, u_int32_t blkpos, size_t bytelen));
#endif
unsigned B_KEYINP __P((void));
void B_PUTC __P((unsigned int c));
void B_PRINT __P((const unsigned char *p));
unsigned B_COLOR __P((unsigned int w));
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