Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Linux/drivers/bus/   (Open Source Betriebssystem Version 6.17.9©)  Datei vom 24.10.2025 mit Größe 1 kB image not shown  

Quelle  sun50i-de2.c   Sprache: C

 
// SPDX-License-Identifier: GPL-2.0
/*
 * Allwinner A64 Display Engine 2.0 Bus Driver
 *
 * Copyright (C) 2018 Icenowy Zheng <icenowy@aosc.io>
 */


#include <linux/of_platform.h>
#include <linux/platform_device.h>
#include <linux/soc/sunxi/sunxi_sram.h>

static int sun50i_de2_bus_probe(struct platform_device *pdev)
{
 struct device_node *np = pdev->dev.of_node;
 int ret;

 ret = sunxi_sram_claim(&pdev->dev);
 if (ret)
  return dev_err_probe(&pdev->dev, ret,
         "Couldn't map SRAM to device\n");

 of_platform_populate(np, NULL, NULL, &pdev->dev);

 return 0;
}

static void sun50i_de2_bus_remove(struct platform_device *pdev)
{
 sunxi_sram_release(&pdev->dev);
}

static const struct of_device_id sun50i_de2_bus_of_match[] = {
 { .compatible = "allwinner,sun50i-a64-de2", },
 { /* sentinel */ }
};

static struct platform_driver sun50i_de2_bus_driver = {
 .probe = sun50i_de2_bus_probe,
 .remove = sun50i_de2_bus_remove,
 .driver = {
  .name = "sun50i-de2-bus",
  .of_match_table = sun50i_de2_bus_of_match,
 },
};

builtin_platform_driver(sun50i_de2_bus_driver);

Messung V0.5
C=92 H=95 G=93

¤ Dauer der Verarbeitung: 0.2 Sekunden  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

Beweissystem der NASA

Beweissystem Isabelle

NIST Cobol Testsuite

Cephes Mathematical Library

Wiener Entwicklungsmethode

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.