From 872f4e99f48bd2d78f944291330a12326fb41059 Mon Sep 17 00:00:00 2001 From: Peter Grehan Date: Thu, 30 Jul 2020 23:49:49 +0000 Subject: [PATCH] Definition for the 'removable media flag' from word 0 in the Identify page. This will be used to remove a magic number in the bhyve AHCI emulation. Reported by: rpokala Reviewed by: imp, rpokala Approved by: imp, rpokala MFC after: 3 weeks Differential Revision: https://reviews.freebsd.org/D25893 --- sys/sys/ata.h | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/sys/ata.h b/sys/sys/ata.h index a08d5253578f..7ec4526be7df 100644 --- a/sys/sys/ata.h +++ b/sys/sys/ata.h @@ -46,6 +46,7 @@ struct ata_params { #define ATA_ATAPI_TYPE_TAPE 0x0100 /* streaming tape */ #define ATA_ATAPI_TYPE_CDROM 0x0500 /* CD-ROM device */ #define ATA_ATAPI_TYPE_OPTICAL 0x0700 /* optical disk */ +#define ATA_ATAPI_REMOVABLE 0x0080 #define ATA_DRQ_MASK 0x0060 #define ATA_DRQ_SLOW 0x0000 /* cpu 3 ms delay */ #define ATA_DRQ_INTR 0x0020 /* interrupt 10 ms delay */