source: trunk/minix/commands/i386/mtools-3.9.7/scsi.h@ 10

Last change on this file since 10 was 9, checked in by Mattia Monga, 14 years ago

Minix 3.1.2a

File size: 615 bytes
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
16typedef enum { SCSI_IO_READ, SCSI_IO_WRITE } scsi_io_mode_t;
17int scsi_max_length(void);
18int scsi_cmd(int fd, unsigned char cdb[6], int clen, scsi_io_mode_t mode,
19 void *data, size_t len, void *extra_data);
20int 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.