libata: add ATAPI_* cmd types and implement atapi_cmd_type()