blob: 47300f9c218b3c8b7d8833253c0f29778c30b675 [file] [log] [blame]
Simon Wilson907b20a2014-02-06 18:42:17 -08001/*
2 * Copyright (C) 2012 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16#include <errno.h>
17#include <string.h>
18#include <sys/types.h>
19#include <sys/stat.h>
20#include <fcntl.h>
21
22#define LOG_TAG "Legacy MCU HAL"
23#include <utils/Log.h>
24
25#include <hardware/hardware.h>
26#include <hardware/mcu.h>
27
28static int mcu_init(struct mcu_module *module)
29{
30 return 0;
31}
32
33static int mcu_send_message(struct mcu_module *module, const char *msg,
34 const void *arg, size_t arg_len, void **result,
35 size_t *result_len)
36{
37 return 0;
38}
39
40static struct hw_module_methods_t mcu_module_methods = {
41 .open = NULL,
42};
43
44struct mcu_module HAL_MODULE_INFO_SYM = {
45 .common = {
46 .tag = HARDWARE_MODULE_TAG,
47 .module_api_version = MCU_MODULE_API_VERSION_0_1,
48 .hal_api_version = HARDWARE_HAL_API_VERSION,
49 .id = MCU_HARDWARE_MODULE_ID,
50 .name = "Default MCU HAL",
51 .author = "The Android Open Source Project",
52 .methods = &mcu_module_methods,
53 },
54
55 .init = mcu_init,
56 .sendMessage = mcu_send_message,
57};