Deleted Added
full compact
aac_debug.c (87183) aac_debug.c (89112)
1/*-
2 * Copyright (c) 2000 Michael Smith
3 * Copyright (c) 2001 Scott Long
4 * Copyright (c) 2000 BSDi
5 * Copyright (c) 2001 Adaptec, Inc.
6 * All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 12 unchanged lines hidden (view full) ---

21 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 * SUCH DAMAGE.
28 *
1/*-
2 * Copyright (c) 2000 Michael Smith
3 * Copyright (c) 2001 Scott Long
4 * Copyright (c) 2000 BSDi
5 * Copyright (c) 2001 Adaptec, Inc.
6 * All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 12 unchanged lines hidden (view full) ---

21 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 * SUCH DAMAGE.
28 *
29 * $FreeBSD: head/sys/dev/aac/aac_debug.c 87183 2001-12-02 03:47:33Z scottl $
29 * $FreeBSD: head/sys/dev/aac/aac_debug.c 89112 2002-01-09 03:32:40Z msmith $
30 */
31
32/*
33 * Debugging support.
34 */
35#include "opt_aac.h"
36
37#include <sys/param.h>

--- 90 unchanged lines hidden (view full) ---

128/*
129 * Print the command queue states for controller 0 (callable from DDB)
130 */
131void
132aac_printstate0(void)
133{
134 struct aac_softc *sc;
135
30 */
31
32/*
33 * Debugging support.
34 */
35#include "opt_aac.h"
36
37#include <sys/param.h>

--- 90 unchanged lines hidden (view full) ---

128/*
129 * Print the command queue states for controller 0 (callable from DDB)
130 */
131void
132aac_printstate0(void)
133{
134 struct aac_softc *sc;
135
136 sc = devclass_get_softc(aac_devclass, 0);
136 sc = devclass_get_softc(devclass_find("aac"), 0);
137
138 aac_print_queues(sc);
139 switch (sc->aac_hwif) {
140 case AAC_HWIF_I960RX:
141 device_printf(sc->aac_dev, "IDBR 0x%08x IIMR 0x%08x "
142 "IISR 0x%08x\n", AAC_GETREG4(sc, AAC_RX_IDBR),
143 AAC_GETREG4(sc, AAC_RX_IIMR), AAC_GETREG4(sc, AAC_RX_IISR));
144 device_printf(sc->aac_dev, "ODBR 0x%08x OIMR 0x%08x "

--- 13 unchanged lines hidden (view full) ---

158/*
159 * simulate an interrupt for controller 0
160 */
161void
162aac_intr0(void)
163{
164 struct aac_softc *sc;
165
137
138 aac_print_queues(sc);
139 switch (sc->aac_hwif) {
140 case AAC_HWIF_I960RX:
141 device_printf(sc->aac_dev, "IDBR 0x%08x IIMR 0x%08x "
142 "IISR 0x%08x\n", AAC_GETREG4(sc, AAC_RX_IDBR),
143 AAC_GETREG4(sc, AAC_RX_IIMR), AAC_GETREG4(sc, AAC_RX_IISR));
144 device_printf(sc->aac_dev, "ODBR 0x%08x OIMR 0x%08x "

--- 13 unchanged lines hidden (view full) ---

158/*
159 * simulate an interrupt for controller 0
160 */
161void
162aac_intr0(void)
163{
164 struct aac_softc *sc;
165
166 sc = devclass_get_softc(aac_devclass, 0);
166 sc = devclass_get_softc(devclass_find("aac"), 0);
167
168 aac_intr(sc);
169}
170
171/*
172 * Panic in a slightly informative fashion
173 */
174void

--- 373 unchanged lines hidden ---
167
168 aac_intr(sc);
169}
170
171/*
172 * Panic in a slightly informative fashion
173 */
174void

--- 373 unchanged lines hidden ---