Deleted Added
full compact
if_nfe.c (176859) if_nfe.c (178055)
1/* $OpenBSD: if_nfe.c,v 1.54 2006/04/07 12:38:12 jsg Exp $ */
2
3/*-
4 * Copyright (c) 2006 Shigeaki Tagashira <shigeaki@se.hiroshima-u.ac.jp>
5 * Copyright (c) 2006 Damien Bergamini <damien.bergamini@free.fr>
6 * Copyright (c) 2005, 2006 Jonathan Gray <jsg@openbsd.org>
7 *
8 * Permission to use, copy, modify, and distribute this software for any

--- 7 unchanged lines hidden (view full) ---

16 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
17 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
18 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
19 */
20
21/* Driver for NVIDIA nForce MCP Fast Ethernet and Gigabit Ethernet */
22
23#include <sys/cdefs.h>
1/* $OpenBSD: if_nfe.c,v 1.54 2006/04/07 12:38:12 jsg Exp $ */
2
3/*-
4 * Copyright (c) 2006 Shigeaki Tagashira <shigeaki@se.hiroshima-u.ac.jp>
5 * Copyright (c) 2006 Damien Bergamini <damien.bergamini@free.fr>
6 * Copyright (c) 2005, 2006 Jonathan Gray <jsg@openbsd.org>
7 *
8 * Permission to use, copy, modify, and distribute this software for any

--- 7 unchanged lines hidden (view full) ---

16 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
17 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
18 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
19 */
20
21/* Driver for NVIDIA nForce MCP Fast Ethernet and Gigabit Ethernet */
22
23#include <sys/cdefs.h>
24__FBSDID("$FreeBSD: head/sys/dev/nfe/if_nfe.c 176859 2008-03-06 01:47:53Z yongari $");
24__FBSDID("$FreeBSD: head/sys/dev/nfe/if_nfe.c 178055 2008-04-10 01:25:09Z yongari $");
25
26#ifdef HAVE_KERNEL_OPTION_HEADERS
27#include "opt_device_polling.h"
28#endif
29
30#include <sys/param.h>
31#include <sys/endian.h>
32#include <sys/systm.h>

--- 199 unchanged lines hidden (view full) ---

232 {PCI_VENDOR_NVIDIA, PCI_PRODUCT_NVIDIA_MCP67_LAN1,
233 "NVIDIA nForce MCP67 Networking Adapter"},
234 {PCI_VENDOR_NVIDIA, PCI_PRODUCT_NVIDIA_MCP67_LAN2,
235 "NVIDIA nForce MCP67 Networking Adapter"},
236 {PCI_VENDOR_NVIDIA, PCI_PRODUCT_NVIDIA_MCP67_LAN3,
237 "NVIDIA nForce MCP67 Networking Adapter"},
238 {PCI_VENDOR_NVIDIA, PCI_PRODUCT_NVIDIA_MCP67_LAN4,
239 "NVIDIA nForce MCP67 Networking Adapter"},
25
26#ifdef HAVE_KERNEL_OPTION_HEADERS
27#include "opt_device_polling.h"
28#endif
29
30#include <sys/param.h>
31#include <sys/endian.h>
32#include <sys/systm.h>

--- 199 unchanged lines hidden (view full) ---

