Received: from eggs.gnu.org ([2001:4830:134:3::10]:36992) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vvz1n-0006V4-8m for qemu-devel@nongnu.org; Wed, 25 Dec 2013 19:42:23 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vvz1i-0000Gm-N8 for qemu-devel@nongnu.org; Wed, 25 Dec 2013 19:42:19 -0500 Message-ID: <52BB7AFB.5080507@cn.fujitsu.com> Date: Thu, 26 Dec 2013 08:40:27 +0800 From: Li Guang MIME-Version: 1.0 References: <1387956078-10651-1-git-send-email-lig.fnst@cn.fujitsu.com> <52BB76AB.3060502@cn.fujitsu.com> In-Reply-To: Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=UTF-8; format=flowed Subject: Re: [Qemu-devel] [PATCH] hw/sd: move sdhci.h to include/hw List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: Peter Crosthwaite , QEMU Trivial , QEMU Developers , Igor Mitsyanko , Stefan Hajnoczi , Paolo Bonzini Peter Maydell wrote: > On 26 December 2013 00:22, Li Guang wrote: > >> Peter Maydell wrote: >> >>> On 25 December 2013 07:21, liguang wrote: >>> This is where your patch should have had an explanation >>> for why you're making this change. What is the user outside >>> of hw/sd/ that needs this header that means we should >>> move it into include/ ? >>> > >> I don't mean someone will include it outside of hw/sd, just in the >> sense of "header files be better in a directory called include", >> > QEMU's policy is that header files used only by other C files within > that directory can live in that directory; include is for headers which > define functions to be used between modules. > > >> A10's SDHC(really an odd controller, without public datasheet) emulation >> will use some of definitions in this file, and I think many other standard >> SDHC will also be happy to include this file. >> > I think all of these will live inside hw/sd so there's no need to move > the header. > > OK, thanks!