Deleted Added
full compact
pci.c (240739) pci.c (242625)
1/*-
2 * Copyright (c) 1997, Stefan Esser <se@freebsd.org>
3 * Copyright (c) 2000, Michael Smith <msmith@freebsd.org>
4 * Copyright (c) 2000, BSDi
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

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

22 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 */
28
29#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 1997, Stefan Esser <se@freebsd.org>
3 * Copyright (c) 2000, Michael Smith <msmith@freebsd.org>
4 * Copyright (c) 2000, BSDi
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

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

22 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 */
28
29#include <sys/cdefs.h>
30__FBSDID("$FreeBSD: head/sys/dev/pci/pci.c 240739 2012-09-20 08:30:17Z gavin $");
30__FBSDID("$FreeBSD: head/sys/dev/pci/pci.c 242625 2012-11-05 19:16:27Z dim $");
31
32#include "opt_bus.h"
33
34#include <sys/param.h>
35#include <sys/systm.h>
36#include <sys/malloc.h>
37#include <sys/module.h>
38#include <sys/linker.h>

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

196#define PCI_QUIRK_MAP_REG 1 /* PCI map register in weird place */
197#define PCI_QUIRK_DISABLE_MSI 2 /* MSI/MSI-X doesn't work */
198#define PCI_QUIRK_ENABLE_MSI_VM 3 /* Older chipset in VM where MSI works */
199#define PCI_QUIRK_UNMAP_REG 4 /* Ignore PCI map register */
200 int arg1;
201 int arg2;
202};
203
31
32#include "opt_bus.h"
33
34#include <sys/param.h>
35#include <sys/systm.h>
36#include <sys/malloc.h>
37#include <sys/module.h>
38#include <sys/linker.h>

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

196#define PCI_QUIRK_MAP_REG 1 /* PCI map register in weird place */
197#define PCI_QUIRK_DISABLE_MSI 2 /* MSI/MSI-X doesn't work */
198#define PCI_QUIRK_ENABLE_MSI_VM 3 /* Older chipset in VM where MSI works */
199#define PCI_QUIRK_UNMAP_REG 4 /* Ignore PCI map register */
200 int arg1;
201 int arg2;
202};
203
204static const struct pci_quirk const pci_quirks[] = {
204static const struct pci_quirk pci_quirks[] = {
205 /* The Intel 82371AB and 82443MX has a map register at offset 0x90. */
206 { 0x71138086, PCI_QUIRK_MAP_REG, 0x90, 0 },
207 { 0x719b8086, PCI_QUIRK_MAP_REG, 0x90, 0 },
208 /* As does the Serverworks OSB4 (the SMBus mapping register) */
209 { 0x02001166, PCI_QUIRK_MAP_REG, 0x90, 0 },
210
211 /*
212 * MSI doesn't work with the ServerWorks CNB20-HE Host Bridge

--- 4492 unchanged lines hidden ---
205 /* The Intel 82371AB and 82443MX has a map register at offset 0x90. */
206 { 0x71138086, PCI_QUIRK_MAP_REG, 0x90, 0 },
207 { 0x719b8086, PCI_QUIRK_MAP_REG, 0x90, 0 },
208 /* As does the Serverworks OSB4 (the SMBus mapping register) */
209 { 0x02001166, PCI_QUIRK_MAP_REG, 0x90, 0 },
210
211 /*
212 * MSI doesn't work with the ServerWorks CNB20-HE Host Bridge

--- 4492 unchanged lines hidden ---