* Added a read_write() function to the scsi_periph module.
* Internally, moved the contents of periph_io() into a static read_write() function, and use it from the new periph_read_write() as well. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36988 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -101,6 +101,9 @@ typedef struct scsi_periph_interface {
|
||||
status_t (*handle_free)(scsi_periph_handle handle);
|
||||
|
||||
// *** default implementation for block devices ***
|
||||
status_t (*read_write)(scsi_periph_device_info *device, scsi_ccb *request,
|
||||
uint64 offset, size_t numBlocks, physical_entry* vecs, size_t vecCount,
|
||||
bool isWrite, size_t* _bytesTransferred);
|
||||
status_t (*io)(scsi_periph_device device, io_operation *operation,
|
||||
size_t *_bytesTransferred);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user