Factor out a few commonly duplicated functions from northbridge.c.
authorUwe Hermann <uwe@hermann-uwe.de>
Mon, 11 Oct 2010 19:36:13 +0000 (19:36 +0000)
committerUwe Hermann <uwe@hermann-uwe.de>
Mon, 11 Oct 2010 19:36:13 +0000 (19:36 +0000)
commit4b42a62966527f18f3894af953b0757080424b00
treea329063d9e80bb47bfa884d15479a3e66ef0e73a
parentaa8612ee903db447c2f59e0f084e35577fa49db4
Factor out a few commonly duplicated functions from northbridge.c.

The following functions are moved to devices/device_util.c:

 - ram_resource()

 - tolm_test()

 - find_pci_tolm()

There are only two tolm_test() / find_pci_tolm() which differ from the
defaults, one of them can easily be eliminated in a follow-up patch,
maybe even both, but for now keep it simple and only eliminate the majority.

Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de>
Acked-by: Peter Stuge <peter@stuge.se>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5937 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
25 files changed:
src/cpu/amd/sc520/sc520.c
src/devices/device_util.c
src/include/device/device.h
src/mainboard/emulation/qemu-x86/northbridge.c
src/northbridge/amd/amdfam10/northbridge.c
src/northbridge/amd/amdk8/northbridge.c
src/northbridge/amd/gx1/northbridge.c
src/northbridge/amd/gx2/northbridge.c
src/northbridge/amd/lx/northbridge.c
src/northbridge/intel/e7501/northbridge.c
src/northbridge/intel/e7520/northbridge.c
src/northbridge/intel/e7525/northbridge.c
src/northbridge/intel/i3100/northbridge.c
src/northbridge/intel/i440bx/northbridge.c
src/northbridge/intel/i440lx/northbridge.c
src/northbridge/intel/i82810/northbridge.c
src/northbridge/intel/i82830/northbridge.c
src/northbridge/intel/i855/northbridge.c
src/northbridge/intel/i945/northbridge.c
src/northbridge/via/cn400/northbridge.c
src/northbridge/via/cn700/northbridge.c
src/northbridge/via/cx700/northbridge.c
src/northbridge/via/vt8601/northbridge.c
src/northbridge/via/vt8623/northbridge.c
src/northbridge/via/vx800/northbridge.c