mirror of
https://github.com/vivier/EMILE.git
synced 2025-03-11 08:32:45 +00:00
add scsi_get_blocksize()
This commit is contained in:
parent
38e161e94c
commit
ec64b11647
@ -9,7 +9,7 @@ CPPFLAGS = -I$(TOP)/../libmacos -DARCH_M68K
|
||||
LIBRARY = libscsi.a
|
||||
|
||||
SOURCES = scsi_read_sector.c scsi_command.c scsi_INQUIRY.c scsi_READ.c \
|
||||
scsi_open.c scsi_close.c scsi_READ_CAPACITY.c
|
||||
scsi_open.c scsi_close.c scsi_READ_CAPACITY.c scsi_get_blocksize.c
|
||||
|
||||
HEADERS = libscsi.h
|
||||
|
||||
|
@ -22,3 +22,4 @@ extern int scsi_READ_CAPACITY(int target, char *buffer, size_t count);
|
||||
extern scsi_device_t *scsi_open(int target);
|
||||
extern int scsi_read_sector(scsi_device_t *device, off_t offset, void* buffer, size_t size);
|
||||
extern int scsi_close(scsi_device_t *device);
|
||||
extern int scsi_get_blocksize(scsi_device_t *device);
|
||||
|
12
libscsi/scsi_get_blocksize.c
Normal file
12
libscsi/scsi_get_blocksize.c
Normal file
@ -0,0 +1,12 @@
|
||||
/*
|
||||
*
|
||||
* (c) 2005 Laurent Vivier <LaurentVivier@wanadoo.fr>
|
||||
*
|
||||
*/
|
||||
|
||||
#include "libscsi.h"
|
||||
|
||||
int scsi_get_blocksize(scsi_device_t *device)
|
||||
{
|
||||
return device->sector_size;
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user