if_atse_fdt.c (257447) | if_atse_fdt.c (266152) |
---|---|
1/*- 2 * Copyright (c) 2013 Bjoern A. Zeeb 3 * All rights reserved. 4 * 5 * This software was developed by SRI International and the University of 6 * Cambridge Computer Laboratory under DARPA/AFRL contract (FA8750-11-C-0249) 7 * ("MRC2"), as part of the DARPA MRC research programme. 8 * --- 15 unchanged lines hidden (view full) --- 24 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 25 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 26 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 27 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 28 * SUCH DAMAGE. 29 */ 30 31#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2013 Bjoern A. Zeeb 3 * All rights reserved. 4 * 5 * This software was developed by SRI International and the University of 6 * Cambridge Computer Laboratory under DARPA/AFRL contract (FA8750-11-C-0249) 7 * ("MRC2"), as part of the DARPA MRC research programme. 8 * --- 15 unchanged lines hidden (view full) --- 24 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 25 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 26 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 27 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 28 * SUCH DAMAGE. 29 */ 30 31#include <sys/cdefs.h> |
32__FBSDID("$FreeBSD: stable/10/sys/dev/altera/atse/if_atse_fdt.c 256752 2013-10-18 20:44:19Z brooks $"); | 32__FBSDID("$FreeBSD: stable/10/sys/dev/altera/atse/if_atse_fdt.c 266152 2014-05-15 16:11:06Z ian $"); |
33 34#include <sys/param.h> 35#include <sys/bus.h> 36#include <sys/kernel.h> 37#include <sys/module.h> 38#include <sys/rman.h> 39#include <sys/socket.h> 40#include <sys/systm.h> --- 18 unchanged lines hidden (view full) --- 59 60/* "device miibus" required. See GENERIC if you get errors here. */ 61#include "miibus_if.h" 62 63static int 64atse_probe_fdt(device_t dev) 65{ 66 | 33 34#include <sys/param.h> 35#include <sys/bus.h> 36#include <sys/kernel.h> 37#include <sys/module.h> 38#include <sys/rman.h> 39#include <sys/socket.h> 40#include <sys/systm.h> --- 18 unchanged lines hidden (view full) --- 59 60/* "device miibus" required. See GENERIC if you get errors here. */ 61#include "miibus_if.h" 62 63static int 64atse_probe_fdt(device_t dev) 65{ 66 |
67 if (!ofw_bus_status_okay(dev)) 68 return (ENXIO); 69 |
|
67 if (ofw_bus_is_compatible(dev, "altera,atse")) { 68 device_set_desc(dev, "Altera Triple-Speed Ethernet MegaCore"); 69 return (BUS_PROBE_DEFAULT); 70 } 71 return (ENXIO); 72} 73 74static int --- 142 unchanged lines hidden --- | 70 if (ofw_bus_is_compatible(dev, "altera,atse")) { 71 device_set_desc(dev, "Altera Triple-Speed Ethernet MegaCore"); 72 return (BUS_PROBE_DEFAULT); 73 } 74 return (ENXIO); 75} 76 77static int --- 142 unchanged lines hidden --- |