1/* 2 * Copyright (C) 2017 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 17/** 18 * Defines the FastRPC interface between CHRE running on the SLPI and the host 19 * daemon running on the AP. 20 * 21 * Note that the interface name gets prefixed to the function names in the 22 * generated sources, with an underscore separating them. 23 * 24 * Refer to the implementations of these functions in the CHRE code that runs on 25 * the SLPI for documentation covering the parameters, return values, etc. 26 */ 27interface chre_slpi { 28 long start_thread(); 29 long wait_on_thread_exit(); 30 long initialize_reverse_monitor(); 31 long stop_thread(); 32 33 long get_message_to_host(rout sequence<octet> buffer, 34 rout unsigned long messageLen); 35 36 long deliver_message_from_host(in sequence<octet> message); 37}; 38