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