Application Level Gateways

What is the difference between application level gateway and hardware level gateway in information security?