Deleted Added
full compact
if_bge.c (118814) if_bge.c (119157)
1/*
2 * Copyright (c) 2001 Wind River Systems
3 * Copyright (c) 1997, 1998, 1999, 2001
4 * Bill Paul <wpaul@windriver.com>. 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:

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

59 * Without external SSRAM, you can only have at most 4 TX rings,
60 * and the use of the mini RX ring is disabled. This seems to imply
61 * that these features are simply not available on the BCM5701. As a
62 * result, this driver does not implement any support for the mini RX
63 * ring.
64 */
65
66#include <sys/cdefs.h>
1/*
2 * Copyright (c) 2001 Wind River Systems
3 * Copyright (c) 1997, 1998, 1999, 2001
4 * Bill Paul <wpaul@windriver.com>. 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:

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

59 * Without external SSRAM, you can only have at most 4 TX rings,
60 * and the use of the mini RX ring is disabled. This seems to imply
61 * that these features are simply not available on the BCM5701. As a
62 * result, this driver does not implement any support for the mini RX
63 * ring.
64 */
65
66#include <sys/cdefs.h>
67__FBSDID("$FreeBSD: head/sys/dev/bge/if_bge.c 118814 2003-08-12 05:18:51Z wpaul $");
67__FBSDID("$FreeBSD: head/sys/dev/bge/if_bge.c 119157 2003-08-20 04:06:00Z ambrisko $");
68
69#include <sys/param.h>
70#include <sys/endian.h>
71#include <sys/systm.h>
72#include <sys/sockio.h>
73#include <sys/mbuf.h>
74#include <sys/malloc.h>
75#include <sys/kernel.h>

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

1731#endif
1732 descbuf = malloc(BGE_DEVDESC_MAX, M_TEMP, M_NOWAIT);
1733 if (descbuf == NULL)
1734 return(ENOMEM);
1735 snprintf(descbuf, BGE_DEVDESC_MAX,
1736 "%s, ASIC rev. %#04x", t->bge_name,
1737 pci_read_config(dev, BGE_PCI_MISC_CTL, 4) >> 16);
1738 device_set_desc_copy(dev, descbuf);
68
69#include <sys/param.h>
70#include <sys/endian.h>
71#include <sys/systm.h>
72#include <sys/sockio.h>
73#include <sys/mbuf.h>
74#include <sys/malloc.h>
75#include <sys/kernel.h>

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

1731#endif
1732 descbuf = malloc(BGE_DEVDESC_MAX, M_TEMP, M_NOWAIT);
1733 if (descbuf == NULL)
1734 return(ENOMEM);
1735 snprintf(descbuf, BGE_DEVDESC_MAX,
1736 "%s, ASIC rev. %#04x", t->bge_name,
1737 pci_read_config(dev, BGE_PCI_MISC_CTL, 4) >> 16);
1738 device_set_desc_copy(dev, descbuf);
1739 if (pci_get_subvendor(dev) == DELL_VENDORID)
1740 sc->bge_no_3_led = 1;
1739 free(descbuf, M_TEMP);
1740 return(0);
1741 }
1742 t++;
1743 }
1744
1745 return(ENXIO);
1746}

--- 1840 unchanged lines hidden ---
1741 free(descbuf, M_TEMP);
1742 return(0);
1743 }
1744 t++;
1745 }
1746
1747 return(ENXIO);
1748}

--- 1840 unchanged lines hidden ---