mirror of
https://github.com/vivier/EMILE.git
synced 2025-01-03 12:31:57 +00:00
moved to libscsi
This commit is contained in:
parent
672a59c142
commit
01737ea3ce
@ -1,17 +0,0 @@
|
||||
/*
|
||||
*
|
||||
* (c) 2004 Laurent Vivier <LaurentVivier@wanadoo.fr>
|
||||
*
|
||||
*/
|
||||
|
||||
#include <sys/types.h>
|
||||
|
||||
#include "scsi.h"
|
||||
|
||||
#define SECTOR_SIZE (2048)
|
||||
#define ISO_BLOCKS(X) (((X) / SECTOR_SIZE) + (((X)%SECTOR_SIZE)?1:0))
|
||||
|
||||
void device_read(off_t offset, void* buffer, size_t size)
|
||||
{
|
||||
scsi_READ(3, offset, ISO_BLOCKS(size), buffer, size);
|
||||
}
|
Loading…
Reference in New Issue
Block a user