diff options
author | sos <sos@FreeBSD.org> | 2008-04-13 16:05:34 +0000 |
---|---|---|
committer | sos <sos@FreeBSD.org> | 2008-04-13 16:05:34 +0000 |
commit | a3d2be176f396ea6c3fc51b7ca25b82d6680924a (patch) | |
tree | 9cb10410dd9aec05a81a9da9ac64651fa5aac7b5 /sys/dev/ata/ata-all.h | |
parent | 8a08087c0abff744976a0377efdc8cf787fba0d8 (diff) | |
download | FreeBSD-src-a3d2be176f396ea6c3fc51b7ca25b82d6680924a.zip FreeBSD-src-a3d2be176f396ea6c3fc51b7ca25b82d6680924a.tar.gz |
Fix identify of slave devices.
Diffstat (limited to 'sys/dev/ata/ata-all.h')
-rw-r--r-- | sys/dev/ata/ata-all.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/ata/ata-all.h b/sys/dev/ata/ata-all.h index 5065661..69531b0 100644 --- a/sys/dev/ata/ata-all.h +++ b/sys/dev/ata/ata-all.h @@ -301,7 +301,7 @@ struct ata_ahci_cmd_list { #define ATA_PC98_CTLADDR_RID 8 #define ATA_PC98_BANKADDR_RID 9 #define ATA_IRQ_RID 0 -#define ATA_DEV(unit) ((unit == ATA_ATA_SLAVE) ? 0x10 : 0) +#define ATA_DEV(unit) ((unit > 0) ? 0x10 : 0) #define ATA_CFA_MAGIC1 0x844A #define ATA_CFA_MAGIC2 0x848A #define ATA_CFA_MAGIC3 0x8400 |