Files
OpenCellular/include/wireless.h
Vic Yang 8a5c38420b Initial Glower commit
The first commit for the Glower board.

BRANCH=None
BUG=chrome-os-partner:35308
TEST=Boot on Glower and check console is responsive.

Change-Id: I73bc60b8d54b3c570f0822824ad9a66e0fe467a1
Signed-off-by: Vic Yang <victoryang@google.com>
Reviewed-on: https://chromium-review.googlesource.com/239257
Tested-by: Vic Yang <victoryang@chromium.org>
Reviewed-by: Randall Spangler <rspangler@chromium.org>
Commit-Queue: Vic Yang <victoryang@chromium.org>
2015-01-20 20:56:43 +00:00

30 lines
664 B
C

/* Copyright (c) 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 */