blob: b5ed85036b2a0bef88c231f2bae23b0dece8d8bb [file] [log] [blame]
Dan Williamsab68f262016-05-18 09:15:08 -07001/*
2 * Copyright(c) 2016 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 __DAX_H__
14#define __DAX_H__
15struct device;
Dan Williamsd76911e2016-07-19 17:51:40 -070016struct dax_dev;
Dan Williamsab68f262016-05-18 09:15:08 -070017struct resource;
18struct dax_region;
19void dax_region_put(struct dax_region *dax_region);
20struct dax_region *alloc_dax_region(struct device *parent,
21 int region_id, struct resource *res, unsigned int align,
22 void *addr, unsigned long flags);
Dan Williamsd76911e2016-07-19 17:51:40 -070023struct dax_dev *devm_create_dax_dev(struct dax_region *dax_region,
Dan Williamsa3ff4602017-07-18 17:49:14 -070024 int id, struct resource *res, int count);
Dan Williamsab68f262016-05-18 09:15:08 -070025#endif /* __DAX_H__ */