Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F146986398
D19798.id56585.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
752 B
Referenced Files
None
Subscribers
None
D19798.id56585.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
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)
Attached To
Mode
D19798: if_cgem support for SiFive Unleashed
Attached
Detach File
Event Timeline
Log In to Comment