diff options
author | Myles Watson <mylesgw@gmail.com> | 2009-05-11 22:45:35 +0000 |
---|---|---|
committer | Myles Watson <mylesgw@gmail.com> | 2009-05-11 22:45:35 +0000 |
commit | bb3d8128ed41f14162daa2241eba824723bc84fc (patch) | |
tree | cd009ffa1d53f342d7654ef197309bf755fccf09 /src/include | |
parent | 0520d55f5b20ed0b5f192a695aff033320875233 (diff) | |
download | coreboot-staging-bb3d8128ed41f14162daa2241eba824723bc84fc.zip coreboot-staging-bb3d8128ed41f14162daa2241eba824723bc84fc.tar.gz |
Bring v3-style debug output to v2. Fix a minor typo.
Signed-off-by: Myles Watson <mylesgw@gmail.com>
Acked-by: Ronald G. Minnich <rminnich@gmail.com>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4270 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/device/device.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/include/device/device.h b/src/include/device/device.h index 7d7a6bc..be29d63 100644 --- a/src/include/device/device.h +++ b/src/include/device/device.h @@ -125,9 +125,19 @@ device_t dev_find_class (unsigned int class, device_t from); device_t dev_find_slot (unsigned int bus, unsigned int devfn); device_t dev_find_slot_on_smbus (unsigned int bus, unsigned int addr); +/* Debug functions */ +void resource_tree(struct device * root, int debug_level, int depth); +void print_resource_tree(struct device * root, int debug_level, + const char *msg); +void show_devs_tree(struct device *dev, int debug_level, int depth, int linknum); +void show_devs_subtree(struct device *root, int debug_level, const char *msg); +void show_all_devs(int debug_level, const char *msg); +void show_one_resource(int debug_level, struct device *dev, + struct resource *resource, const char *comment); +void show_all_devs_resources(int debug_level, const char* msg); /* Rounding for boundaries. - * Due to some chip bugs, go ahead and roung IO to 16 + * Due to some chip bugs, go ahead and round IO to 16 */ #define DEVICE_IO_ALIGN 16 #define DEVICE_MEM_ALIGN 4096 |