blob: 305c181509a63aaf07a192d71b41788694f3ed89 [file] [log] [blame]
Simon A. F. Lund40267ef2016-09-16 14:25:08 +02001/*
2 * Copyright (C) 2016 CNEX Labs. All rights reserved.
3 * Initial release: Matias Bjorling <matias@cnexlabs.com>
4 *
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License version
7 * 2 as published by the Free Software Foundation.
8 *
9 * This program is distributed in the hope that it will be useful, but
10 * WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program; see the file COPYING. If not, write to
16 * the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139,
17 * USA.
18 *
19 */
20
21#ifndef LIGHTNVM_H
22#define LIGHTNVM_H
23
24#include <linux/lightnvm.h>
25
26/* core -> sysfs.c */
Arnd Bergmann1e3aeae2016-09-16 14:25:09 +020027int __must_check nvm_sysfs_register_dev(struct nvm_dev *);
Simon A. F. Lund40267ef2016-09-16 14:25:08 +020028void nvm_sysfs_unregister_dev(struct nvm_dev *);
29int nvm_sysfs_register(void);
30void nvm_sysfs_unregister(void);
31
32/* sysfs > core */
33void nvm_free(struct nvm_dev *);
34
35#endif