]> git.ipfire.org Git - thirdparty/qemu.git/commit - hw/misc/applesmc.c
applesmc: implement error status port
authorGabriel L. Somlo <gsomlo@gmail.com>
Fri, 16 Jun 2017 18:55:15 +0000 (14:55 -0400)
committerGerd Hoffmann <kraxel@redhat.com>
Fri, 23 Jun 2017 11:35:00 +0000 (13:35 +0200)
commit9e507d7e7769e3bb9a8b1a713d7bb20e16757469
tree60365d2e9aa6612dd667e77f73f6ddab4966ae1c
parent36bcd0350c7623a2911648b65eebf446f0f13b37
applesmc: implement error status port

As of release 10.12.4, OS X (Sierra) refuses to boot unless the
AppleSMC supports an additional I/O port, expected to provide an
error status code.

Update the [cmd|data]_write() and data_read() methods to implement
the required state machine, and add I/O region & methods to handle
access to the error port.

Originally proposed by Eric Shelton <eshelton@pobox.com> based in
part on FakeSMC (git://git.assembla.com/fakesmc.git).

Signed-off-by: Gabriel Somlo <gsomlo@gmail.com>
Reviewed-by: Alexander Graf <agraf@suse.de>
Reviewed-by: Phil Dennis-Jordan <phil@philjordan.eu>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-id: 1497639316-22202-3-git-send-email-gsomlo@gmail.com
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
hw/misc/applesmc.c