Lines Matching +full:bman +full:- +full:portal
1 /*-
2 * Copyright (c) 2011-2012 Semihalf.
42 #include "bman.h"
63 "bman",
68 EARLY_DRIVER_MODULE(bman, simplebus, bman_driver, 0, 0, BUS_PASS_SUPPORTDEV);
74 if (!ofw_bus_is_compatible(dev, "fsl,bman")) in bman_fdt_probe()
83 * BMAN Portals
85 #define BMAN_PORT_DEVSTR "Freescale Buffer Manager - Portals"
100 "bman-portals",
114 OF_getencprop(node, "#address-cells", addrp, sizeof(*addrp)); in get_addr_props()
115 OF_getencprop(node, "#size-cells", sizep, sizeof(*sizep)); in get_addr_props()
123 if (ofw_bus_is_compatible(dev, "simple-bus")) { in bman_portals_fdt_probe()
126 if (ofw_bus_node_is_compatible(node, "fsl,bman-portal")) in bman_portals_fdt_probe()
131 } else if (!ofw_bus_is_compatible(dev, "fsl,bman-portals")) in bman_portals_fdt_probe()
146 if (node == -1) in bman_portal_find_cpu()
155 return (-1); in bman_portal_find_cpu()
174 sc->sc_dev = dev; in bman_portals_fdt_attach()
183 if (!ofw_bus_node_is_compatible(child, "fsl,bman-portal")) { in bman_portals_fdt_attach()
187 if (OF_getprop(child, "cpu-handle", (void *)&cpu, in bman_portals_fdt_attach()
226 if (sc->sc_dp_pa == 0) in bman_portals_fdt_attach()
227 sc->sc_dp_pa = portal_pa - rle->start; in bman_portals_fdt_attach()
229 portal_size = rle->end + 1; in bman_portals_fdt_attach()
231 portal_size = ulmax(rle->end + 1, portal_size); in bman_portals_fdt_attach()
232 sc->sc_dp_size = ulmax(sc->sc_dp_size, portal_size); in bman_portals_fdt_attach()