mvs_pci.c (208414) | mvs_pci.c (214099) |
---|---|
1/*- 2 * Copyright (c) 2010 Alexander Motin <mav@FreeBSD.org> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 11 unchanged lines hidden (view full) --- 20 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 21 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 22 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 */ 26 27#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2010 Alexander Motin <mav@FreeBSD.org> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 11 unchanged lines hidden (view full) --- 20 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 21 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 22 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 */ 26 27#include <sys/cdefs.h> |
28__FBSDID("$FreeBSD: head/sys/dev/mvs/mvs_pci.c 208414 2010-05-22 08:30:47Z mav $"); | 28__FBSDID("$FreeBSD: head/sys/dev/mvs/mvs_pci.c 214099 2010-10-20 07:22:34Z mav $"); |
29 30#include <sys/param.h> 31#include <sys/module.h> 32#include <sys/systm.h> 33#include <sys/kernel.h> 34#include <sys/bus.h> 35#include <sys/endian.h> 36#include <sys/malloc.h> --- 297 unchanged lines hidden (view full) --- 334{ 335 struct mvs_controller *ctlr = data; 336 struct mvs_intr_arg arg; 337 void (*function)(void *); 338 int p; 339 u_int32_t ic, aic; 340 341 ic = ATA_INL(ctlr->r_mem, CHIP_MIC); | 29 30#include <sys/param.h> 31#include <sys/module.h> 32#include <sys/systm.h> 33#include <sys/kernel.h> 34#include <sys/bus.h> 35#include <sys/endian.h> 36#include <sys/malloc.h> --- 297 unchanged lines hidden (view full) --- 334{ 335 struct mvs_controller *ctlr = data; 336 struct mvs_intr_arg arg; 337 void (*function)(void *); 338 int p; 339 u_int32_t ic, aic; 340 341 ic = ATA_INL(ctlr->r_mem, CHIP_MIC); |
342//device_printf(ctlr->dev, "irq MIC:%08x\n", ic); | |
343 if (ctlr->msi) { 344 /* We have to to mask MSI during processing. */ 345 mtx_lock(&ctlr->mtx); 346 ATA_OUTL(ctlr->r_mem, CHIP_MIM, 0); 347 ctlr->msia = 1; /* Deny MIM update during processing. */ 348 mtx_unlock(&ctlr->mtx); 349 } else if (ic == 0) 350 return; --- 170 unchanged lines hidden --- | 342 if (ctlr->msi) { 343 /* We have to to mask MSI during processing. */ 344 mtx_lock(&ctlr->mtx); 345 ATA_OUTL(ctlr->r_mem, CHIP_MIM, 0); 346 ctlr->msia = 1; /* Deny MIM update during processing. */ 347 mtx_unlock(&ctlr->mtx); 348 } else if (ic == 0) 349 return; --- 170 unchanged lines hidden --- |