diff options
author | Bill Richardson <wfrichar@chromium.org> | 2011-10-03 14:00:58 -0700 |
---|---|---|
committer | Bill Richardson <wfrichar@chromium.org> | 2011-10-05 11:09:20 -0700 |
commit | 253a58e3834631e4688da45d31b0c475926bcbd6 (patch) | |
tree | d1a1555a98adf7323c035f554dd44bb765354b2f /firmware/lib/include/vboot_audio.h | |
parent | 791c95fa23d93fb6104f3c6ec248c7ad4c773b8c (diff) | |
download | vboot-253a58e3834631e4688da45d31b0c475926bcbd6.tar.gz |
Refactor dev-mode delay handling into a separate file.
BUG=none
TEST=manual
cd src/platform/vboot_reference
make && make runtests
Change-Id: I56feceb7d4fce80e4f50d5d7875eafef325363cc
Reviewed-on: http://gerrit.chromium.org/gerrit/8659
Reviewed-by: Bill Richardson <wfrichar@chromium.org>
Tested-by: Bill Richardson <wfrichar@chromium.org>
Reviewed-by: Randall Spangler <rspangler@chromium.org>
Diffstat (limited to 'firmware/lib/include/vboot_audio.h')
-rw-r--r-- | firmware/lib/include/vboot_audio.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/firmware/lib/include/vboot_audio.h b/firmware/lib/include/vboot_audio.h new file mode 100644 index 00000000..efa241b3 --- /dev/null +++ b/firmware/lib/include/vboot_audio.h @@ -0,0 +1,25 @@ +/* Copyright (c) 2011 The Chromium OS Authors. All rights reserved. + * Use of this source code is governed by a BSD-style license that can be + * found in the LICENSE file. + * + * Display functions used in kernel selection. + */ + +#ifndef VBOOT_REFERENCE_VBOOT_AUDIO_H_ +#define VBOOT_REFERENCE_VBOOT_AUDIO_H_ + +#include "vboot_api.h" + +typedef struct VbAudioContext VbAudioContext; + +/* Initialization function. Returns context for processing dev-mode delay */ +VbAudioContext* VbAudioOpen(VbCommonParams* cparams); + +/* Caller should loop without extra delay until this returns false */ +int VbAudioLooping(VbAudioContext* audio); + +/* Caller should call this prior to booting */ +void VbAudioClose(VbAudioContext* audio); + +#endif /* VBOOT_REFERENCE_VBOOT_AUDIO_H_ */ + |