Skip to content

Commit

Permalink
MFC 363596, 363719, 363733
Browse files Browse the repository at this point in the history
 363596	 Support the setting of additional AHCI controller parameters.
 363719  Definition for the 'removable media flag' from word 0 in the Identify page.
 363733  Replace magic numbers in Identify page register 0 with ATA definitions.

Relnotes:	yes
  • Loading branch information
grehan-freebsd committed Aug 18, 2020
1 parent 7289446 commit 19c8e0a
Show file tree
Hide file tree
Showing 3 changed files with 212 additions and 119 deletions.
1 change: 1 addition & 0 deletions sys/sys/ata.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down
21 changes: 21 additions & 0 deletions usr.sbin/bhyve/bhyve.8
Original file line number Diff line number Diff line change
Expand Up @@ -494,6 +494,27 @@ Sector size (defaults to blockif sector size).
.It Li ser
Serial number with maximum 20 characters.
.El
.Pp
AHCI devices:
.Bl -tag -width 10n
.It Li nmrr
Nominal Media Rotation Rate, known as RPM. value 1 will indicate device as Solid State Disk. default value is 0, not report.
.It Li ser
Serial Number with maximum 20 characters.
.It Li rev
Revision Number with maximum 8 characters.
.It Li model
Model Number with maximum 40 characters.
.El
.Pp
HD Audio devices:
.Bl -tag -width 10n
.It Li play
Playback device, typically
.Ar /dev/dsp0 .
.It Li rec
Recording device, typically
.Ar /dev/dsp0 .
.El
.It Fl S
Wire guest memory.
Expand Down
Loading

0 comments on commit 19c8e0a

Please sign in to comment.