232 {PCI_VENDOR_NVIDIA, PCI_PRODUCT_NVIDIA_MCP67_LAN1,
233 "NVIDIA nForce MCP67 Networking Adapter"},
234 {PCI_VENDOR_NVIDIA, PCI_PRODUCT_NVIDIA_MCP67_LAN2,
235 "NVIDIA nForce MCP67 Networking Adapter"},
236 {PCI_VENDOR_NVIDIA, PCI_PRODUCT_NVIDIA_MCP67_LAN3,
237 "NVIDIA nForce MCP67 Networking Adapter"},
238 {PCI_VENDOR_NVIDIA, PCI_PRODUCT_NVIDIA_MCP67_LAN4,
239 "NVIDIA nForce MCP67 Networking Adapter"},
240 {PCI_VENDOR_NVIDIA, PCI_PRODUCT_NVIDIA_MCP73_LAN1,
241 "NVIDIA nForce MCP73 Networking Adapter"},
242 {PCI_VENDOR_NVIDIA, PCI_PRODUCT_NVIDIA_MCP73_LAN2,
243 "NVIDIA nForce MCP73 Networking Adapter"},
244 {PCI_VENDOR_NVIDIA, PCI_PRODUCT_NVIDIA_MCP73_LAN3,
245 "NVIDIA nForce MCP73 Networking Adapter"},
246 {PCI_VENDOR_NVIDIA, PCI_PRODUCT_NVIDIA_MCP73_LAN4,
247 "NVIDIA nForce MCP73 Networking Adapter"},
240 {0, 0, NULL}
241};
242
243
244/* Probe for supported hardware ID's */
245static int
246nfe_probe(device_t dev)
247{

--- 199 unchanged lines hidden (view full) ---

447 case PCI_PRODUCT_NVIDIA_MCP61_LAN1:
448 case PCI_PRODUCT_NVIDIA_MCP61_LAN2:
449 case PCI_PRODUCT_NVIDIA_MCP61_LAN3:
450 case PCI_PRODUCT_NVIDIA_MCP61_LAN4:
451 case PCI_PRODUCT_NVIDIA_MCP67_LAN1:
452 case PCI_PRODUCT_NVIDIA_MCP67_LAN2:
453 case PCI_PRODUCT_NVIDIA_MCP67_LAN3:
454 case PCI_PRODUCT_NVIDIA_MCP67_LAN4:
248 {0, 0, NULL}
249};
250
251
252/* Probe for supported hardware ID's */
253static int
254nfe_probe(device_t dev)
255{

--- 199 unchanged lines hidden (view full) ---

455 case PCI_PRODUCT_NVIDIA_MCP61_LAN1:
456 case PCI_PRODUCT_NVIDIA_MCP61_LAN2:
457 case PCI_PRODUCT_NVIDIA_MCP61_LAN3:
458 case PCI_PRODUCT_NVIDIA_MCP61_LAN4:
459 case PCI_PRODUCT_NVIDIA_MCP67_LAN1:
460 case PCI_PRODUCT_NVIDIA_MCP67_LAN2:
461 case PCI_PRODUCT_NVIDIA_MCP67_LAN3:
462 case PCI_PRODUCT_NVIDIA_MCP67_LAN4:
463 case PCI_PRODUCT_NVIDIA_MCP73_LAN1:
464 case PCI_PRODUCT_NVIDIA_MCP73_LAN2:
465 case PCI_PRODUCT_NVIDIA_MCP73_LAN3:
466 case PCI_PRODUCT_NVIDIA_MCP73_LAN4:
455 sc->nfe_flags |= NFE_40BIT_ADDR | NFE_PWR_MGMT |
456 NFE_CORRECT_MACADDR | NFE_TX_FLOW_CTRL;
457 break;
458 case PCI_PRODUCT_NVIDIA_MCP65_LAN1:
459 case PCI_PRODUCT_NVIDIA_MCP65_LAN2:
460 case PCI_PRODUCT_NVIDIA_MCP65_LAN3:
461 case PCI_PRODUCT_NVIDIA_MCP65_LAN4:
462 sc->nfe_flags |= NFE_JUMBO_SUP | NFE_40BIT_ADDR |

--- 2509 unchanged lines hidden ---
467 sc->nfe_flags |= NFE_40BIT_ADDR | NFE_PWR_MGMT |
468 NFE_CORRECT_MACADDR | NFE_TX_FLOW_CTRL;
469 break;
470 case PCI_PRODUCT_NVIDIA_MCP65_LAN1:
471 case PCI_PRODUCT_NVIDIA_MCP65_LAN2:
472 case PCI_PRODUCT_NVIDIA_MCP65_LAN3:
473 case PCI_PRODUCT_NVIDIA_MCP65_LAN4:
474 sc->nfe_flags |= NFE_JUMBO_SUP | NFE_40BIT_ADDR |

--- 2509 unchanged lines hidden ---