summaryrefslogtreecommitdiff
path: root/src/include/device/azalia_device.h
diff options
context:
space:
mode:
authorElyes Haouas <ehaouas@noos.fr>2024-07-17 12:22:43 +0200
committerFelix Held <felix-coreboot@felixheld.de>2024-08-11 17:10:08 +0000
commit96719adda3f5e96cc5af537f3d9c70ae75073b46 (patch)
tree6fc7ab1279509dae46eca94cbe38c62d3dc1d24b /src/include/device/azalia_device.h
parentaf0d4bce65df277b56e495892dff1c712ed76ddd (diff)
azalia: Get rid of "return {-1,0}
Use 'enum cb_err' instead of {-1,0}. Change-Id: Icea33ea3e6a5e3c7bbfedc29045026cd722ac23e Signed-off-by: Elyes Haouas <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/c/coreboot/+/83503 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Martin L Roth <gaumless@gmail.com>
Diffstat (limited to 'src/include/device/azalia_device.h')
-rw-r--r--src/include/device/azalia_device.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/include/device/azalia_device.h b/src/include/device/azalia_device.h
index 59e7ea2af3..7fe6514ed2 100644
--- a/src/include/device/azalia_device.h
+++ b/src/include/device/azalia_device.h
@@ -6,7 +6,7 @@
#include <acpi/acpi.h>
#include <device/device.h>
#include <device/mmio.h>
-#include <stdint.h>
+#include <types.h>
#define HDA_GCAP_REG 0x00
#define HDA_GCTL_REG 0x08
@@ -20,9 +20,8 @@
#define AZALIA_MAX_CODECS 15
-int azalia_set_bits(void *port, u32 mask, u32 val);
-int azalia_enter_reset(u8 *base);
-int azalia_exit_reset(u8 *base);
+enum cb_err azalia_enter_reset(u8 *base);
+enum cb_err azalia_exit_reset(u8 *base);
u32 azalia_find_verb(const u32 *verb_table, u32 verb_table_bytes, u32 viddid, const u32 **verb);
int azalia_program_verb_table(u8 *base, const u32 *verbs, u32 verb_size);
void azalia_codec_init(u8 *base, int addr, const u32 *verb_table, u32 verb_table_bytes);