From 266d3a7a09d49f38772df150bd8a5221affbe849 Mon Sep 17 00:00:00 2001 From: Remko Lodder Date: Tue, 26 Jun 2007 22:13:43 +0000 Subject: [PATCH] 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 Approved by: re (kensmith) Approved by: imp (mentor) OK'ed by: sos (With the comment noted above about false positives). --- sys/dev/ata/ata-all.h | 1 + sys/dev/ata/ata-disk.c | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/sys/dev/ata/ata-all.h b/sys/dev/ata/ata-all.h index 2c5637308a0..8ec93d02b51 100644 --- a/sys/dev/ata/ata-all.h +++ b/sys/dev/ata/ata-all.h @@ -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) diff --git a/sys/dev/ata/ata-disk.c b/sys/dev/ata/ata-disk.c index 147cf0ebd1c..f13de568f16 100644 --- a/sys/dev/ata/ata-disk.c +++ b/sys/dev/ata/ata-disk.c @@ -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;