* 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:
Axel Dörfler
2010-06-01 13:37:55 +00:00
parent 8825d45d57
commit 455b379c27
4 changed files with 158 additions and 134 deletions
+3
View File
@@ -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);