intpm.c (166901) | intpm.c (168870) |
---|---|
1/*- 2 * Copyright (c) 1998, 1999 Takanori Watanabe 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 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 */ 26 27#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 1998, 1999 Takanori Watanabe 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 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 */ 26 27#include <sys/cdefs.h> |
28__FBSDID("$FreeBSD: head/sys/pci/intpm.c 166901 2007-02-23 12:19:07Z piso $"); | 28__FBSDID("$FreeBSD: head/sys/pci/intpm.c 168870 2007-04-19 17:14:06Z jhb $"); |
29 30#include <sys/param.h> 31#include <sys/systm.h> 32#include <sys/bus.h> 33#include <sys/kernel.h> 34#include <sys/lock.h> 35#include <sys/module.h> 36#include <sys/mutex.h> --- 97 unchanged lines hidden (view full) --- 134 case PCI_INTR_SMB_IRQ9: 135 str = "IRQ 9"; 136 break; 137 default: 138 str = "BOGUS"; 139 } 140 device_printf(dev, "intr %s %s ", str, 141 (value & 1) ? "enabled" : "disabled"); | 29 30#include <sys/param.h> 31#include <sys/systm.h> 32#include <sys/bus.h> 33#include <sys/kernel.h> 34#include <sys/lock.h> 35#include <sys/module.h> 36#include <sys/mutex.h> --- 97 unchanged lines hidden (view full) --- 134 case PCI_INTR_SMB_IRQ9: 135 str = "IRQ 9"; 136 break; 137 default: 138 str = "BOGUS"; 139 } 140 device_printf(dev, "intr %s %s ", str, 141 (value & 1) ? "enabled" : "disabled"); |
142 value = pci_read_config(dev, PCI_REVID_SMB, 1); 143 printf("revision %d\n", value); | 142 printf("revision %d\n", pci_read_config(dev, PCI_REVID_SMB, 1)); |
144 145 if ((value & 0xe) != PCI_INTR_SMB_IRQ9) { 146 device_printf(dev, "Unsupported interrupt mode\n"); 147 error = ENXIO; 148 goto fail; 149 } 150 151 /* Force IRQ 9. */ --- 630 unchanged lines hidden --- | 143 144 if ((value & 0xe) != PCI_INTR_SMB_IRQ9) { 145 device_printf(dev, "Unsupported interrupt mode\n"); 146 error = ENXIO; 147 goto fail; 148 } 149 150 /* Force IRQ 9. */ --- 630 unchanged lines hidden --- |