PS2SDK
PS2 Homebrew Libraries
scsi.h
1
#ifndef _SCSI_H
2
#define _SCSI_H
3
4
struct
scsi_interface
5
{
6
void
*priv;
7
char
*name;
8
// cppcheck-suppress unusedStructMember
9
unsigned
int
devNr;
10
unsigned
int
max_sectors;
11
12
int (*get_max_lun)(
struct
scsi_interface
*scsi);
13
int (*queue_cmd)(
struct
scsi_interface
*scsi,
const
unsigned
char
*cmd,
unsigned
int
cmd_len,
unsigned
char
*data,
unsigned
int
data_len,
unsigned
int
data_wr);
14
};
15
16
extern
int
scsi_init(
void
);
17
extern
void
scsi_connect(
struct
scsi_interface
*scsi);
18
extern
void
scsi_disconnect(
struct
scsi_interface
*scsi);
19
20
enum
{
21
TEST_UNIT_READY = 0x00,
22
REQUEST_SENSE = 0x03,
23
INQUIRY = 0x12,
24
START_STOP_UNIT = 0x1b,
25
READ_CAPACITY_10 = 0x25,
26
READ_10 = 0x28,
27
WRITE_10 = 0x2a,
28
READ_16 = 0x88,
29
WRITE_16 = 0x8a,
30
SERVICE_ACTION_IN = 0x9e,
// READ_CAPACITY_16 and READ_LONG_16
31
};
32
33
#endif
scsi_interface
Definition:
scsi.h:4
iop
iLink
IEEE1394_bd
src
include
scsi.h
Generated on Fri Sep 4 2026 08:16:23 for PS2SDK by
1.8.17