fwohci_pci.c (106809) | fwohci_pci.c (107653) |
---|---|
1/* 2 * Copyright (c) 1998-2002 Katsushi Kobayashi and Hidetoshi Shimokawa 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 --- 16 unchanged lines hidden (view full) --- 25 * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 26 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 27 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 29 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN 30 * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 31 * POSSIBILITY OF SUCH DAMAGE. 32 * | 1/* 2 * Copyright (c) 1998-2002 Katsushi Kobayashi and Hidetoshi Shimokawa 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 --- 16 unchanged lines hidden (view full) --- 25 * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 26 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 27 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 29 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN 30 * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 31 * POSSIBILITY OF SUCH DAMAGE. 32 * |
33 * $FreeBSD: head/sys/dev/firewire/fwohci_pci.c 106809 2002-11-12 13:46:09Z simokawa $ | 33 * $FreeBSD: head/sys/dev/firewire/fwohci_pci.c 107653 2002-12-06 02:17:30Z simokawa $ |
34 */ 35 36#include <sys/param.h> 37#include <sys/systm.h> 38#include <sys/kernel.h> 39#include <sys/module.h> 40#include <sys/bus.h> 41#include <sys/queue.h> --- 136 unchanged lines hidden (view full) --- 178 } 179 printf(" %d.\n", (int) latency); 180 cache_line = pci_read_config(self, PCIR_CACHELNSZ, 1); 181#if 0 182#define DEF_CACHE_LINE 0xc 183 cache_line = DEF_CACHE_LINE; 184 pci_write_config(self, PCIR_CACHELNSZ, cache_line, 1); 185#endif | 34 */ 35 36#include <sys/param.h> 37#include <sys/systm.h> 38#include <sys/kernel.h> 39#include <sys/module.h> 40#include <sys/bus.h> 41#include <sys/queue.h> --- 136 unchanged lines hidden (view full) --- 178 } 179 printf(" %d.\n", (int) latency); 180 cache_line = pci_read_config(self, PCIR_CACHELNSZ, 1); 181#if 0 182#define DEF_CACHE_LINE 0xc 183 cache_line = DEF_CACHE_LINE; 184 pci_write_config(self, PCIR_CACHELNSZ, cache_line, 1); 185#endif |
186 printf("cache size %d.\n", (int) cache_line); | 186 if (bootverbose) 187 device_printf(self, "cache size %d.\n", (int) cache_line); |
187/**/ 188 rid = PCI_CBMEM; 189 sc->bsr = bus_alloc_resource(self, SYS_RES_MEMORY, &rid, 190 0, ~0, 1, RF_ACTIVE); 191 if (!sc->bsr) { 192 device_printf(self, "Could not map memory\n"); 193 return ENXIO; 194 } --- 135 unchanged lines hidden --- | 188/**/ 189 rid = PCI_CBMEM; 190 sc->bsr = bus_alloc_resource(self, SYS_RES_MEMORY, &rid, 191 0, ~0, 1, RF_ACTIVE); 192 if (!sc->bsr) { 193 device_printf(self, "Could not map memory\n"); 194 return ENXIO; 195 } --- 135 unchanged lines hidden --- |