summaryrefslogtreecommitdiff
path: root/include/wireless.h
blob: d209d69fed2e6ec5902390e366280df75106ed89 (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
/* Copyright 2013 The Chromium OS Authors. All rights reserved.
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 */

/* Wireless API for Chrome EC */

#ifndef __CROS_EC_WIRELESS_H
#define __CROS_EC_WIRELESS_H

#include "common.h"

/* Wireless power state for wireless_set_state() */
enum wireless_power_state {
	WIRELESS_OFF,
	WIRELESS_SUSPEND,
	WIRELESS_ON
};

/**
 * Set wireless power state.
 */
#ifdef CONFIG_WIRELESS
void wireless_set_state(enum wireless_power_state state);
#else
static inline void wireless_set_state(enum wireless_power_state state) { }
#endif

#endif  /* __CROS_EC_WIRELESS_H */