mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 02:03:56 -06:00
ahci: replace SATA FIS type magic numbers with constants
SATA 3.0 "10.3.1 FIS Type values" defines the constants used to differentiate between FIS types. Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> Reviewed-by: John Snow <jsnow@redhat.com> Message-id: 1415874281-7371-3-git-send-email-stefanha@redhat.com Signed-off-by: Kevin Wolf <kwolf@redhat.com>
This commit is contained in:
parent
192cf55cc0
commit
17fcb74af9
2 changed files with 7 additions and 4 deletions
|
@ -156,7 +156,10 @@
|
|||
#define AHCI_SCR_SCTL_DET 0xf
|
||||
|
||||
#define SATA_FIS_TYPE_REGISTER_H2D 0x27
|
||||
#define SATA_FIS_REG_H2D_UPDATE_COMMAND_REGISTER 0x80
|
||||
#define SATA_FIS_REG_H2D_UPDATE_COMMAND_REGISTER 0x80
|
||||
#define SATA_FIS_TYPE_REGISTER_D2H 0x34
|
||||
#define SATA_FIS_TYPE_PIO_SETUP 0x5f
|
||||
#define SATA_FIS_TYPE_SDB 0xA1
|
||||
|
||||
#define AHCI_CMD_HDR_CMD_FIS_LEN 0x1f
|
||||
#define AHCI_CMD_HDR_PRDT_LEN 16
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue