1*7ba4dab5SXin Li /* 2*7ba4dab5SXin Li * Copyright (C) 2016 The Android Open Source Project 3*7ba4dab5SXin Li * 4*7ba4dab5SXin Li * Licensed under the Apache License, Version 2.0 (the "License"); 5*7ba4dab5SXin Li * you may not use this file except in compliance with the License. 6*7ba4dab5SXin Li * You may obtain a copy of the License at 7*7ba4dab5SXin Li * 8*7ba4dab5SXin Li * http://www.apache.org/licenses/LICENSE-2.0 9*7ba4dab5SXin Li * 10*7ba4dab5SXin Li * Unless required by applicable law or agreed to in writing, software 11*7ba4dab5SXin Li * distributed under the License is distributed on an "AS IS" BASIS, 12*7ba4dab5SXin Li * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13*7ba4dab5SXin Li * See the License for the specific language governing permissions and 14*7ba4dab5SXin Li * limitations under the License. 15*7ba4dab5SXin Li */ 16*7ba4dab5SXin Li 17*7ba4dab5SXin Li #include <hardware/nvram.h> 18*7ba4dab5SXin Li 19*7ba4dab5SXin Li // This function is defined in testing_nvram_implementation.cpp. 20*7ba4dab5SXin Li int testing_nvram_open(const hw_module_t* module, 21*7ba4dab5SXin Li const char* device_id, 22*7ba4dab5SXin Li hw_device_t** device_ptr); 23*7ba4dab5SXin Li 24*7ba4dab5SXin Li static struct hw_module_methods_t testing_nvram_module_methods = { 25*7ba4dab5SXin Li .open = testing_nvram_open, 26*7ba4dab5SXin Li }; 27*7ba4dab5SXin Li 28*7ba4dab5SXin Li struct nvram_module HAL_MODULE_INFO_SYM 29*7ba4dab5SXin Li __attribute__((visibility("default"))) = { 30*7ba4dab5SXin Li .common = {.tag = HARDWARE_MODULE_TAG, 31*7ba4dab5SXin Li .module_api_version = NVRAM_MODULE_API_VERSION_0_1, 32*7ba4dab5SXin Li .hal_api_version = HARDWARE_HAL_API_VERSION, 33*7ba4dab5SXin Li .id = NVRAM_HARDWARE_MODULE_ID, 34*7ba4dab5SXin Li .name = "NVRAM HAL S/W testing sample", 35*7ba4dab5SXin Li .author = "The Android Open Source Project", 36*7ba4dab5SXin Li .methods = &testing_nvram_module_methods, 37*7ba4dab5SXin Li .dso = 0, 38*7ba4dab5SXin Li .reserved = {}}, 39*7ba4dab5SXin Li }; 40