temp revert rk change
[firefly-linux-kernel-4.4.55.git] / include / linux / radio_ctrl / radio_class.h
1 /*
2  * Copyright (C) 2011 Motorola, Inc.
3  *
4  * This program is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License version 2 as
6  * published by the Free Software Foundation.
7  *
8  * This program is distributed in the hope that it will be useful,
9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11  * GNU General Public License for more details.
12  *
13  * You should have received a copy of the GNU General Public License
14  * along with this program; if not, write to the Free Software
15  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
16  * 02111-1307  USA
17  */
18 #ifndef __RADIO_CLASS_H__
19 #define __RADIO_CLASS_H__
20
21 struct radio_dev {
22         const char    *name;
23         struct device *dev;
24
25         ssize_t (*power_status)(struct radio_dev *rdev, char *buf);
26         ssize_t (*status)(struct radio_dev *rdev, char *buf);
27         ssize_t (*command)(struct radio_dev *rdev, char *buf);
28 };
29
30 extern void radio_dev_unregister(struct radio_dev *radio_cdev);
31 extern int radio_dev_register(struct radio_dev *radio_cdev);
32
33 #define RADIO_STATUS_MAX_LENGTH         32
34 #define RADIO_COMMAND_MAX_LENGTH        32
35 #define RADIO_BOOTMODE_NORMAL           0
36 #define RADIO_BOOTMODE_FLASH            1
37 #endif /* __RADIO_CLASS_H__ */