2 * Copyright (c) 2016, Fuzhou Rockchip Electronics Co., Ltd
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
10 #ifndef __RKNAND_BLK_H
11 #define __RKNAND_BLK_H
13 #include <linux/semaphore.h>
15 #define MAX_PART_COUNT 32
18 unsigned char name[32];
25 struct nand_blk_ops *nandr;
26 struct list_head list;
29 unsigned long off_size;
41 struct completion thread_exit;
44 wait_queue_head_t thread_wq; /* thread wait queue */
45 struct request_queue *rq;
46 spinlock_t queue_lock; /* queue lock */
47 struct list_head devs;
51 void rknand_dev_suspend(void);
52 void rknand_dev_resume(void);
53 void rknand_dev_shutdown(void);
54 void rknand_dev_flush(void);
55 int __init rknand_dev_init(void);
56 int rknand_dev_exit(void);