Message ID | 4FCB7CA7.4010602@niif.hu |
---|---|
State | Not Applicable |
Headers | show
Return-Path: <u-boot-bounces@lists.denx.de> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 16CA7B6FA5 for <incoming@patchwork.ozlabs.org>; Mon, 4 Jun 2012 03:45:39 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 5EFAB28095; Sun, 3 Jun 2012 19:44:59 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id IFJLY57AEq63; Sun, 3 Jun 2012 19:44:59 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id EE025280CD; Sun, 3 Jun 2012 19:44:07 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id CDE3B28082 for <u-boot@lists.denx.de>; Sun, 3 Jun 2012 17:10:30 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id HihCB-NE0e+g for <u-boot@lists.denx.de>; Sun, 3 Jun 2012 17:10:30 +0200 (CEST) X-Greylist: delayed 437 seconds by postgrey-1.27 at theia; Sun, 03 Jun 2012 17:10:28 CEST X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from strudel.ki.iif.hu (smtp.ki.iif.hu [193.6.222.244]) by theia.denx.de (Postfix) with ESMTP id 030B12807E for <u-boot@lists.denx.de>; Sun, 3 Jun 2012 17:10:28 +0200 (CEST) Received: from cirkusz.lvs.iif.hu (cirkusz.lvs.iif.hu [193.225.14.182]) by strudel.ki.iif.hu (Postfix) with ESMTP id 007F91B8 for <u-boot@lists.denx.de>; Sun, 3 Jun 2012 17:03:11 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at cirkusz.lvs.iif.hu Received: from strudel.ki.iif.hu ([IPv6:::ffff:193.6.222.244]) by cirkusz.lvs.iif.hu (cirkusz.lvs.iif.hu [::ffff:193.225.14.72]) (amavisd-new, port 10024) with ESMTP id aLdGJa51C8CX for <u-boot@lists.denx.de>; Sun, 3 Jun 2012 17:03:07 +0200 (CEST) Received: from [192.168.5.102] (business-178-48-28-137.business.broadband.hu [178.48.28.137]) by strudel.ki.iif.hu (Postfix) with ESMTPSA id D2A7F1B5 for <u-boot@lists.denx.de>; Sun, 3 Jun 2012 17:03:05 +0200 (CEST) Message-ID: <4FCB7CA7.4010602@niif.hu> Date: Sun, 03 Jun 2012 17:03:03 +0200 From: =?UTF-8?B?VsOhZ8OzIFRpYm9y?= <oreggin@niif.hu> User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.4) Gecko/20120501 Thunderbird/10.0.4 MIME-Version: 1.0 To: u-boot@lists.denx.de References: <20120417190649.GA22913@w500.iskon.local> In-Reply-To: <20120417190649.GA22913@w500.iskon.local> X-Mailman-Approved-At: Sun, 03 Jun 2012 19:43:52 +0200 Subject: Re: [U-Boot] [PATCH] fix IDE_BUS(dev) macro X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.11 Precedence: list List-Id: U-Boot discussion <u-boot.lists.denx.de> List-Unsubscribe: <http://lists.denx.de/mailman/options/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=unsubscribe> List-Archive: <http://lists.denx.de/pipermail/u-boot> List-Post: <mailto:u-boot@lists.denx.de> List-Help: <mailto:u-boot-request@lists.denx.de?subject=help> List-Subscribe: <http://lists.denx.de/mailman/listinfo/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=subscribe> Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de |
diff --git a/include/ide.h b/include/ide.h index 8ecc9dd..385e909 100644 --- a/include/ide.h +++ b/include/ide.h @@ -24,7 +24,7 @@ #ifndef _IDE_H #define _IDE_H -#define IDE_BUS(dev) (dev >> 1) +#define IDE_BUS(dev) (dev / (CONFIG_SYS_IDE_MAXDEVICE / CONFIG_SYS_IDE_MAXBUS)) #define ATA_CURR_BASE(dev)