ide: use ATA_* defines instead of *_STAT and *_ERR ones