aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/mvs/mvs.h
diff options
context:
space:
mode:
authorRafal Jaworowski <raj@FreeBSD.org>2012-02-01 13:39:52 +0000
committerRafal Jaworowski <raj@FreeBSD.org>2012-02-01 13:39:52 +0000
commitc72ef339bfc9f4d534c0210114c28ed075fcaa52 (patch)
tree792af0f236047d8086c9ee162a3e9e47565e5d3d /sys/dev/mvs/mvs.h
parent754f1c1e6307861094e0fbb699d0abcb3a7cdd4d (diff)
downloadsrc-c72ef339bfc9f4d534c0210114c28ed075fcaa52.tar.gz
src-c72ef339bfc9f4d534c0210114c28ed075fcaa52.zip
Adjust mvs(4) to handle interrupt cause reg depending on the actual number of
channels available - current code treats bits 4:7 in 'SATAHC interrupt mask' and 'SATAHC interrupt cause' as flags for SATA channels 2 and 3 - for embedded SATA controllers (SoC) these bits have been marked as reserved in datasheets so far, but for some new and upcoming chips they are used for purposes other than SATA Submitted by: Lukasz Plachno Reviewed by: mav Obtained from: Semihalf MFC after: 2 weeks
Notes
Notes: svn path=/head/; revision=230865
Diffstat (limited to 'sys/dev/mvs/mvs.h')
-rw-r--r--sys/dev/mvs/mvs.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/dev/mvs/mvs.h b/sys/dev/mvs/mvs.h
index 3fe106a64c44..f4e4a61f33f5 100644
--- a/sys/dev/mvs/mvs.h
+++ b/sys/dev/mvs/mvs.h
@@ -61,6 +61,9 @@
#define CHIP_SOC_LED 0x2C /* SoC LED Configuration */
+/* Additional mask for SoC devices with less than 4 channels */
+#define CHIP_SOC_HC0_MASK(num) (0xff >> ((4 - (num)) * 2))
+
/* Chip CCC registers */
#define CHIP_ICC 0x18008
#define CHIP_ICC_ALL_PORTS (1 << 4) /* all ports irq event */