mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
CFA (Compact Flash) devices has a special config ID that fails the
normal ATA device check in ata-disk.c. Add support for the CFA magic.
This commit is contained in:
parent
902c0d8297
commit
5345b2d755
2 changed files with 3 additions and 1 deletions
|
|
@ -204,6 +204,7 @@
|
|||
#define ATA_PC98_BANKADDR_RID 9
|
||||
#define ATA_IRQ_RID 0
|
||||
#define ATA_DEV(device) ((device == ATA_MASTER) ? 0 : 1)
|
||||
#define ATA_CFA_MAGIC 0x848A
|
||||
#define ATAPI_MAGIC_LSB 0x14
|
||||
#define ATAPI_MAGIC_MSB 0xeb
|
||||
#define ATAPI_P_READ (ATA_S_DRQ | ATA_I_IN)
|
||||
|
|
|
|||
|
|
@ -71,7 +71,8 @@ ad_probe(device_t dev)
|
|||
{
|
||||
struct ata_device *atadev = device_get_softc(dev);
|
||||
|
||||
if (!(atadev->param.config & ATA_PROTO_ATAPI))
|
||||
if (!(atadev->param.config & ATA_PROTO_ATAPI) ||
|
||||
(atadev->param.config == ATA_CFA_MAGIC))
|
||||
return 0;
|
||||
else
|
||||
return ENXIO;
|
||||
|
|
|
|||
Loading…
Reference in a new issue