intpm.c (52590) | intpm.c (54073) |
---|---|
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 --- 9 unchanged lines hidden (view full) --- 18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 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 * | 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 --- 9 unchanged lines hidden (view full) --- 18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 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 * $FreeBSD: head/sys/pci/intpm.c 52590 1999-10-28 08:06:59Z dfr $ | 26 * $FreeBSD: head/sys/pci/intpm.c 54073 1999-12-03 08:41:24Z mdodd $ |
27 */ 28 29#include <sys/param.h> 30#include <sys/systm.h> 31#include <sys/kernel.h> 32#include <machine/bus_pio.h> 33#include <machine/bus_memio.h> 34#include <machine/bus.h> --- 671 unchanged lines hidden (view full) --- 706 device_printf(dev,"could not allocate irq"); 707 return ENOMEM; 708 } 709 error=bus_setup_intr(dev,res,INTR_TYPE_MISC, (driver_intr_t *) intpm_intr,sciic,&ih); 710 if(error){ 711 device_printf(dev,"Failed to map intr\n"); 712 return error; 713 } | 27 */ 28 29#include <sys/param.h> 30#include <sys/systm.h> 31#include <sys/kernel.h> 32#include <machine/bus_pio.h> 33#include <machine/bus_memio.h> 34#include <machine/bus.h> --- 671 unchanged lines hidden (view full) --- 706 device_printf(dev,"could not allocate irq"); 707 return ENOMEM; 708 } 709 error=bus_setup_intr(dev,res,INTR_TYPE_MISC, (driver_intr_t *) intpm_intr,sciic,&ih); 710 if(error){ 711 device_printf(dev,"Failed to map intr\n"); 712 return error; 713 } |
714 smbinterface=device_add_child(dev,"intsmb",unit,NULL); | 714 smbinterface=device_add_child(dev,"intsmb",unit); |
715 if(!smbinterface){ 716 printf("intsmb%d:could not add SMBus device\n",unit); 717 } 718 device_probe_and_attach(smbinterface); 719 } 720 721 value=pci_read_config(dev,PCI_BASE_ADDR_PM,4); 722 printf("intpm%d: PM %s %x \n",unit,(value&1)?"I/O mapped":"Memory",value&0xfffe); --- 28 unchanged lines hidden --- | 715 if(!smbinterface){ 716 printf("intsmb%d:could not add SMBus device\n",unit); 717 } 718 device_probe_and_attach(smbinterface); 719 } 720 721 value=pci_read_config(dev,PCI_BASE_ADDR_PM,4); 722 printf("intpm%d: PM %s %x \n",unit,(value&1)?"I/O mapped":"Memory",value&0xfffe); --- 28 unchanged lines hidden --- |