From b0259117f214a80d1ca945bd1fe05b6b3d9858a9 Mon Sep 17 00:00:00 2001 From: Myles Watson Date: Fri, 5 Mar 2010 18:27:19 +0000 Subject: 1. Move run_bios prototype to device.h 2. Use time.h for get_time() and move tb_freq into functions.c 3. Move read_io and write_io to io.c and make them static 4. Make a couple of functions static in interrupt.c 5. Refactor a cast from char[] to u64 to get rid of potential alignment problems and a warning Signed-off-by: Myles Watson Acked-by: Stefan Reinauer git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5191 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- src/include/device/device.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/include/device') diff --git a/src/include/device/device.h b/src/include/device/device.h index d0cc370980..df8fb5f6d5 100644 --- a/src/include/device/device.h +++ b/src/include/device/device.h @@ -117,6 +117,9 @@ const char *bus_path(struct bus *bus); void dev_set_enabled(device_t dev, int enable); void disable_children(struct bus *bus); +/* Option ROM helper functions */ +void run_bios(struct device *dev, unsigned long addr); + /* Helper functions */ device_t find_dev_path(struct bus *parent, struct device_path *path); device_t alloc_find_dev(struct bus *parent, struct device_path *path); -- cgit v1.2.3