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 #include "common/vsoc/lib/region_view.h"
17 #include "common/vsoc/lib/region_control.h"
18 
19 const vsoc_signal_table_layout& vsoc::RegionView::incoming_signal_table() {
20   return control_->region_desc().host_to_guest_signal_table;
21 }
22 
23 // Returns a pointer to the table that will be used to post signals
24 const vsoc_signal_table_layout& vsoc::RegionView::outgoing_signal_table() {
25   return control_->region_desc().guest_to_host_signal_table;
26 }
27