Changeset 15d0046 in mainline for uspace/drv/audio/hdaudio/hdaudio.h
- Timestamp:
- 2014-09-12T13:22:33Z (10 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 9b20126
- Parents:
- 8db09e4 (diff), 105d8d6 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/audio/hdaudio/hdaudio.h
r8db09e4 r15d0046 1 1 /* 2 * Copyright (c) 2010 Jakub Jermar 3 * Copyright (c) 2010 Jiri Svoboda 2 * Copyright (c) 2014 Jiri Svoboda 4 3 * All rights reserved. 5 4 * … … 28 27 */ 29 28 30 /** @addtogroup libcmips64 mips64 31 * @ingroup lc 29 /** @addtogroup hdaudio 32 30 * @{ 33 31 */ 34 /** @file 32 /** @file High Definition Audio driver 35 33 */ 36 34 37 #include <sys/types.h> 35 #ifndef HDAUDIO_H 36 #define HDAUDIO_H 37 38 #include <async.h> 39 #include <ddf/driver.h> 40 #include <fibril_synch.h> 38 41 #include <stdbool.h> 39 #include < errno.h>42 #include <stdint.h> 40 43 41 #include <stacktrace.h>44 #include "spec/regs.h" 42 45 43 bool stacktrace_fp_valid(stacktrace_t *st, uintptr_t fp) 44 { 45 (void) st; (void) fp; 46 return false; 47 } 46 /** High Definition Audio driver instance */ 47 typedef struct hda { 48 fibril_mutex_t lock; 49 async_sess_t *parent_sess; 50 async_sess_t *ev_sess; 51 ddf_fun_t *fun_pcm; 52 uint64_t rwbase; 53 size_t rwsize; 54 hda_regs_t *regs; 55 struct hda_ctl *ctl; 56 struct hda_stream *pcm_stream; 57 bool playing; 58 } hda_t; 48 59 49 int stacktrace_fp_prev(stacktrace_t *st, uintptr_t fp, uintptr_t *prev) 50 { 51 (void) st; (void) fp; (void) prev; 52 return ENOTSUP; 53 } 60 extern void hda_lock(hda_t *); 61 extern void hda_unlock(hda_t *); 54 62 55 int stacktrace_ra_get(stacktrace_t *st, uintptr_t fp, uintptr_t *ra) 56 { 57 (void) st; (void) fp; (void) ra; 58 return ENOTSUP; 59 } 63 #endif 60 64 61 65 /** @}
Note:
See TracChangeset
for help on using the changeset viewer.