amr.c (65245) | amr.c (65763) |
---|---|
1/*- 2 * Copyright (c) 1999,2000 Michael Smith 3 * Copyright (c) 2000 BSDi 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 10 unchanged lines hidden (view full) --- 19 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 20 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25 * SUCH DAMAGE. 26 * | 1/*- 2 * Copyright (c) 1999,2000 Michael Smith 3 * Copyright (c) 2000 BSDi 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 10 unchanged lines hidden (view full) --- 19 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 20 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25 * SUCH DAMAGE. 26 * |
27 * $FreeBSD: head/sys/dev/amr/amr.c 65245 2000-08-30 07:52:50Z msmith $ | 27 * $FreeBSD: head/sys/dev/amr/amr.c 65763 2000-09-11 23:19:13Z msmith $ |
28 */ 29 30/* 31 * Driver for the AMI MegaRaid family of controllers. 32 */ 33 34#include <sys/param.h> 35#include <sys/systm.h> --- 1350 unchanged lines hidden (view full) --- 1386 bcopy((void *)(uintptr_t)(volatile void *)sc->amr_mailbox, mbsave, sizeof(*mbsave)); 1387 1388 /* acknowledge interrupt */ 1389 AMR_QPUT_ODB(sc, AMR_QODB_READY); 1390 1391 /* acknowledge that we have the commands */ 1392 AMR_QPUT_IDB(sc, sc->amr_mailboxphys | AMR_QIDB_ACK); 1393 | 28 */ 29 30/* 31 * Driver for the AMI MegaRaid family of controllers. 32 */ 33 34#include <sys/param.h> 35#include <sys/systm.h> --- 1350 unchanged lines hidden (view full) --- 1386 bcopy((void *)(uintptr_t)(volatile void *)sc->amr_mailbox, mbsave, sizeof(*mbsave)); 1387 1388 /* acknowledge interrupt */ 1389 AMR_QPUT_ODB(sc, AMR_QODB_READY); 1390 1391 /* acknowledge that we have the commands */ 1392 AMR_QPUT_IDB(sc, sc->amr_mailboxphys | AMR_QIDB_ACK); 1393 |
1394#if AMR_QUARTZ_GOFASTER | 1394#ifndef AMR_QUARTZ_GOFASTER |
1395 /* 1396 * This waits for the controller to notice that we've taken the 1397 * command from it. It's very inefficient, and we shouldn't do it, 1398 * but if we remove this code, we stop completing commands under 1399 * load. 1400 * 1401 * Peter J says we shouldn't do this. The documentation says we 1402 * should. Who is right? --- 202 unchanged lines hidden --- | 1395 /* 1396 * This waits for the controller to notice that we've taken the 1397 * command from it. It's very inefficient, and we shouldn't do it, 1398 * but if we remove this code, we stop completing commands under 1399 * load. 1400 * 1401 * Peter J says we shouldn't do this. The documentation says we 1402 * should. Who is right? --- 202 unchanged lines hidden --- |