1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3** 4** Copyright 2022, The Android Open Source Project 5** 6** Licensed under the Apache License, Version 2.0 (the "License") 7** you may not use this file except in compliance with the License. 8** You may obtain a copy of the License at 9** 10** http://www.apache.org/licenses/LICENSE-2.0 11** 12** Unless required by applicable law or agreed to in writing, software 13** distributed under the License is distributed on an "AS IS" BASIS, 14** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15** See the License for the specific language governing permissions and 16** limitations under the License. 17*/ 18--> 19<irq-device-map> 20 <!-- This file maps devices (chips) that can send interrupts to the main processor (and bring it 21 out of sleep) to logical subsystems in userspace code. Since each Android device can have 22 a differently designed chipset, this mapping is expected to be empty by default and should 23 be overridden by device-specific configs. 24 This mapping helps the system to meaningfully attribute CPU wakeups to logical work that 25 happened on the device and the app activity that caused it. The devices are referred to by 26 their names as defined in the kernel. Currently, defined subsystems are: 27 - Alarm: Use this to denote wakeup alarms requested by apps via the AlarmManager API. 28 - Wifi: Use this to denote network traffic that uses the wifi transport. 29 - Sound_trigger: Use this to denote sound phrase detection, like the ones supported by 30 SoundTriggerManager. 31 - Sensor: Use this to denote wakeups due to sensor events. 32 - Cellular_data: Use this to denote network traffic on the cellular transport. 33 34 The overlay should use tags <device> and <subsystem> to describe this mapping in the 35 following way: 36 37 <irq-device-map> 38 <device name="device_name_1"> 39 <subsystem>Subsystem1</subsystem> 40 <subsystem>Subsystem2</subsystem> 41 : 42 : 43 </device> 44 <device name="device_name_2"> 45 : 46 </device> 47 : 48 </irq-device-map> 49 50 The tag <device> should have a "name" attribute specifying the kernel name of the device. 51 Each <device> tag can then enclose multiple <subsystem> tags. Each <subsystem> tag should 52 enclose the name of the logical subsystems (one of the ones defined above) as text. 53 Undefined subsystem names will be ignored by the framework. 54 --> 55</irq-device-map>