fwohci_pci.c (227843) | fwohci_pci.c (254263) |
---|---|
1/*- 2 * Copyright (c) 2003 Hidetoshi Shimokawa 3 * Copyright (c) 1998-2002 Katsushi Kobayashi and Hidetoshi Shimokawa 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 19 unchanged lines hidden (view full) --- 28 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 29 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 30 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN 31 * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 32 * POSSIBILITY OF SUCH DAMAGE. 33 */ 34 35#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2003 Hidetoshi Shimokawa 3 * Copyright (c) 1998-2002 Katsushi Kobayashi and Hidetoshi Shimokawa 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 19 unchanged lines hidden (view full) --- 28 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 29 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 30 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN 31 * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 32 * POSSIBILITY OF SUCH DAMAGE. 33 */ 34 35#include <sys/cdefs.h> |
36__FBSDID("$FreeBSD: head/sys/dev/firewire/fwohci_pci.c 227843 2011-11-22 21:28:20Z marius $"); | 36__FBSDID("$FreeBSD: head/sys/dev/firewire/fwohci_pci.c 254263 2013-08-12 23:30:01Z scottl $"); |
37 38#define BOUNCE_BUFFER_TEST 0 39 40#include <sys/param.h> 41#include <sys/systm.h> 42#include <sys/kernel.h> 43#include <sys/module.h> 44#include <sys/bus.h> --- 192 unchanged lines hidden (view full) --- 237 238static int 239fwohci_pci_init(device_t self) 240{ 241 int olatency, latency, ocache_line, cache_line; 242 uint16_t cmd; 243 244 cmd = pci_read_config(self, PCIR_COMMAND, 2); | 37 38#define BOUNCE_BUFFER_TEST 0 39 40#include <sys/param.h> 41#include <sys/systm.h> 42#include <sys/kernel.h> 43#include <sys/module.h> 44#include <sys/bus.h> --- 192 unchanged lines hidden (view full) --- 237 238static int 239fwohci_pci_init(device_t self) 240{ 241 int olatency, latency, ocache_line, cache_line; 242 uint16_t cmd; 243 244 cmd = pci_read_config(self, PCIR_COMMAND, 2); |
245 cmd |= PCIM_CMD_MEMEN | PCIM_CMD_BUSMASTEREN | PCIM_CMD_MWRICEN; | 245 cmd |= PCIM_CMD_BUSMASTEREN | PCIM_CMD_MWRICEN; |
246#if 1 /* for broken hardware */ 247 cmd &= ~PCIM_CMD_MWRICEN; 248#endif 249 pci_write_config(self, PCIR_COMMAND, cmd, 2); 250 251 /* 252 * Some Sun PCIO-2 FireWire controllers have their intpin register 253 * bogusly set to 0, although it should be 3. Correct that. --- 302 unchanged lines hidden --- | 246#if 1 /* for broken hardware */ 247 cmd &= ~PCIM_CMD_MWRICEN; 248#endif 249 pci_write_config(self, PCIR_COMMAND, cmd, 2); 250 251 /* 252 * Some Sun PCIO-2 FireWire controllers have their intpin register 253 * bogusly set to 0, although it should be 3. Correct that. --- 302 unchanged lines hidden --- |