X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Finclude%2Fdevices%2Fatapi.h;fp=palacios%2Finclude%2Fdevices%2Fatapi.h;h=f21876c698e5fae4db3e6fb90fa97e030c9ca138;hb=30f88bcf48e9bf46f69a8ef16dbadfe66ce145c9;hp=0000000000000000000000000000000000000000;hpb=a1a2be8eb002e13b1eb6ccaca40e4396f8816402;p=palacios.git diff --git a/palacios/include/devices/atapi.h b/palacios/include/devices/atapi.h new file mode 100644 index 0000000..f21876c --- /dev/null +++ b/palacios/include/devices/atapi.h @@ -0,0 +1,31 @@ +#ifndef __ATAPI_H__ +#define __ATAPI_H__ + +#ifdef __V3VEE__ + +#include +#include + +int handle_atapi_packet_command(struct vm_device * dev, + struct channel_t * channel, + ushort_t val); + +void rd_init_send_atapi_command(struct vm_device * dev, + struct channel_t * channel, + Bit8u command, int req_length, + int alloc_length, bool lazy); + +void rd_ready_to_send_atapi(struct vm_device * dev, + struct channel_t * channel); + +void rd_atapi_cmd_error(struct vm_device * dev, + struct channel_t * channel, + sense_t sense_key, asc_t asc); + +void rd_atapi_cmd_nop(struct vm_device * dev, struct channel_t * channel); +void rd_identify_ATAPI_drive(struct vm_device * dev, struct channel_t * channel); + +#endif // ! __V3VEE__ + + +#endif