1 /** 2 * 3 * TODO: description 4 * 5 * This file is a part of USB SCSI CAM for Haiku. 6 * May be used under terms of the MIT License 7 * 8 * Author(s): 9 * Siarzhuk Zharski <imker@gmx.li> 10 * 11 * 12 */ 13 #ifndef _PROTO_COMMON_H_ 14 #define _PROTO_COMMON_H_ 15 16 #ifndef _DEVICE_INFO_H_ 17 #include "device_info.h" 18 #endif /* _DEVICE_INFO_H_ */ 19 20 void bulk_callback(void *cookie, status_t status, void* data, uint32 actual_len); 21 22 status_t process_data_io(usb_device_info *udi, iovec *sg_data, int32 sg_count/*sg_buffer *sgb*/, EDirection dir); 23 24 void transfer_callback(usb_device_info *udi, CCB_SCSIIO *ccbio, 25 int32 residue, status_t status); 26 void sense_callback(usb_device_info *udi, CCB_SCSIIO *ccbio, 27 int32 residue, status_t status); 28 29 #endif /*_PROTO_COMMON_H_*/ 30 31