Engine light on and Engine Loss Power on 2004 Chevrolet Silverado 2500 HD

The loss of power warning on, revs are high I drove with brakes did not have to use gas pedal all the way to Auto Shop. Shop not sure what is wrong codes indicate maybe with gas mixture?
Any thoughts for me.