Changeset 14ecf75d in rtems-libbsd


Ignore:
Timestamp:
Nov 20, 2014, 6:59:45 AM (5 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, fd86c091b97759106da7355ce1dd81ebe030e285, freebsd-9.3, f020f08430150c1656a0ad0a1de13699db9b980b
Children:
4ff97c8
Parents:
a09f00e
git-author:
Sebastian Huber <sebastian.huber@…> (11/20/14 06:59:45)
git-committer:
Sebastian Huber <sebastian.huber@…> (01/21/15 14:00:20)
Message:

if_cgem: Workaround for missing FDT support

File:
1 edited

Legend:

Unmodified
Added
Removed
  • freebsd/sys/dev/cadence/if_cgem.c

    ra09f00e r14ecf75d  
    7272#include <net/bpfdesc.h>
    7373
     74#ifndef __rtems__
    7475#include <dev/fdt/fdt_common.h>
    7576#include <dev/ofw/ofw_bus.h>
    7677#include <dev/ofw/ofw_bus_subr.h>
     78#endif /* __rtems__ */
    7779
    7880#include <dev/mii/mii.h>
     
    16301632{
    16311633
     1634#ifndef __rtems__
    16321635        if (!ofw_bus_is_compatible(dev, "cadence,gem"))
    16331636                return (ENXIO);
     1637#endif /* __rtems__ */
    16341638
    16351639        device_set_desc(dev, "Cadence CGEM Gigabit Ethernet Interface");
     
    16421646        struct cgem_softc *sc = device_get_softc(dev);
    16431647        struct ifnet *ifp = NULL;
     1648#ifndef __rtems__
    16441649        phandle_t node;
    16451650        pcell_t cell;
     1651#endif /* __rtems__ */
    16461652        int rid, err;
    16471653        u_char eaddr[ETHER_ADDR_LEN];
     
    16501656        CGEM_LOCK_INIT(sc);
    16511657
     1658#ifndef __rtems__
    16521659        /* Get reference clock number and base divider from fdt. */
    16531660        node = ofw_bus_get_node(dev);
     
    16551662        if (OF_getprop(node, "ref-clock-num", &cell, sizeof(cell)) > 0)
    16561663                sc->ref_clk_num = fdt32_to_cpu(cell);
     1664#endif /* __rtems__ */
    16571665
    16581666        /* Get memory resource. */
Note: See TracChangeset for help on using the changeset viewer.