Line | |
---|
1 | #ifndef __mtools_scsi_h
|
---|
2 | #define __mtools_scsi_h
|
---|
3 |
|
---|
4 |
|
---|
5 | #define SCSI_READ 0x8
|
---|
6 | #define SCSI_WRITE 0xA
|
---|
7 | #define SCSI_IOMEGA 0xC
|
---|
8 | #define SCSI_INQUIRY 0x12
|
---|
9 | #define SCSI_MODE_SENSE 0x1a
|
---|
10 | #define SCSI_START_STOP 0x1b
|
---|
11 | #define SCSI_ALLOW_MEDIUM_REMOVAL 0x1e
|
---|
12 | #define SCSI_GROUP1 0x20
|
---|
13 | #define SCSI_READ_CAPACITY 0x25
|
---|
14 |
|
---|
15 |
|
---|
16 | typedef enum { SCSI_IO_READ, SCSI_IO_WRITE } scsi_io_mode_t;
|
---|
17 | int scsi_max_length(void);
|
---|
18 | int scsi_cmd(int fd, unsigned char cdb[6], int clen, scsi_io_mode_t mode,
|
---|
19 | void *data, size_t len, void *extra_data);
|
---|
20 | int scsi_open(const char *name, int flags, int mode, void **extra_data);
|
---|
21 |
|
---|
22 | #endif /* __mtools_scsi_h */
|
---|
Note:
See
TracBrowser
for help on using the repository browser.