MCPcopy Create free account
hub / github.com/F-Stack/f-stack / bcm_fb_probe

Function bcm_fb_probe

freebsd/arm/broadcom/bcm2835/bcm2835_fb.c:126–141  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

124static int bcmfb_configure(int);
125
126static int
127bcm_fb_probe(device_t dev)
128{
129 int error;
130
131 if (ofw_bus_search_compatible(dev, compat_data)->ocd_data == 0)
132 return (ENXIO);
133
134 device_set_desc(dev, "BCM2835 framebuffer device");
135 error = sc_probe_unit(device_get_unit(dev),
136 device_get_flags(dev) | SC_AUTODETECT_KBD);
137 if (error != 0)
138 return (error);
139
140 return (BUS_PROBE_DEFAULT);
141}
142
143static int
144bcm_fb_attach(device_t dev)

Callers

nothing calls this directly

Calls 3

device_set_descFunction · 0.85
device_get_unitFunction · 0.85
device_get_flagsFunction · 0.85

Tested by

no test coverage detected