/* $OpenBSD: disk.h,v 1.1 2021/04/28 19:01:00 drahn Exp $ */ #ifndef _DISK_H #define _DISK_H #include typedef struct efi_diskinfo { EFI_BLOCK_IO *blkio; UINT32 mediaid; } *efi_diskinfo_t; struct diskinfo { struct efi_diskinfo ed; struct disklabel disklabel; struct sr_boot_volume *sr_vol; u_int part; u_int flags; #define DISKINFO_FLAG_GOODLABEL (1 << 0) int (*diskio)(int, struct diskinfo *, u_int, int, void *); int (*strategy)(void *, int, daddr_t, size_t, void *, size_t *); TAILQ_ENTRY(diskinfo) list; }; TAILQ_HEAD(disklist_lh, diskinfo); extern struct diskinfo *bootdev_dip; extern struct disklist_lh disklist; #endif /* _DISK_H */