Received: by mail.netbsd.org (Postfix, from userid 605) id AF44F14A241; Tue, 26 Jul 2011 20:51:27 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id ACB2814A240 for ; Tue, 26 Jul 2011 20:51:26 +0000 (UTC) X-Virus-Scanned: amavisd-new at NetBSD.org Received: from mail.netbsd.org ([127.0.0.1]) by localhost (mail.NetBSD.org [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id rz3p6fpSUkSq for ; Tue, 26 Jul 2011 20:51:25 +0000 (UTC) Received: from cvs.netbsd.org (cvs.NetBSD.org [IPv6:2001:4f8:3:7:2e0:81ff:fe30:95bd]) by mail.netbsd.org (Postfix) with ESMTP id B3E9814A23D for ; Tue, 26 Jul 2011 20:51:25 +0000 (UTC) Received: by cvs.netbsd.org (Postfix, from userid 500) id 5A406175DF; Tue, 26 Jul 2011 20:51:25 +0000 (UTC) MIME-Version: 1.0 Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" Date: Tue, 26 Jul 2011 20:51:25 +0000 From: "David Young" Subject: CVS commit: src/sys/dev To: source-changes@NetBSD.org X-Mailer: log_accum Message-Id: <20110726205125.5A406175DF@cvs.netbsd.org> Sender: source-changes-owner@NetBSD.org List-Id: source-changes.NetBSD.org Precedence: bulk Reply-To: source-changes-d@NetBSD.org Mail-Reply-To: "David Young" Mail-Followup-To: source-changes-d@NetBSD.org Module Name: src Committed By: dyoung Date: Tue Jul 26 20:51:24 UTC 2011 Modified Files: src/sys/dev/cardbus: if_ath_cardbus.c if_atw_cardbus.c if_rtw_cardbus.c if_tlp_cardbus.c src/sys/dev/pci: if_an_pci.c if_ath_pci.c if_atw_pci.c if_bwi_pci.c if_en_pci.c if_ep_pci.c if_epic_pci.c if_esh_pci.c if_ex_pci.c if_le_pci.c if_mtd_pci.c if_ne_pci.c if_ntwoc_pci.c if_ral_pci.c if_rtw_pci.c if_tlp_pci.c if_wi_pci.c Log Message: Replace anonymous constants, 0x10, 0x14, ..., with PCI_BAR(0), PCI_BAR(1), .... There was no change in the generated assembly. I used this semantic patch: @ mapsit @ identifier bar; expression pact; @@ ( pci_mapreg_map | Cardbus_mapreg_map )(pact, bar, ...) @ depends on mapsit @ identifier mapsit.bar; @@ ( - #define bar 0x10 + #define bar PCI_BAR(0) | - #define bar 0x14 + #define bar PCI_BAR(1) | - #define bar 0x18 + #define bar PCI_BAR(2) | - #define bar 0x1C + #define bar PCI_BAR(3) | - #define bar 0x20 + #define bar PCI_BAR(4) ) To generate a diff of this commit: cvs rdiff -u -r1.42 -r1.43 src/sys/dev/cardbus/if_ath_cardbus.c cvs rdiff -u -r1.34 -r1.35 src/sys/dev/cardbus/if_atw_cardbus.c cvs rdiff -u -r1.40 -r1.41 src/sys/dev/cardbus/if_rtw_cardbus.c cvs rdiff -u -r1.68 -r1.69 src/sys/dev/cardbus/if_tlp_cardbus.c cvs rdiff -u -r1.31 -r1.32 src/sys/dev/pci/if_an_pci.c cvs rdiff -u -r1.41 -r1.42 src/sys/dev/pci/if_ath_pci.c cvs rdiff -u -r1.24 -r1.25 src/sys/dev/pci/if_atw_pci.c cvs rdiff -u -r1.11 -r1.12 src/sys/dev/pci/if_bwi_pci.c cvs rdiff -u -r1.35 -r1.36 src/sys/dev/pci/if_en_pci.c \ src/sys/dev/pci/if_ne_pci.c cvs rdiff -u -r1.51 -r1.52 src/sys/dev/pci/if_ep_pci.c cvs rdiff -u -r1.38 -r1.39 src/sys/dev/pci/if_epic_pci.c cvs rdiff -u -r1.28 -r1.29 src/sys/dev/pci/if_esh_pci.c cvs rdiff -u -r1.53 -r1.54 src/sys/dev/pci/if_ex_pci.c cvs rdiff -u -r1.50 -r1.51 src/sys/dev/pci/if_le_pci.c cvs rdiff -u -r1.15 -r1.16 src/sys/dev/pci/if_mtd_pci.c cvs rdiff -u -r1.26 -r1.27 src/sys/dev/pci/if_ntwoc_pci.c cvs rdiff -u -r1.17 -r1.18 src/sys/dev/pci/if_ral_pci.c cvs rdiff -u -r1.19 -r1.20 src/sys/dev/pci/if_rtw_pci.c cvs rdiff -u -r1.117 -r1.118 src/sys/dev/pci/if_tlp_pci.c cvs rdiff -u -r1.52 -r1.53 src/sys/dev/pci/if_wi_pci.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.