Compressor bleed air from the turbos used for heating. Then heads through an air/ air heat exchanger where it uses exhaust gas to heat the bleed air or ram air to cool it. Temp control from cockpit uses a flapper valve to allow control of the temp by using exhaust or ram air mixture to heat or cool the bleed air from the turbos.
hope that helps