ATAPI state checks (from sector register) and common functions to
update/read it.