diff options
author | Alexander Yurchenko <grange@cvs.openbsd.org> | 2003-02-13 15:30:22 +0000 |
---|---|---|
committer | Alexander Yurchenko <grange@cvs.openbsd.org> | 2003-02-13 15:30:22 +0000 |
commit | e9dcaa1e5d58eda63d3c67529f0de5e8b1265325 (patch) | |
tree | 2ed762908a5efe94f97ca01e9d042480b000a411 /sys/dev/pci/pciide_amd_reg.h | |
parent | 48f646adaacd6c7b2c7cef7e75e5e55d8d34002a (diff) |
Add cable detection for AMD chips, directly from AMD specs.
Tested by todd@; ok gluk@
Diffstat (limited to 'sys/dev/pci/pciide_amd_reg.h')
-rw-r--r-- | sys/dev/pci/pciide_amd_reg.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/pci/pciide_amd_reg.h b/sys/dev/pci/pciide_amd_reg.h index ca94a951592..94f9bbdad8b 100644 --- a/sys/dev/pci/pciide_amd_reg.h +++ b/sys/dev/pci/pciide_amd_reg.h @@ -1,4 +1,4 @@ -/* $OpenBSD: pciide_amd_reg.h,v 1.4 2001/07/19 18:16:22 csapuntz Exp $ */ +/* $OpenBSD: pciide_amd_reg.h,v 1.5 2003/02/13 15:30:21 grange Exp $ */ /* $NetBSD: pciide_amd_reg.h,v 1.2 2000/07/06 15:08:11 bouyer Exp $ */ /* @@ -57,6 +57,7 @@ /* Channel enable */ #define AMD756_CHANSTATUS_EN 0x40 #define AMD756_CHAN_EN(chan) (0x01 << (1 - (chan))) +#define AMD756_CABLE(chan, drive) (0x00010000 << ((chan) * 2 + (drive))) /* Data port timing controls */ #define AMD756_DATATIM 0x48 |