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

Quelle  clk-gate.h   Sprache: C

 
/* SPDX-License-Identifier: GPL-2.0-only */
/*
 * Copyright (c) 2014 MediaTek Inc.
 * Author: James Liao <jamesjj.liao@mediatek.com>
 */


#ifndef __DRV_CLK_GATE_H
#define __DRV_CLK_GATE_H

#include <linux/types.h>

struct clk;
struct clk_hw_onecell_data;
struct clk_ops;
struct device;
struct device_node;

extern const struct clk_ops mtk_clk_gate_ops_setclr;
extern const struct clk_ops mtk_clk_gate_ops_setclr_inv;
extern const struct clk_ops mtk_clk_gate_ops_no_setclr;
extern const struct clk_ops mtk_clk_gate_ops_no_setclr_inv;

struct mtk_gate_regs {
 u32 sta_ofs;
 u32 clr_ofs;
 u32 set_ofs;
};

struct mtk_gate {
 int id;
 const char *name;
 const char *parent_name;
 const struct mtk_gate_regs *regs;
 int shift;
 const struct clk_ops *ops;
 unsigned long flags;
};

#define GATE_MTK_FLAGS(_id, _name, _parent, _regs, _shift, \
   _ops, _flags) {    \
  .id = _id,     \
  .name = _name,     \
  .parent_name = _parent,    \
  .regs = _regs,     \
  .shift = _shift,    \
  .ops = _ops,     \
  .flags = _flags,    \
 }

#define GATE_MTK(_id, _name, _parent, _regs, _shift, _ops)  \
 GATE_MTK_FLAGS(_id, _name, _parent, _regs, _shift, _ops, 0)

int mtk_clk_register_gates(struct device *dev, struct device_node *node,
      const struct mtk_gate *clks, int num,
      struct clk_hw_onecell_data *clk_data);

void mtk_clk_unregister_gates(const struct mtk_gate *clks, int num,
         struct clk_hw_onecell_data *clk_data);

#endif /* __DRV_CLK_GATE_H */

Messung V0.5
C=97 H=97 G=96

¤ Dauer der Verarbeitung: 0.3 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.