esp: handle "select without attention"
authorArtyom Tarasenko <atar4qemu@googlemail.com>
Sat, 5 Sep 2009 06:24:47 +0000 (06:24 +0000)
committerBlue Swirl <blauwirbel@gmail.com>
Sat, 5 Sep 2009 06:24:47 +0000 (06:24 +0000)
commitf2818f22016b072388363dd56c0c8cd5dfb936bb
tree83942a37a6ef21b602a562173a18a2bc02569356
parentf40d753718c72693c5f520f0d9899f6e50395e94
esp: handle "select without attention"

Up to now "select without attention" was handled the same way as
"select with attention". According to

http://www.ibiblio.org/pub/historic-linux/early-ports/Sparc/NCR/NCR53C9X.txt

select without ATN sends the CDB (Command Descriptor Block) directly,
whereas select with ATN sends one message phase byte
followed by 6, 10, or 12 command phase bytes.

The attached patch implements the behaviour described above.

Signed-off-by: Artyom Tarasenko <atar4qemu@gmail.com>
[blauwirbel@gmail.com: cleaned up formatting]
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
hw/esp.c