ide: add drive->debug_mask switch