net/x25: do not hold the cpu too long in x25_new_lci()
[linux-stable.git] / drivers / dax / device-dax.h
blob688b051750bd7cc615849491605bc0ecf50d9101
1 /*
2 * Copyright(c) 2016 Intel Corporation. All rights reserved.
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.
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.
13 #ifndef __DEVICE_DAX_H__
14 #define __DEVICE_DAX_H__
15 struct device;
16 struct dev_dax;
17 struct resource;
18 struct dax_region;
19 void dax_region_put(struct dax_region *dax_region);
20 struct dax_region *alloc_dax_region(struct device *parent,
21 int region_id, struct resource *res, unsigned int align,
22 void *addr, unsigned long flags);
23 struct dev_dax *devm_create_dev_dax(struct dax_region *dax_region,
24 int id, struct resource *res, int count);
25 #endif /* __DEVICE_DAX_H__ */