ieee1275: no-data-command bus specific method
authorDaniel Kiper <daniel.kiper@oracle.com>
Mon, 5 Mar 2018 14:11:18 +0000 (15:11 +0100)
committerDaniel Kiper <daniel.kiper@oracle.com>
Mon, 5 Mar 2018 14:11:18 +0000 (15:11 +0100)
commitc422bb60193512663c4854ee1ac6c1217f5e3178
treea766ae7746189ff72a78bbd03e90ff3957265f2c
parentf02037afe363f31218b4e0c63ef3a1176f51c232
ieee1275: no-data-command bus specific method

IEEE 1275-1994 Standard for Boot (Initialization Configuration)
Firmware: Core Requirements and Practices

E.3.2.2 Bus-specific methods for bus nodes

A package implementing the scsi-2 device type shall implement the
following bus-specific method:

no-data-command ( cmd-addr -- error? )
Executes a simple SCSI command, automatically retrying under
certain conditions.  cmd-addr is the address of a 6-byte command buffer
containing an SCSI command that does not have a data transfer phase.
Executes the command, retrying indefinitely with the same retry criteria
as retry-command.

error? is nonzero if an error occurred, zero otherwise.
NOTE no-data-command is a convenience function. It provides
no capabilities that are not present in retry-command, but for
those commands that meet its restrictions, it is easier to use.

Signed-off-by: Eric Snowberg <eric.snowberg@oracle.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
grub-core/kern/ieee1275/ieee1275.c
include/grub/ieee1275/ieee1275.h