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
This commit is contained in:
Peter Grehan 2020-07-30 23:49:49 +00:00
parent 5b0acaf75f
commit 872f4e99f4

View File

@ -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 */