From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57159) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZtozF-0004MI-Uf for qemu-devel@nongnu.org; Tue, 03 Nov 2015 22:43:51 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZtozE-0002PU-TE for qemu-devel@nongnu.org; Tue, 03 Nov 2015 22:43:49 -0500 Date: Wed, 4 Nov 2015 14:17:13 +1100 From: David Gibson Message-ID: <20151104031713.GH21954@voom.redhat.com> References: <1445608598-24485-1-git-send-email-mark.cave-ayland@ilande.co.uk> <1445608598-24485-8-git-send-email-mark.cave-ayland@ilande.co.uk> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="CNfT9TXqV7nd4cfk" Content-Disposition: inline In-Reply-To: <1445608598-24485-8-git-send-email-mark.cave-ayland@ilande.co.uk> Subject: Re: [Qemu-devel] [PATCH 07/13] cuda.c: implement dummy IIC access commands List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Mark Cave-Ayland Cc: cormac@c-obrien.org, qemu-ppc@nongnu.org, qemu-devel@nongnu.org, agraf@suse.de --CNfT9TXqV7nd4cfk Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Oct 23, 2015 at 02:56:32PM +0100, Mark Cave-Ayland wrote: > These are used by MacOS 9 on boot. Here we return an error except for 4-b= yte > commands which write to the IIC bus. A bit of rationale about why some of these give errors and some don't would be nice. >=20 > Signed-off-by: Mark Cave-Ayland > --- > hw/misc/macio/cuda.c | 18 ++++++++++++++++++ > 1 file changed, 18 insertions(+) >=20 > diff --git a/hw/misc/macio/cuda.c b/hw/misc/macio/cuda.c > index 4fe901b..d3ec58a 100644 > --- a/hw/misc/macio/cuda.c > +++ b/hw/misc/macio/cuda.c > @@ -529,6 +529,24 @@ static void cuda_receive_packet(CUDAState *s, > cuda_send_packet_to_host(s, obuf, 3); > qemu_system_reset_request(); > break; > + case CUDA_COMBINED_FORMAT_IIC: > + obuf[0] =3D ERROR_PACKET; > + obuf[1] =3D 0x5; > + obuf[2] =3D CUDA_PACKET; > + obuf[3] =3D data[0]; > + cuda_send_packet_to_host(s, obuf, 4); > + break; > + case CUDA_GET_SET_IIC: > + if (len =3D=3D 4) { > + cuda_send_packet_to_host(s, obuf, 3); > + } else { > + obuf[0] =3D ERROR_PACKET; > + obuf[1] =3D 0x2; > + obuf[2] =3D CUDA_PACKET; > + obuf[3] =3D data[0]; > + cuda_send_packet_to_host(s, obuf, 4); > + } > + break; > default: > break; > } --=20 David Gibson | I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_ | _way_ _around_! http://www.ozlabs.org/~dgibson --CNfT9TXqV7nd4cfk Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBAgAGBQJWOXi5AAoJEGw4ysog2bOSpBEQAJFkbhNaeW76ZywG1D4brk7s BnGI8E7u4xAJ+5zaQds5kFT8GaDGFR0eqjiycdHZmsSQegs8ybJXAXHVGPe2zY4J WiFzXke0LKGF2AhB3KmPp5xTcYQot5KzepDj1NdicZWWcSXoa1fY+cOKPm3tF1A+ XD2wFCGz71bIln3f7/EqfvxQ3rJN9hLnRNgwC/SzaNGxo3/BCcX72HYM581hPNFs 8pQiw2tVCoDDTXxYTbQqX4WEn2INH8vgr4660RYq8D13wZS3fg1zkU5G3AnscTsP FqrxdciFlRmanB0+yETZ1GT1k/dsYS1CP7ugm1xS1tAPMiInfJUjbNDb7mWWpVMr WkoBeg2Q0lIapXTB6gcHESxi7qg27M4NptaPgjwEav51r3+L9a/CJzuf4kVdIanj mPDXfqb0ypPGRay50qd5Pkq39YrmHbP6p3WyrngFKH6z8Mzrhz1QEtEFmvc4TSKi Uo2WSIvEGRCkXtoAxAh43vQuNNHgpAdPgWpRvbxxdAaKNPreo+/5UHsa52aehRpZ eNdOjiDbOORAZequn24pmhXaIOO0dV8MTmtoHULgvHRRxHRZGoTOOdVyljxUjG1m qBzC7jH7/96GrXuMlQ4q59sAK0765rb7gXtcchkliIcM6aOPL8mXuShoEmF6x1y+ i7gBiTv2AjlGTVSKB6fV =bt8R -----END PGP SIGNATURE----- --CNfT9TXqV7nd4cfk--