/* * libnvdimm - Non-volatile-memory Devices Subsystem * * Copyright(c) 2013-2015 Intel Corporation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of version 2 of the GNU General Public License as * published by the Free Software Foundation. * * 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 __LIBNVDIMM_H__#define __LIBNVDIMM_H__structnvdimm;structnvdimm_bus_descriptor;typedefint(*ndctl_fn)(structnvdimm_bus_descriptor*nd_desc,structnvdimm*nvdimm,unsignedintcmd,void*buf,unsignedintbuf_len);structnvdimm_bus_descriptor{unsignedlongdsm_mask;char*provider_name;ndctl_fnndctl;};structdevice;structnvdimm_bus;structnvdimm_bus*nvdimm_bus_register(structdevice*parent,structnvdimm_bus_descriptor*nfit_desc);voidnvdimm_bus_unregister(structnvdimm_bus*nvdimm_bus);#endif /* __LIBNVDIMM_H__ */