/* * mtk-base-afe.h -- Mediatek base afe structure * * Copyright (c) 2016 MediaTek Inc. * Author: Garlic Tseng * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and * only version 2 as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. */ #ifndef _MTK_BASE_AFE_H_ #define _MTK_BASE_AFE_H_ struct mtk_base_memif_data { int id; const char *name; int reg_ofs_base; int reg_ofs_cur; int fs_reg; int fs_shift; int fs_maskbit; int mono_reg; int mono_shift; int enable_reg; int enable_shift; int hd_reg; int hd_shift; int msb_reg; int msb_shift; int agent_disable_reg; int agent_disable_shift; }; struct mtk_base_irq_data { int id; int irq_cnt_reg; int irq_cnt_shift; int irq_cnt_maskbit; int irq_fs_reg; int irq_fs_shift; int irq_fs_maskbit; int irq_en_reg; int irq_en_shift; int irq_clr_reg; int irq_clr_shift; }; struct device; struct mtk_base_afe_memif; struct mtk_base_afe_irq; struct regmap; struct snd_pcm_substream; struct snd_soc_dai; struct mtk_base_afe { void __iomem *base_addr; struct device *dev; struct regmap *regmap; struct mutex irq_alloc_lock; /* dynamic alloc irq lock */ unsigned int const *reg_back_up_list; unsigned int *reg_back_up; unsigned int reg_back_up_list_num; int (*runtime_suspend)(struct device *dev); int (*runtime_resume)(struct device *dev); bool suspended; struct mtk_base_afe_memif *memif; int memif_size; struct mtk_base_afe_irq *irqs; int irqs_size; const struct snd_pcm_hardware *mtk_afe_hardware; int (*memif_fs)(struct snd_pcm_substream *substream, unsigned int rate); int (*irq_fs)(struct snd_pcm_substream *substream, unsigned int rate); void *platform_priv; }; struct mtk_base_afe_memif { unsigned int phys_buf_addr; int buffer_size; struct snd_pcm_substream *substream; const struct mtk_base_memif_data *data; int irq_usage; int const_irq; }; struct mtk_base_afe_irq { const struct mtk_base_irq_data *irq_data; int irq_occupyed; }; #endif inux/net-next.git/log/include/soc/fsl/qe/ucc.h'>
path: root/include/soc/fsl/qe/ucc.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/soc/fsl/qe/ucc.h')
perf/util/event.h
parent7b737965b33188bd3dbb44e938535c4006d97fbb (diff)
cpu/hotplug: Remove obsolete cpu hotplug register/unregister functions
hotcpu_notifier(), cpu_notifier(), __hotcpu_notifier(), __cpu_notifier(), register_hotcpu_notifier(), register_cpu_notifier(), __register_hotcpu_notifier(), __register_cpu_notifier(), unregister_hotcpu_notifier(), unregister_cpu_notifier(), __unregister_hotcpu_notifier(), __unregister_cpu_notifier() are unused now. Remove them and all related code. Remove also the now pointless cpu notifier error injection mechanism. The states can be executed step by step and error rollback is the same as cpu down, so any state transition can be tested w/o requiring the notifier error injection. Some CPU hotplug states are kept as they are (ab)used for hotplug state tracking. Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Cc: Peter Zijlstra <peterz@infradead.org> Cc: rt@linutronix.de Link: http://lkml.kernel.org/r/20161221192112.005642358@linutronix.de Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'tools/perf/util/event.h')