Changeset a333b7f in mainline for uspace/drv/audio/hdaudio/hdactl.h
- Timestamp:
- 2014-08-25T09:28:39Z (10 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 932e2f5
- Parents:
- 1412a184
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/audio/hdaudio/hdactl.h
r1412a184 ra333b7f 36 36 #define HDACTL_H 37 37 38 #include <fibril_synch.h> 38 39 #include <stdbool.h> 39 40 #include "hdaudio.h" 41 #include "spec/regs.h" 42 43 enum { 44 /** Software response buffer size in entries */ 45 softrb_entries = 128 46 }; 40 47 41 48 typedef struct hda_ctl { … … 54 61 size_t rirb_rp; 55 62 63 fibril_mutex_t solrb_lock; 64 fibril_condvar_t solrb_cv; 65 hda_rirb_entry_t solrb[softrb_entries]; 66 size_t solrb_rp; 67 size_t solrb_wp; 68 69 hda_rirb_entry_t unsolrb[softrb_entries]; 70 size_t unsolrb_rp; 71 size_t unsolrb_wp; 72 56 73 struct hda_codec *codec; 74 struct hda *hda; 57 75 } hda_ctl_t; 58 76 59 77 extern hda_ctl_t *hda_ctl_init(hda_t *); 60 78 extern void hda_ctl_fini(hda_ctl_t *); 79 extern void hda_ctl_interrupt(hda_ctl_t *); 61 80 extern int hda_cmd(hda_t *, uint32_t, uint32_t *); 62 81
Note:
See TracChangeset
for help on using the changeset viewer.