summaryrefslogtreecommitdiff
path: root/payloads/libpayload/include/libpayload.h
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2008-04-11 18:01:50 +0000
committerUwe Hermann <uwe@hermann-uwe.de>2008-04-11 18:01:50 +0000
commitfad8c2bd7ca3605fdae3548b8a932aa309871931 (patch)
tree26cbef49876963512753dd271f9fafcff77baf26 /payloads/libpayload/include/libpayload.h
parent54315533cc8f162d5251458c6b9fa9f38c3f47f0 (diff)
downloadcoreboot-fad8c2bd7ca3605fdae3548b8a932aa309871931.tar.xz
Various small consistency fixes (trivial):
- Use _FOO_H include guard format everywhere. - Add missing speaker.c prototypes to libpayload.h. - Consistently use short form u8/u16/u32 instead of uint8_t et. al. - kcofig: Use 'depends on' instead of 'depends', which seems deprecated. Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de> Acked-by: Uwe Hermann <uwe@hermann-uwe.de> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3234 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'payloads/libpayload/include/libpayload.h')
-rw-r--r--payloads/libpayload/include/libpayload.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/payloads/libpayload/include/libpayload.h b/payloads/libpayload/include/libpayload.h
index 32deabf2b3..e197e430fd 100644
--- a/payloads/libpayload/include/libpayload.h
+++ b/payloads/libpayload/include/libpayload.h
@@ -27,8 +27,8 @@
* SUCH DAMAGE.
*/
-#ifndef LIBPAYLOAD_H
-#define LIBPAYLOAD_H
+#ifndef _LIBPAYLOAD_H
+#define _LIBPAYLOAD_H
#include <autoconf.h>
#include <stddef.h>
@@ -78,6 +78,11 @@ void serial_putchar(unsigned char c);
int serial_havechar(void);
int serial_getchar(void);
+/* drivers/speaker.c */
+void speaker_enable(u16 freq);
+void speaker_disable(void);
+void speaker_tone(u16 freq, unsigned int duration);
+
/* video/video.c */
int video_console_init(void);
void video_console_putchar(unsigned int ch);