Add Viking Interworks 256MB as an ata device; this might give
some false positives but at this moment it is better to add support then to dont have it at all (comment from Soren). PR: kern/111516 Submitted by: Thomas Nystrom <thn at saeab dot se> Approved by: re (kensmith) Approved by: imp (mentor) OK'ed by: sos (With the comment noted above about false positives).
This commit is contained in:
parent
6a0ce57d10
commit
266d3a7a09
@ -294,6 +294,7 @@ struct ata_ahci_cmd_list {
|
||||
#define ATA_DEV(device) ((device == ATA_MASTER) ? 0 : 1)
|
||||
#define ATA_CFA_MAGIC1 0x844A
|
||||
#define ATA_CFA_MAGIC2 0x848A
|
||||
#define ATA_CFA_MAGIC3 0x8400
|
||||
#define ATAPI_MAGIC_LSB 0x14
|
||||
#define ATAPI_MAGIC_MSB 0xeb
|
||||
#define ATAPI_P_READ (ATA_S_DRQ | ATA_I_IN)
|
||||
|
@ -80,7 +80,8 @@ ad_probe(device_t dev)
|
||||
|
||||
if (!(atadev->param.config & ATA_PROTO_ATAPI) ||
|
||||
(atadev->param.config == ATA_CFA_MAGIC1) ||
|
||||
(atadev->param.config == ATA_CFA_MAGIC2))
|
||||
(atadev->param.config == ATA_CFA_MAGIC2) ||
|
||||
(atadev->param.config == ATA_CFA_MAGIC3))
|
||||
return 0;
|
||||
else
|
||||
return ENXIO;
|
||||
|
Loading…
Reference in New Issue
Block a user