Eine aufbereitete Darstellung der Quelle

 
     
 
 
Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung
 
 
 
 

Benutzer

Quelle  serial_ctrl.c

  Sprache: C
 

// SPDX-License-Identifier: GPL-2.0+
/*
 * Serial core controller driver
 *
 * Copyright (C) 2023 Texas Instruments Incorporated - https://www.ti.com/
 * Author: Tony Lindgren <tony@atomide.com>
 *
 * This driver manages the serial core controller struct device instances.
 * The serial core controller devices are children of the physical serial
 * port device.
 */


#include <linux/device.h>
#include <linux/module.h>
#include <linux/pm_runtime.h>
#include <linux/serial_core.h>
#include <linux/spinlock.h>

#include "serial_base.h"

static int serial_ctrl_probe(struct device *dev)
{
 pm_runtime_enable(dev);

 return 0;
}

static int serial_ctrl_remove(struct device *dev)
{
 pm_runtime_disable(dev);

 return 0;
}

/*
 * Serial core controller device init functions. Note that the physical
 * serial port device driver may not have completed probe at this point.
 */

int serial_ctrl_register_port(struct uart_driver *drv, struct uart_port *port)
{
 return serial_core_register_port(drv, port);
}

void serial_ctrl_unregister_port(struct uart_driver *drv, struct uart_port *port)
{
 serial_core_unregister_port(drv, port);
}

static struct device_driver serial_ctrl_driver = {
 .name = "ctrl",
 .suppress_bind_attrs = true,
 .probe = serial_ctrl_probe,
 .remove = serial_ctrl_remove,
};

int serial_base_ctrl_init(void)
{
 return serial_base_driver_register(&serial_ctrl_driver);
}

void serial_base_ctrl_exit(void)
{
 serial_base_driver_unregister(&serial_ctrl_driver);
}

MODULE_AUTHOR("Tony Lindgren <tony@atomide.com>");
MODULE_DESCRIPTION("Serial core controller driver");
MODULE_LICENSE("GPL");

Messung V0.5 in Prozent
C=94 H=94 G=93

¤ Dauer der Verarbeitung: 0.14 Sekunden  (vorverarbeitet am  2026-06-06) ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

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.






                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

Open Source Software

     Quellcodebibliothek
     Eigene Quellcodes
     Fremde Quellcodes
     Suchen

Jenseits des Üblichen ....
    

Besucherstatistik

Besucherstatistik

Statistik
#Sources=141584
#Domains=752002