162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-only */
262306a36Sopenharmony_ci/*
362306a36Sopenharmony_ci * Copyright (c) 2010, Intel Corporation.
462306a36Sopenharmony_ci *
562306a36Sopenharmony_ci * Author: John Fastabend <john.r.fastabend@intel.com>
662306a36Sopenharmony_ci */
762306a36Sopenharmony_ci
862306a36Sopenharmony_ci#ifndef _DCB_EVENT_H
962306a36Sopenharmony_ci#define _DCB_EVENT_H
1062306a36Sopenharmony_ci
1162306a36Sopenharmony_cistruct notifier_block;
1262306a36Sopenharmony_ci
1362306a36Sopenharmony_cienum dcbevent_notif_type {
1462306a36Sopenharmony_ci	DCB_APP_EVENT = 1,
1562306a36Sopenharmony_ci};
1662306a36Sopenharmony_ci
1762306a36Sopenharmony_ci#ifdef CONFIG_DCB
1862306a36Sopenharmony_ciint register_dcbevent_notifier(struct notifier_block *nb);
1962306a36Sopenharmony_ciint unregister_dcbevent_notifier(struct notifier_block *nb);
2062306a36Sopenharmony_ciint call_dcbevent_notifiers(unsigned long val, void *v);
2162306a36Sopenharmony_ci#else
2262306a36Sopenharmony_cistatic inline int
2362306a36Sopenharmony_ciregister_dcbevent_notifier(struct notifier_block *nb)
2462306a36Sopenharmony_ci{
2562306a36Sopenharmony_ci	return 0;
2662306a36Sopenharmony_ci}
2762306a36Sopenharmony_ci
2862306a36Sopenharmony_cistatic inline int unregister_dcbevent_notifier(struct notifier_block *nb)
2962306a36Sopenharmony_ci{
3062306a36Sopenharmony_ci	return 0;
3162306a36Sopenharmony_ci}
3262306a36Sopenharmony_ci
3362306a36Sopenharmony_cistatic inline int call_dcbevent_notifiers(unsigned long val, void *v)
3462306a36Sopenharmony_ci{
3562306a36Sopenharmony_ci	return 0;
3662306a36Sopenharmony_ci}
3762306a36Sopenharmony_ci#endif /* CONFIG_DCB */
3862306a36Sopenharmony_ci
3962306a36Sopenharmony_ci#endif
40