mlx_get_device_state
if ((mlx_get_device_state(unit, channel, target, &pd) == 0) &&
extern int mlx_get_device_state(int fd, int channel, int target, struct mlx_phys_drv *drv);