Deleted Added
full compact
brgphy.c (113038) brgphy.c (114547)
1/*
2 * Copyright (c) 2000
3 * Bill Paul <wpaul@ee.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

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

31 */
32
33/*
34 * Driver for the Broadcom BCR5400 1000baseTX PHY. Speed is always
35 * 1000mbps; all we need to negotiate here is full or half duplex.
36 */
37
38#include <sys/cdefs.h>
1/*
2 * Copyright (c) 2000
3 * Bill Paul <wpaul@ee.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

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

31 */
32
33/*
34 * Driver for the Broadcom BCR5400 1000baseTX PHY. Speed is always
35 * 1000mbps; all we need to negotiate here is full or half duplex.
36 */
37
38#include <sys/cdefs.h>
39__FBSDID("$FreeBSD: head/sys/dev/mii/brgphy.c 113038 2003-04-03 21:36:33Z obrien $");
39__FBSDID("$FreeBSD: head/sys/dev/mii/brgphy.c 114547 2003-05-02 19:53:40Z ps $");
40
41#include <sys/param.h>
42#include <sys/systm.h>
43#include <sys/kernel.h>
44#include <sys/socket.h>
45#include <sys/bus.h>
46
47#include <machine/clock.h>

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

116 }
117
118 if (MII_OUI(ma->mii_id1, ma->mii_id2) == MII_OUI_xxBROADCOM &&
119 MII_MODEL(ma->mii_id2) == MII_MODEL_xxBROADCOM_BCM5703) {
120 device_set_desc(dev, MII_STR_xxBROADCOM_BCM5703);
121 return(0);
122 }
123
40
41#include <sys/param.h>
42#include <sys/systm.h>
43#include <sys/kernel.h>
44#include <sys/socket.h>
45#include <sys/bus.h>
46
47#include <machine/clock.h>

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

116 }
117
118 if (MII_OUI(ma->mii_id1, ma->mii_id2) == MII_OUI_xxBROADCOM &&
119 MII_MODEL(ma->mii_id2) == MII_MODEL_xxBROADCOM_BCM5703) {
120 device_set_desc(dev, MII_STR_xxBROADCOM_BCM5703);
121 return(0);
122 }
123
124 if (MII_OUI(ma->mii_id1, ma->mii_id2) == MII_OUI_xxBROADCOM &&
125 MII_MODEL(ma->mii_id2) == MII_MODEL_xxBROADCOM_BCM5704) {
126 device_set_desc(dev, MII_STR_xxBROADCOM_BCM5704);
127 return(0);
128 }
129
124 return(ENXIO);
125}
126
127static int
128brgphy_attach(dev)
129 device_t dev;
130{
131 struct mii_softc *sc;

--- 283 unchanged lines hidden ---
130 return(ENXIO);
131}
132
133static int
134brgphy_attach(dev)
135 device_t dev;
136{
137 struct mii_softc *sc;

--- 283 unchanged lines hidden ---