18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-only */
28c2ecf20Sopenharmony_ci/*
38c2ecf20Sopenharmony_ci * Copyright (c) 2010, Intel Corporation.
48c2ecf20Sopenharmony_ci *
58c2ecf20Sopenharmony_ci * Author: John Fastabend <john.r.fastabend@intel.com>
68c2ecf20Sopenharmony_ci */
78c2ecf20Sopenharmony_ci
88c2ecf20Sopenharmony_ci#ifndef _DCB_EVENT_H
98c2ecf20Sopenharmony_ci#define _DCB_EVENT_H
108c2ecf20Sopenharmony_ci
118c2ecf20Sopenharmony_cienum dcbevent_notif_type {
128c2ecf20Sopenharmony_ci	DCB_APP_EVENT = 1,
138c2ecf20Sopenharmony_ci};
148c2ecf20Sopenharmony_ci
158c2ecf20Sopenharmony_ci#ifdef CONFIG_DCB
168c2ecf20Sopenharmony_ciint register_dcbevent_notifier(struct notifier_block *nb);
178c2ecf20Sopenharmony_ciint unregister_dcbevent_notifier(struct notifier_block *nb);
188c2ecf20Sopenharmony_ciint call_dcbevent_notifiers(unsigned long val, void *v);
198c2ecf20Sopenharmony_ci#else
208c2ecf20Sopenharmony_cistatic inline int
218c2ecf20Sopenharmony_ciregister_dcbevent_notifier(struct notifier_block *nb)
228c2ecf20Sopenharmony_ci{
238c2ecf20Sopenharmony_ci	return 0;
248c2ecf20Sopenharmony_ci}
258c2ecf20Sopenharmony_ci
268c2ecf20Sopenharmony_cistatic inline int unregister_dcbevent_notifier(struct notifier_block *nb)
278c2ecf20Sopenharmony_ci{
288c2ecf20Sopenharmony_ci	return 0;
298c2ecf20Sopenharmony_ci}
308c2ecf20Sopenharmony_ci
318c2ecf20Sopenharmony_cistatic inline int call_dcbevent_notifiers(unsigned long val, void *v)
328c2ecf20Sopenharmony_ci{
338c2ecf20Sopenharmony_ci	return 0;
348c2ecf20Sopenharmony_ci}
358c2ecf20Sopenharmony_ci#endif /* CONFIG_DCB */
368c2ecf20Sopenharmony_ci
378c2ecf20Sopenharmony_ci#endif
38