sdk-core
v2026.11.05
PS2 SDK - core tier (build-critical EE/IOP modules)
Toggle main menu visibility
Loading...
Searching...
No Matches
scsi.h
Go to the documentation of this file.
1
5
#ifndef _SCSI_H
6
#define _SCSI_H
7
8
struct
scsi_interface
9
{
10
void
*priv;
11
char
*name;
12
// cppcheck-suppress unusedStructMember
13
unsigned
int
devNr;
14
unsigned
int
max_sectors;
15
16
int (*get_max_lun)(
struct
scsi_interface
*scsi);
17
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);
18
};
19
20
extern
int
scsi_init(
void
);
21
extern
void
scsi_connect(
struct
scsi_interface
*scsi);
22
extern
void
scsi_disconnect(
struct
scsi_interface
*scsi);
23
24
enum
{
25
TEST_UNIT_READY = 0x00,
26
REQUEST_SENSE = 0x03,
27
INQUIRY = 0x12,
28
START_STOP_UNIT = 0x1b,
29
READ_CAPACITY_10 = 0x25,
30
READ_10 = 0x28,
31
WRITE_10 = 0x2a,
32
READ_16 = 0x88,
33
WRITE_16 = 0x8a,
34
SERVICE_ACTION_IN = 0x9e,
// READ_CAPACITY_16 and READ_LONG_16
35
};
36
37
#endif
scsi_interface
Definition
scsi.h:9
core
IEEE1394_bd
src
include
scsi.h
Generated by
1.18.0