summaryrefslogtreecommitdiffstats
path: root/sys/dev/amr/amrvar.h
diff options
context:
space:
mode:
authormsmith <msmith@FreeBSD.org>2000-03-23 18:33:19 +0000
committermsmith <msmith@FreeBSD.org>2000-03-23 18:33:19 +0000
commit2054c7bab47b0600e4308a6dd0d6d9f7605067ee (patch)
tree748794e9e4675cd48d8499df036d1faa3f4c1be6 /sys/dev/amr/amrvar.h
parentf3ae48fd505aa13a32ee063d82a80ed52e7a298f (diff)
downloadFreeBSD-src-2054c7bab47b0600e4308a6dd0d6d9f7605067ee.zip
FreeBSD-src-2054c7bab47b0600e4308a6dd0d6d9f7605067ee.tar.gz
Fix detection of the card-ready-for-command state. Use an ultimate
timeout closer to the 1-second value that AMI use in their Linux driver, and mark the mailbox structures as volatile so that gcc doesn't over-optimise access to them. This should fix the "controller wedged" bug. Submitted by: Brian Dean <brdean@unx.sas.com>
Diffstat (limited to 'sys/dev/amr/amrvar.h')
-rw-r--r--sys/dev/amr/amrvar.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/amr/amrvar.h b/sys/dev/amr/amrvar.h
index f3955a6..13e0f46 100644
--- a/sys/dev/amr/amrvar.h
+++ b/sys/dev/amr/amrvar.h
@@ -106,8 +106,8 @@ struct amr_softc
void *amr_intr;
/* mailbox */
- struct amr_mailbox *amr_mailbox;
- struct amr_mailbox64 *amr_mailbox64;
+ volatile struct amr_mailbox *amr_mailbox;
+ volatile struct amr_mailbox64 *amr_mailbox64;
u_int32_t amr_mailboxphys;
bus_dma_tag_t amr_mailbox_dmat;
bus_dmamap_t amr_mailbox_dmamap;
OpenPOWER on IntegriCloud