Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F178372635
D19798.1796608202.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
752 B
Referenced Files
None
Subscribers
None
D19798.1796608202.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Mon, Dec 7, 1:50 AM (12 h, 15 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
42269316
Default Alt Text
D19798.1796608202.diff (752 B)
Attached To
Mode
D19798: if_cgem support for SiFive Unleashed
Attached
Detach File
Event Timeline