Page MenuHomeFreeBSD

D19798.id56585.diff
No OneTemporary

D19798.id56585.diff

Index: head/sys/dev/cadence/if_cgem.c
===================================================================
--- head/sys/dev/cadence/if_cgem.c
+++ head/sys/dev/cadence/if_cgem.c
@@ -98,6 +98,12 @@
#define CGEM_CKSUM_ASSIST (CSUM_IP | CSUM_TCP | CSUM_UDP | \
CSUM_TCP_IPV6 | CSUM_UDP_IPV6)
+static struct ofw_compat_data compat_data[] = {
+ { "cadence,gem", 1 },
+ { "cdns,macb", 1 },
+ { NULL, 0 },
+};
+
struct cgem_softc {
if_t ifp;
struct mtx sc_mtx;
@@ -1635,7 +1641,7 @@
if (!ofw_bus_status_okay(dev))
return (ENXIO);
- if (!ofw_bus_is_compatible(dev, "cadence,gem"))
+ if (ofw_bus_search_compatible(dev, compat_data)->ocd_data == 0)
return (ENXIO);
device_set_desc(dev, "Cadence CGEM Gigabit Ethernet Interface");

File Metadata

Mime Type
text/plain
Expires
Sun, Mar 8, 9:08 AM (4 h, 20 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29374259
Default Alt Text
D19798.id56585.diff (752 B)

Event Timeline