Changeset a333b7f in mainline for uspace/drv/audio/hdaudio/hdactl.h


Ignore:
Timestamp:
2014-08-25T09:28:39Z (10 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
932e2f5
Parents:
1412a184
Message:

Interrupt handling - RIRB interrupts.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/audio/hdaudio/hdactl.h

    r1412a184 ra333b7f  
    3636#define HDACTL_H
    3737
     38#include <fibril_synch.h>
    3839#include <stdbool.h>
    3940#include "hdaudio.h"
     41#include "spec/regs.h"
     42
     43enum {
     44        /** Software response buffer size in entries */
     45        softrb_entries = 128
     46};
    4047
    4148typedef struct hda_ctl {
     
    5461        size_t rirb_rp;
    5562
     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
    5673        struct hda_codec *codec;
     74        struct hda *hda;
    5775} hda_ctl_t;
    5876
    5977extern hda_ctl_t *hda_ctl_init(hda_t *);
    6078extern void hda_ctl_fini(hda_ctl_t *);
     79extern void hda_ctl_interrupt(hda_ctl_t *);
    6180extern int hda_cmd(hda_t *, uint32_t, uint32_t *);
    6281
Note: See TracChangeset for help on using the changeset viewer.