blob: 0b0ff24231617f99bd194d45c549b0c5909d4e18 [file] [log] [blame]
Dan Williamsb94d5232015-05-19 22:54:31 -04001/*
2 * Copyright(c) 2013-2015 Intel Corporation. All rights reserved.
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of version 2 of the GNU General Public License as
6 * published by the Free Software Foundation.
7 *
8 * This program is distributed in the hope that it will be useful, but
9 * WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 * General Public License for more details.
12 */
13#ifndef __ND_CORE_H__
14#define __ND_CORE_H__
15#include <linux/libnvdimm.h>
16#include <linux/device.h>
17
18struct nvdimm_bus {
19 struct nvdimm_bus_descriptor *nd_desc;
Dan Williams45def222015-04-26 19:26:48 -040020 struct list_head list;
Dan Williamsb94d5232015-05-19 22:54:31 -040021 struct device dev;
22 int id;
23};
Dan Williams45def222015-04-26 19:26:48 -040024
25int __init nvdimm_bus_init(void);
26void __exit nvdimm_bus_exit(void);
27int nvdimm_bus_create_ndctl(struct nvdimm_bus *nvdimm_bus);
28void nvdimm_bus_destroy_ndctl(struct nvdimm_bus *nvdimm_bus);
Dan Williamsb94d5232015-05-19 22:54:31 -040029#endif /* __ND_CORE_H__ */