eal: add function to query device status