Dan Williams | b94d523 | 2015-05-19 22:54:31 -0400 | [diff] [blame] | 1 | /* |
| 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 | |
| 18 | struct nvdimm_bus { |
| 19 | struct nvdimm_bus_descriptor *nd_desc; |
Dan Williams | 45def22 | 2015-04-26 19:26:48 -0400 | [diff] [blame^] | 20 | struct list_head list; |
Dan Williams | b94d523 | 2015-05-19 22:54:31 -0400 | [diff] [blame] | 21 | struct device dev; |
| 22 | int id; |
| 23 | }; |
Dan Williams | 45def22 | 2015-04-26 19:26:48 -0400 | [diff] [blame^] | 24 | |
| 25 | int __init nvdimm_bus_init(void); |
| 26 | void __exit nvdimm_bus_exit(void); |
| 27 | int nvdimm_bus_create_ndctl(struct nvdimm_bus *nvdimm_bus); |
| 28 | void nvdimm_bus_destroy_ndctl(struct nvdimm_bus *nvdimm_bus); |
Dan Williams | b94d523 | 2015-05-19 22:54:31 -0400 | [diff] [blame] | 29 | #endif /* __ND_CORE_H__ */ |