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

Function bcma_nexus_probe

freebsd/mips/broadcom/bcma_nexus.c:65–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63 "with generic NINTR");
64
65static int
66bcma_nexus_probe(device_t dev)
67{
68 int error;
69
70 switch (bcm_get_platform()->cid.chip_type) {
71 case BHND_CHIPTYPE_BCMA:
72 case BHND_CHIPTYPE_BCMA_ALT:
73 case BHND_CHIPTYPE_UBUS:
74 break;
75 default:
76 return (ENXIO);
77 }
78
79 if ((error = bcma_probe(dev)) > 0)
80 return (error);
81
82 /* Set device description */
83 bhnd_set_default_bus_desc(dev, &bcm_get_platform()->cid);
84
85 return (BUS_PROBE_SPECIFIC);
86}
87
88static int
89bcma_nexus_attach(device_t dev)

Callers

nothing calls this directly

Calls 1

bcm_get_platformFunction · 0.85

Tested by

no test coverage detected