Changeset 94e46c9 in mainline for uspace/drv/audio/hdaudio/stream.h


Ignore:
Timestamp:
2015-05-23T04:09:11Z (9 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
b5143bd
Parents:
a25d893 (diff), 0683992 (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.
Message:

Mainline changes

File:
1 edited

Legend:

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

    ra25d893 r94e46c9  
    4848} hda_stream_dir_t;
    4949
    50 typedef struct hda_stream {
    51         hda_t *hda;
    52         /** Stream ID */
    53         uint8_t sid;
    54         /** Stream descriptor index */
    55         uint8_t sdid;
    56         /** Direction */
    57         hda_stream_dir_t dir;
     50typedef struct hda_stream_buffers {
    5851        /** Number of buffers */
    5952        size_t nbuffers;
     
    6861        /** Physical addresses of buffers */
    6962        uintptr_t *buf_phys;
     63} hda_stream_buffers_t;
     64
     65typedef struct hda_stream {
     66        hda_t *hda;
     67        /** Stream ID */
     68        uint8_t sid;
     69        /** Stream descriptor index */
     70        uint8_t sdid;
     71        /** Direction */
     72        hda_stream_dir_t dir;
     73        /** Buffers */
     74        hda_stream_buffers_t *buffers;
    7075        /** Stream format */
    7176        uint32_t fmt;
    7277} hda_stream_t;
    7378
    74 extern hda_stream_t *hda_stream_create(hda_t *, hda_stream_dir_t, uint32_t);
     79extern int hda_stream_buffers_alloc(hda_t *, hda_stream_buffers_t **);
     80extern void hda_stream_buffers_free(hda_stream_buffers_t *);
     81extern hda_stream_t *hda_stream_create(hda_t *, hda_stream_dir_t,
     82    hda_stream_buffers_t *, uint32_t);
    7583extern void hda_stream_destroy(hda_stream_t *);
    7684extern void hda_stream_start(hda_stream_t *);
Note: See TracChangeset for help on using the changeset viewer.