Description, Status codes returned – Intel Extensible Firmware Interface User Manual
Page 531

Protocols
— SCSI Bus Support
Version 1.10
12/01/02
13-11
Description
The
EFI_SCSI_PASS_THRU_PROTOCOL.GetNextDevice()
function retrieves the Target
ID and LUN of a SCSI device present on a SCSI channel. If
Target
is
0xFFFFFFFF
, then the
Target ID and LUN of the first SCSI device is returned in
Target
and
Lun
and
EFI_SUCCESS
is returned. If
Target
and
Lun
is a Target ID and LUN value that was returned on a previous call
to
GetNextDevice()
, then the Target ID and LUN of the next SCSI device on the SCSI
channel is returned in
Target
and
Lun
, and
EFI_SUCCESS
is returned. If
Target
is not
0xFFFFFFFF
, and
Target
and
Lun
were not returned on a previous call to
GetNextDevice()
, then
EFI_INVALID_PARAMETER
is returned. If
Target
and
Lun
are the Target ID and LUN of the last SCSI device on the SCSI channel, then
EFI_NOT_FOUND
is returned.
Status Codes Returned
EFI_SUCCESS
The Target ID and LUN of the next SCSI device on the SCSI
channel was returned in
Target
and
Lun
.
EFI_NOT_FOUND
There are no more SCSI devices on this SCSI channel.
EFI_INVALID_PARAMETER
Target
is not
0xFFFFFFFF
, and
Target
and
Lun
were not
returned on a previous call to
GetNextDevice()
.