1 /* 2 * Copyright (c) 2003-2005 by Siarzhuk Zharski <imker@gmx.li> 3 * Distributed under the terms of the BSD License. 4 * 5 */ 6 #ifndef _PROTO_COMMON_H_ 7 #define _PROTO_COMMON_H_ 8 9 #ifndef _DEVICE_INFO_H_ 10 #include "device_info.h" 11 #endif /* _DEVICE_INFO_H_ */ 12 13 void bulk_callback(void *cookie, 14 uint32 status, 15 void *data, 16 uint32 actual_len); 17 18 status_t process_data_io(usb_device_info *udi, iovec *sg_data, int32 sg_count/*sg_buffer *sgb*/, EDirection dir); 19 20 void transfer_callback(usb_device_info *udi, 21 CCB_SCSIIO *ccbio, 22 int32 residue, 23 status_t status); 24 void sense_callback(usb_device_info *udi, 25 CCB_SCSIIO *ccbio, 26 int32 residue, 27 status_t status); 28 #endif /*_PROTO_COMMON_H_*/ 29