From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=60389 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OumpJ-0004QP-JS for qemu-devel@nongnu.org; Sun, 12 Sep 2010 09:42:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Oumfv-00085M-1U for qemu-devel@nongnu.org; Sun, 12 Sep 2010 09:32:56 -0400 Received: from mx1.redhat.com ([209.132.183.28]:55207) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Oumfu-00085C-Pn for qemu-devel@nongnu.org; Sun, 12 Sep 2010 09:32:54 -0400 Date: Sun, 12 Sep 2010 15:26:52 +0200 From: "Michael S. Tsirkin" Message-ID: <20100912132651.GI22982@redhat.com> References: <20d8ef39308fd49bf95d83485402fc20499674d3.1283931134.git.yamahata@valinux.co.jp> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20d8ef39308fd49bf95d83485402fc20499674d3.1283931134.git.yamahata@valinux.co.jp> Subject: [Qemu-devel] Re: [PATCH v2 2/9] pcie: helper functions for pcie extended capability. List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Isaku Yamahata Cc: skandasa@cisco.com, adhyas@gmail.com, etmartin@cisco.com, qemu-devel@nongnu.org, wexu2@cisco.com On Wed, Sep 08, 2010 at 04:39:35PM +0900, Isaku Yamahata wrote: > +#define PCI_EXP_SLTCTL_AIC_SHIFT 6 > +#define PCI_EXP_SLTCTL_AIC_ON (PCI_EXP_HP_IND_ON << PCI_EXP_SLTCTL_AIC_SHIFT) > +#define PCI_EXP_SLTCTL_AIC_BLINK (PCI_EXP_HP_IND_BLINK << PCI_EXP_SLTCTL_AIC_SHIFT) > +#define PCI_EXP_SLTCTL_AIC_OFF (PCI_EXP_HP_IND_OFF << PCI_EXP_SLTCTL_AIC_SHIFT) > + > +#define PCI_EXP_SLTCTL_PIC_SHIFT 8 > +#define PCI_EXP_SLTCTL_PIC_ON (PCI_EXP_HP_IND_ON << PCI_EXP_SLTCTL_PIC_SHIFT) > +#define PCI_EXP_SLTCTL_PIC_BLINK (PCI_EXP_HP_IND_BLINK << PCI_EXP_SLTCTL_PIC_SHIFT) > +#define PCI_EXP_SLTCTL_PIC_OFF (PCI_EXP_HP_IND_OFF << PCI_EXP_SLTCTL_PIC_SHIFT) It might be better to simply define the 6 macros we are using directly. The duplication here is minimal, and I guess it will be easier get them into linux this way. -- MST