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

Function gt_attach

freebsd/mips/malta/gt.c:65–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63}
64
65static int
66gt_attach(device_t dev)
67{
68 struct gt_softc *sc = device_get_softc(dev);
69 sc->dev = dev;
70
71 device_add_child(dev, "pcib", 0);
72 bus_generic_probe(dev);
73 bus_generic_attach(dev);
74
75 return (0);
76}
77
78static struct resource *
79gt_alloc_resource(device_t dev, device_t child, int type, int *rid,

Callers

nothing calls this directly

Calls 4

device_get_softcFunction · 0.85
device_add_childFunction · 0.85
bus_generic_probeFunction · 0.85
bus_generic_attachFunction · 0.85

Tested by

no test coverage detected