X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?p=palacios.git;a=blobdiff_plain;f=palacios%2Fsrc%2Fdevices%2Fatapi-types.h;h=299a2bb8ca8bf0f4fee3347792bc75f918f75c37;hp=3fd752d818bf337ca23863679388674a8ef67cdf;hb=c30d1b88a60c3a8df426ce81553675bbe4afef52;hpb=33bf43b34feba36dcbfa47f8f559e5862f531393 diff --git a/palacios/src/devices/atapi-types.h b/palacios/src/devices/atapi-types.h index 3fd752d..299a2bb 100644 --- a/palacios/src/devices/atapi-types.h +++ b/palacios/src/devices/atapi-types.h @@ -67,6 +67,36 @@ struct atapi_sense_data { } __attribute__((packed)); +struct atapi_error_recovery { + union { + uint8_t buf[12]; + struct { + uint8_t page_code : 6; + uint8_t rsvd : 1; + uint8_t page_ctrl : 1; + uint8_t page_len; + uint8_t dcr : 1; + uint8_t dte : 1; + uint8_t per : 1; + uint8_t rsvd1 : 1; + uint8_t rc : 1; + uint8_t tb : 1; + uint8_t arre : 1; + uint8_t awre : 1; + uint8_t rd_retry_cnt; + uint8_t correct_spin; + uint8_t head_offset; + uint8_t data_strobe_offset; + uint8_t emcdr : 2; + uint8_t rsvd2 : 6; + uint8_t wr_retry_cnt; + uint8_t rsvd3; + uint16_t recovery_time_limit; + } __attribute__((packed)); + } __attribute__((packed)); +} __attribute__((packed)); + + struct atapi_read10_cmd { @@ -282,29 +312,6 @@ struct atapi_inquiry_resp { -struct atapi_error_recovery { - uint8_t page_code : 6; - uint8_t rsvd : 1; - uint8_t page_ctrl : 1; - uint8_t page_len; - uint8_t dcr : 1; - uint8_t dte : 1; - uint8_t per : 1; - uint8_t rsvd1 : 1; - uint8_t rc : 1; - uint8_t tb : 1; - uint8_t arre : 1; - uint8_t awre : 1; - uint8_t rd_retry_cnt; - uint8_t correct_spin; - uint8_t head_offset; - uint8_t data_strobe_offset; - uint8_t emcdr : 2; - uint8_t rsvd2 : 6; - uint8_t wr_retry_cnt; - uint8_t rsvd3; - uint16_t recovery_time_limit; -} __attribute__((packed)); struct atapi_cdrom_caps {