Lines Matching full:interface
25 (interface in qgraph terms) and the framework takes care of
28 Following the above example, an interface would be ``sdhci``,
30 that interface. In this way, if the command line of a sdhci driver
47 - **QNODE_INTERFACE**: for example ``sdhci`` (interface for all ``-sdhci``
49 An interface is not explicitly created, it will be automatically
51 An interface is simply a struct that abstracts the various drivers
54 - **QNODE_TEST**: for example ``sdhci-test``. A test consumes an interface
60 implement ``get_driver()`` to return the allocator mapped to the interface
73 - ``X PRODUCES Y``: ``X`` provides the interface ``Y``
89 allocated accordingly and the final interface is passed to the test
210 Creating a new driver and its interface
233 we do not focus on the PCI interface implementation.
236 so it must ``consume`` the ``pci-bus`` generic interface (which abstracts
245 - Create the ``sdhci`` interface node. This interface offers the
247 The interface is produced by ``sdhci-pci`` and ``generic-sdhci``,
254 ``sdhci`` interface, using its API. It doesn't need to look at
270 static void *raspi2_get_driver(void *object, const char *interface)
273 if (!g_strcmp0(interface, "memory")) {
277 fprintf(stderr, "%s not present in arm/raspi2b\n", interface);
352 static void *pc_get_driver(void *object, const char *interface)
355 if (!g_strcmp0(interface, "memory")) {
359 fprintf(stderr, "%s not present in x86_64/pc\n", interface);
411 /* Interface node, offers the sdhci API */
435 static void *sdhci_mm_get_driver(void *obj, const char *interface)
438 if (!g_strcmp0(interface, "sdhci")) {
441 fprintf(stderr, "%s not present in generic-sdhci\n", interface);
451 /* SDHCI interface API */
461 const char *interface)
464 if (!g_strcmp0(interface, "sdhci")) {
468 fprintf(stderr, "%s not present in sdhci-pci\n", interface);
482 /* SDHCI interface API */
580 Here a new test is created, consuming ``sdhci`` interface node