Changeset c885a21 in mainline for uspace/drv/audio/sb16/dsp.h


Ignore:
Timestamp:
2011-11-14T12:38:50Z (13 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
1269160
Parents:
1b93658
Message:

sb16: Switch to new ISA bus provided DMA controller access.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/audio/sb16/dsp.h

    r1b93658 rc885a21  
    3535#define DRV_AUDIO_SB16_DSP_H
    3636
     37#include <ddf/driver.h>
    3738#include <libarch/ddi.h>
    3839#include <errno.h>
     
    4243typedef struct sb_dsp_t {
    4344        sb16_regs_t *regs;
     45        int dma8_channel;
     46        int dma16_channel;
    4447        struct {
    4548                uint8_t major;
     
    5760                uint8_t mode;
    5861        } playing;
     62        ddf_dev_t *sb_dev;
    5963} sb_dsp_t;
    6064
    61 int sb_dsp_init(sb_dsp_t *dsp, sb16_regs_t *regs);
     65int sb_dsp_init(sb_dsp_t *dsp, sb16_regs_t *regs, ddf_dev_t *dev,
     66    int dma8, int dma16);
    6267void sb_dsp_interrupt(sb_dsp_t *dsp);
    6368int sb_dsp_play_direct(sb_dsp_t *dsp, const uint8_t *data, size_t size,
Note: See TracChangeset for help on using the changeset viewer.