1 May 2006 20:59
Re: Dreamcast G2 DMA interrupt handling
Adrian McMenamin <adrian <at> mcmen.demon.co.uk>
2006-05-01 18:59:21 GMT
2006-05-01 18:59:21 GMT
On Sun, 2006-04-30 at 18:19 +0100, Adrian McMenamin wrote:
> On Sun, 2006-04-30 at 13:46 +0100, Adrian McMenamin wrote:
> > I am trying to patch the G2 interrupt handling to get my sound driver to
> > work as expected.
> >
> >
>
> Further testing shows that this is because *dev_id does not point to
> dma_channel or points to an unitialised dma_channel.
>
> NB: I know there is an error in the code above!
>
> unsigned int chan_nr = 0; crept in through pasting in some code used for
> testing
>
>
Using this:
static irqreturn_t g2_dma_interrupt(int irq, void *dev_id, struct
pt_regs *regs)
{
/* FIXME: Do some meaningful completion work here.. */
struct dma_channel *chan = dev_id;
printk("dma_channel here dev_id is 0x%X\n", dev_id);
if (dev_id) {
unsigned int chan_nr = chan->chan;
printk("now here\n");
unsigned int bytes;
(Continue reading)
RSS Feed