Ecosystem science

A fungus grows on a fallen tree. What is the primary energy source supporting the fungus?