diff options
author | remko <remko@FreeBSD.org> | 2007-06-26 22:13:43 +0000 |
---|---|---|
committer | remko <remko@FreeBSD.org> | 2007-06-26 22:13:43 +0000 |
commit | 62b8a82dc4546ba4ea96b579ad64bb24b80a2227 (patch) | |
tree | 010a16e32fcd78b5b2548524a777094140490fa3 /sys/dev/ata | |
parent | 6b276781fad7a061344301ba071e88e9822c50ba (diff) | |
download | FreeBSD-src-62b8a82dc4546ba4ea96b579ad64bb24b80a2227.zip FreeBSD-src-62b8a82dc4546ba4ea96b579ad64bb24b80a2227.tar.gz |
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).
Diffstat (limited to 'sys/dev/ata')
-rw-r--r-- | sys/dev/ata/ata-all.h | 1 | ||||
-rw-r--r-- | sys/dev/ata/ata-disk.c | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/ata/ata-all.h b/sys/dev/ata/ata-all.h index 2c56373..8ec93d0 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 147cf0e..f13de56 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; |