Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: src/sys/dev

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
        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;

)(pact, bar, ...)

@ depends on mapsit @
- #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 \
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.

Home | Main Index | Thread Index | Old Index