if_ti.c (177626) | if_ti.c (178588) |
---|---|
1/*- 2 * Copyright (c) 1997, 1998, 1999 3 * Bill Paul <wpaul@ctr.columbia.edu>. 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 --- 63 unchanged lines hidden (view full) --- 72 * - Raymond Lee of Netgear, for providing a pair of Netgear 73 * GA620 Tigon 2 boards for testing 74 * - Ulf Zimmermann, for bringing the GA260 to my attention and 75 * convincing me to write this driver. 76 * - Andrew Gallatin for providing FreeBSD/Alpha support. 77 */ 78 79#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 1997, 1998, 1999 3 * Bill Paul <wpaul@ctr.columbia.edu>. 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 --- 63 unchanged lines hidden (view full) --- 72 * - Raymond Lee of Netgear, for providing a pair of Netgear 73 * GA620 Tigon 2 boards for testing 74 * - Ulf Zimmermann, for bringing the GA260 to my attention and 75 * convincing me to write this driver. 76 * - Andrew Gallatin for providing FreeBSD/Alpha support. 77 */ 78 79#include <sys/cdefs.h> |
80__FBSDID("$FreeBSD: head/sys/dev/ti/if_ti.c 177626 2008-03-26 07:32:08Z brueffer $"); | 80__FBSDID("$FreeBSD: head/sys/dev/ti/if_ti.c 178588 2008-04-26 14:13:48Z marius $"); |
81 82#include "opt_ti.h" 83 84#include <sys/param.h> 85#include <sys/systm.h> 86#include <sys/sockio.h> 87#include <sys/mbuf.h> 88#include <sys/malloc.h> --- 1915 unchanged lines hidden (view full) --- 2004 " not supported; disabling PCI MWI\n", 2005 cacheline); 2006 CSR_WRITE_4(sc, TI_PCI_CMDSTAT, CSR_READ_4(sc, 2007 TI_PCI_CMDSTAT) & ~PCIM_CMD_MWIEN); 2008 break; 2009 } 2010 } 2011 | 81 82#include "opt_ti.h" 83 84#include <sys/param.h> 85#include <sys/systm.h> 86#include <sys/sockio.h> 87#include <sys/mbuf.h> 88#include <sys/malloc.h> --- 1915 unchanged lines hidden (view full) --- 2004 " not supported; disabling PCI MWI\n", 2005 cacheline); 2006 CSR_WRITE_4(sc, TI_PCI_CMDSTAT, CSR_READ_4(sc, 2007 TI_PCI_CMDSTAT) & ~PCIM_CMD_MWIEN); 2008 break; 2009 } 2010 } 2011 |
2012#ifdef __brokenalpha__ 2013 /* 2014 * From the Alteon sample driver: 2015 * Must insure that we do not cross an 8K (bytes) boundary 2016 * for DMA reads. Our highest limit is 1K bytes. This is a 2017 * restriction on some ALPHA platforms with early revision 2018 * 21174 PCI chipsets, such as the AlphaPC 164lx 2019 */ 2020 TI_SETBIT(sc, TI_PCI_STATE, pci_writemax|TI_PCI_READMAX_1024); 2021#else | |
2022 TI_SETBIT(sc, TI_PCI_STATE, pci_writemax); | 2012 TI_SETBIT(sc, TI_PCI_STATE, pci_writemax); |
2023#endif | |
2024 2025 /* This sets the min dma param all the way up (0xff). */ 2026 TI_SETBIT(sc, TI_PCI_STATE, TI_PCISTATE_MINDMA); 2027 2028 if (sc->ti_hdrsplit) 2029 hdrsplit = TI_OPMODE_JUMBO_HDRSPLIT; 2030 else 2031 hdrsplit = 0; --- 277 unchanged lines hidden (view full) --- 2309 2310 /* 2311 * Map control/status registers. 2312 */ 2313 pci_enable_busmaster(dev); 2314 2315 rid = TI_PCI_LOMEM; 2316 sc->ti_res = bus_alloc_resource_any(dev, SYS_RES_MEMORY, &rid, | 2013 2014 /* This sets the min dma param all the way up (0xff). */ 2015 TI_SETBIT(sc, TI_PCI_STATE, TI_PCISTATE_MINDMA); 2016 2017 if (sc->ti_hdrsplit) 2018 hdrsplit = TI_OPMODE_JUMBO_HDRSPLIT; 2019 else 2020 hdrsplit = 0; --- 277 unchanged lines hidden (view full) --- 2298 2299 /* 2300 * Map control/status registers. 2301 */ 2302 pci_enable_busmaster(dev); 2303 2304 rid = TI_PCI_LOMEM; 2305 sc->ti_res = bus_alloc_resource_any(dev, SYS_RES_MEMORY, &rid, |
2317 RF_ACTIVE|PCI_RF_DENSE); | 2306 RF_ACTIVE); |
2318 2319 if (sc->ti_res == NULL) { 2320 device_printf(dev, "couldn't map memory\n"); 2321 error = ENXIO; 2322 goto fail; 2323 } 2324 2325 sc->ti_btag = rman_get_bustag(sc->ti_res); --- 1566 unchanged lines hidden --- | 2307 2308 if (sc->ti_res == NULL) { 2309 device_printf(dev, "couldn't map memory\n"); 2310 error = ENXIO; 2311 goto fail; 2312 } 2313 2314 sc->ti_btag = rman_get_bustag(sc->ti_res); --- 1566 unchanged lines hidden --- |