Add definitions (#defined out) to pass the result of the v3.x bios
extended disk information request to the kernel. Binary compatible with the existing code, disabled because I don't have a system with a bios that supports the request.
This commit is contained in:
parent
1c31ec44a3
commit
ab1f41a716
|
@ -1,4 +1,4 @@
|
||||||
/* $NetBSD: bootinfo.h,v 1.1 2003/02/26 21:26:10 fvdl Exp $ */
|
/* $NetBSD: bootinfo.h,v 1.2 2003/04/16 19:16:42 dsl Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1997
|
* Copyright (c) 1997
|
||||||
|
@ -112,13 +112,33 @@ struct btinfo_memmap {
|
||||||
* Structure describing disk info as seen by the BIOS.
|
* Structure describing disk info as seen by the BIOS.
|
||||||
*/
|
*/
|
||||||
struct bi_biosgeom_entry {
|
struct bi_biosgeom_entry {
|
||||||
int sec, head, cyl; /* geometry */
|
int sec, head, cyl; /* geometry */
|
||||||
u_int64_t totsec; /* LBA sectors from ext int13 */
|
u_int64_t totsec; /* LBA sectors from ext int13 */
|
||||||
int flags, dev; /* flags, BIOS device # */
|
int flags, dev; /* flags, BIOS device # */
|
||||||
#define BI_GEOM_INVALID 0x01
|
#define BI_GEOM_INVALID 0x000001
|
||||||
#define BI_GEOM_EXTINT13 0x02
|
#define BI_GEOM_EXTINT13 0x000002
|
||||||
unsigned int cksum; /* MBR checksum */
|
#ifdef BIOSDISK_EXT13INFO_V3
|
||||||
int res0, res1, res2, res3; /* future expansion; 0 now */
|
#define BI_GEOM_BADCKSUM 0x000004 /* v3.x checksum invalid */
|
||||||
|
#define BI_GEOM_BUS_MASK 0x00ff00 /* connecting bus type */
|
||||||
|
#define BI_GEOM_BUS_ISA 0x000100
|
||||||
|
#define BI_GEOM_BUS_PCI 0x000200
|
||||||
|
#define BI_GEOM_BUS_OTHER 0x00ff00
|
||||||
|
#define BI_GEOM_IFACE_MASK 0xff0000 /* interface type */
|
||||||
|
#define BI_GEOM_IFACE_ATA 0x010000
|
||||||
|
#define BI_GEOM_IFACE_ATAPI 0x020000
|
||||||
|
#define BI_GEOM_IFACE_SCSI 0x030000
|
||||||
|
#define BI_GEOM_IFACE_USB 0x040000
|
||||||
|
#define BI_GEOM_IFACE_1394 0x050000 /* Firewire */
|
||||||
|
#define BI_GEOM_IFACE_FIBRE 0x060000 /* Fibre channel */
|
||||||
|
#define BI_GEOM_IFACE_OTHER 0xff0000
|
||||||
|
unsigned int cksum; /* MBR checksum */
|
||||||
|
u_int interface_path; /* ISA iobase PCI bus/dev/fun */
|
||||||
|
u_int64_t device_path;
|
||||||
|
int res0; /* future expansion; 0 now */
|
||||||
|
#else
|
||||||
|
unsigned int cksum; /* MBR checksum */
|
||||||
|
int res0, res1, res2, res3; /* future expansion; 0 now */
|
||||||
|
#endif
|
||||||
struct mbr_partition dosparts[NMBRPART]; /* MBR itself */
|
struct mbr_partition dosparts[NMBRPART]; /* MBR itself */
|
||||||
} __attribute__((packed));
|
} __attribute__((packed));
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue