summaryrefslogtreecommitdiff
path: root/drivers/staging/unisys/visorbus/devmajorminor_attr.h
blob: 0b55cb1df46a7bc36d22ac1284c900bab023928f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/* devmajorminor_attr.h
 *
 * Copyright (C) 2010 - 2013 UNISYS CORPORATION
 * All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or (at
 * your option) any later version.
 *
 * 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, GOOD TITLE or
 * NON INFRINGEMENT.  See the GNU General Public License for more
 * details.
 */

#ifndef __DEVMAJORMINOR_ATTR_H__
#define __DEVMAJORMINOR_ATTR_H__

#include "visorbus.h"		/* just to get visor_device declaration */
#include "timskmod.h"

int register_devmajorminor_attributes(struct visor_device *dev);
void unregister_devmajorminor_attributes(struct visor_device *dev);
int devmajorminor_create_file(struct visor_device *dev, const char *nam,
			      int major, int minor);
void devmajorminor_remove_file(struct visor_device *dev, int slot);
void devmajorminor_remove_all_files(struct visor_device *dev);

#endif