-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhisi-blk-flush-interface.h
33 lines (31 loc) · 1.48 KB
/
hisi-blk-flush-interface.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/*
* Copyright (c) Huawei Technologies Co., Ltd. 2019-2019. All rights reserved.
* Description: hisi block flush reduce interface
*
* This software is licensed under the terms of the GNU General Public
* License version 2, as published by the Free Software Foundation, and
* may be copied, distributed, and modified under those terms.
*
* 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 __HISI_BLK_FLUSH_INTERFACE_H__
#define __HISI_BLK_FLUSH_INTERFACE_H__
#include <linux/blkdev.h>
#include <linux/workqueue.h>
#include <linux/notifier.h>
extern void __cfi_hisi_blk_flush_work_fn(struct work_struct *work);
extern void hisi_blk_flush_work_fn(const struct work_struct *work);
extern int __cfi_hisi_blk_poweroff_flush_notifier_call(
struct notifier_block *powerkey_nb, unsigned long event, void *data);
extern int hisi_blk_poweroff_flush_notifier_call(
const struct notifier_block *powerkey_nb, unsigned long event,
const void *data);
extern int __init __cfi_hisi_blk_flush_init(void);
extern int __init hisi_blk_flush_init(void);
extern void hisi_blk_flush_reduced_queue_unregister(struct request_queue *q);
extern void hisi_blk_flush_list_register(struct list_head *lld_list);
extern void hisi_blk_flush_list_unregister(struct list_head *lld_list);
#endif /* __HISI_BLK_FLUSH_INTERFACE_H__ */