1*e01b6f76SAndroid Build Coastguard Worker /*
2*e01b6f76SAndroid Build Coastguard Worker * Copyright (C) 2016 The Android Open Source Project
3*e01b6f76SAndroid Build Coastguard Worker *
4*e01b6f76SAndroid Build Coastguard Worker * Licensed under the Apache License, Version 2.0 (the "License");
5*e01b6f76SAndroid Build Coastguard Worker * you may not use this file except in compliance with the License.
6*e01b6f76SAndroid Build Coastguard Worker * You may obtain a copy of the License at
7*e01b6f76SAndroid Build Coastguard Worker *
8*e01b6f76SAndroid Build Coastguard Worker * http://www.apache.org/licenses/LICENSE-2.0
9*e01b6f76SAndroid Build Coastguard Worker *
10*e01b6f76SAndroid Build Coastguard Worker * Unless required by applicable law or agreed to in writing, software
11*e01b6f76SAndroid Build Coastguard Worker * distributed under the License is distributed on an "AS IS" BASIS,
12*e01b6f76SAndroid Build Coastguard Worker * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13*e01b6f76SAndroid Build Coastguard Worker * See the License for the specific language governing permissions and
14*e01b6f76SAndroid Build Coastguard Worker * limitations under the License.
15*e01b6f76SAndroid Build Coastguard Worker */
16*e01b6f76SAndroid Build Coastguard Worker #define LOG_TAG "VrHal"
17*e01b6f76SAndroid Build Coastguard Worker
18*e01b6f76SAndroid Build Coastguard Worker #include <hardware/vr.h>
19*e01b6f76SAndroid Build Coastguard Worker #include <hardware/hardware.h>
20*e01b6f76SAndroid Build Coastguard Worker
vr_init(struct vr_module * module)21*e01b6f76SAndroid Build Coastguard Worker static void vr_init(struct vr_module *module) {
22*e01b6f76SAndroid Build Coastguard Worker // NOOP
23*e01b6f76SAndroid Build Coastguard Worker }
24*e01b6f76SAndroid Build Coastguard Worker
vr_set_vr_mode(struct vr_module * module,bool enabled)25*e01b6f76SAndroid Build Coastguard Worker static void vr_set_vr_mode(struct vr_module *module, bool enabled) {
26*e01b6f76SAndroid Build Coastguard Worker // NOOP
27*e01b6f76SAndroid Build Coastguard Worker }
28*e01b6f76SAndroid Build Coastguard Worker
29*e01b6f76SAndroid Build Coastguard Worker static struct hw_module_methods_t vr_module_methods = {
30*e01b6f76SAndroid Build Coastguard Worker .open = NULL,
31*e01b6f76SAndroid Build Coastguard Worker };
32*e01b6f76SAndroid Build Coastguard Worker
33*e01b6f76SAndroid Build Coastguard Worker
34*e01b6f76SAndroid Build Coastguard Worker vr_module_t HAL_MODULE_INFO_SYM = {
35*e01b6f76SAndroid Build Coastguard Worker .common = {
36*e01b6f76SAndroid Build Coastguard Worker .tag = HARDWARE_MODULE_TAG,
37*e01b6f76SAndroid Build Coastguard Worker .module_api_version = VR_MODULE_API_VERSION_1_0,
38*e01b6f76SAndroid Build Coastguard Worker .hal_api_version = HARDWARE_HAL_API_VERSION,
39*e01b6f76SAndroid Build Coastguard Worker .id = VR_HARDWARE_MODULE_ID,
40*e01b6f76SAndroid Build Coastguard Worker .name = "Demo VR HAL",
41*e01b6f76SAndroid Build Coastguard Worker .author = "The Android Open Source Project",
42*e01b6f76SAndroid Build Coastguard Worker .methods = &vr_module_methods,
43*e01b6f76SAndroid Build Coastguard Worker },
44*e01b6f76SAndroid Build Coastguard Worker
45*e01b6f76SAndroid Build Coastguard Worker .init = vr_init,
46*e01b6f76SAndroid Build Coastguard Worker .set_vr_mode = vr_set_vr_mode,
47*e01b6f76SAndroid Build Coastguard Worker };
48