From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K39wY-0001UR-4E for qemu-devel@nongnu.org; Mon, 02 Jun 2008 09:19:22 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K39wV-0001Sf-LA for qemu-devel@nongnu.org; Mon, 02 Jun 2008 09:19:20 -0400 Received: from [199.232.76.173] (port=44691 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K39wV-0001SZ-Eu for qemu-devel@nongnu.org; Mon, 02 Jun 2008 09:19:19 -0400 Received: from mail.codesourcery.com ([65.74.133.4]:51111) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1K39wV-0003bc-8B for qemu-devel@nongnu.org; Mon, 02 Jun 2008 09:19:19 -0400 From: Paul Brook Subject: Re: [Qemu-devel] [4640] Enable SD card on creation. Date: Mon, 2 Jun 2008 14:19:08 +0100 References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200806021419.08543.paul@codesourcery.com> Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org On Monday 02 June 2008, Andrzej Zaborowski wrote: > Revision: 4640 > http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=4640 > Author: balrog > Date: 2008-06-02 00:55:08 +0000 (Mon, 02 Jun 2008) > > Log Message: > ----------- > Enable SD card on creation. > void sd_enable(SDState *sd, int enable) This shouldn't exist to start with. It should be using a qemu_irq, like the other GPIO pins do, and probably wants to be implemented outside sd.c anyway. The whole point of chip selects is to allow multiple devices on the same bus. See stellaris_ssi_bus for an example of a bus multiplexer with chip selects. Paul