Add some Roland devices. From kern/30986, DHOYASHIKI Shinichi.

This commit is contained in:
augustss 2005-08-14 21:08:45 +00:00
parent a9d739dee8
commit 1040158900
1 changed files with 78 additions and 3 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: umidi_quirks.c,v 1.7 2005/05/30 04:21:39 christos Exp $ */
/* $NetBSD: umidi_quirks.c,v 1.8 2005/08/14 21:08:45 augustss Exp $ */
/*
* Copyright (c) 2001 The NetBSD Foundation, Inc.
@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: umidi_quirks.c,v 1.7 2005/05/30 04:21:39 christos Exp $");
__KERNEL_RCSID(0, "$NetBSD: umidi_quirks.c,v 1.8 2005/08/14 21:08:45 augustss Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -363,7 +363,77 @@ UMQ_DEF(ROLAND, ROLAND_UA700, 3) = {
UMQ_TERMINATOR
};
/*
* ROLAND UA-1000
*/
UMQ_FIXED_EP_DEF(ROLAND, ROLAND_UA1000, 3, 1, 1) = {
/* out */
{ 0, 2 },
/* in */
{ 1, 2 }
};
UMQ_DEF(ROLAND, ROLAND_UA1000, 3) = {
UMQ_FIXED_EP_REG(ROLAND, ROLAND_UA1000, 3),
UMQ_TERMINATOR
};
/*
* ROLAND UA-101
*/
UMQ_FIXED_EP_DEF(ROLAND, ROLAND_UA101, 2, 1, 1) = {
/* out */
{ 0, 2 },
/* in */
{ 1, 2 }
};
UMQ_DEF(ROLAND, ROLAND_UA101, 2) = {
UMQ_FIXED_EP_REG(ROLAND, ROLAND_UA101, 2),
UMQ_TERMINATOR
};
UMQ_FIXED_EP_DEF(ROLAND, ROLAND_UA101F, 2, 1, 1) = {
/* out */
{ 0, 2 },
/* in */
{ 1, 2 }
};
UMQ_DEF(ROLAND, ROLAND_UA101F, 2) = {
UMQ_FIXED_EP_REG(ROLAND, ROLAND_UA101F, 2),
UMQ_TERMINATOR
};
/*
* ROLAND Fantom-X
*/
UMQ_FIXED_EP_DEF(ROLAND, ROLAND_FANTOMX, 0, 1, 1) = {
/* out */
{ 0, 1 },
/* in */
{ 1, 1 }
};
UMQ_DEF(ROLAND, ROLAND_FANTOMX, 0) = {
UMQ_FIXED_EP_REG(ROLAND, ROLAND_FANTOMX, 0),
UMQ_TERMINATOR
};
/*
* ROLAND PCR
*/
UMQ_FIXED_EP_DEF(ROLAND, ROLAND_PCR, 0, 1, 1) = {
/* out */
{ 0, 3 },
/* in */
{ 1, 3 }
};
UMQ_DEF(ROLAND, ROLAND_PCR, 0) = {
UMQ_FIXED_EP_REG(ROLAND, ROLAND_PCR, 0),
UMQ_TERMINATOR
};
/*
* quirk list
@ -388,6 +458,11 @@ struct umidi_quirk umidi_quirklist[] = {
UMQ_REG(ROLAND, ROLAND_SD20, 0),
UMQ_REG(ROLAND, ROLAND_SD80, 0),
UMQ_REG(ROLAND, ROLAND_UA700, 3),
UMQ_REG(ROLAND, ROLAND_UA1000, 3),
UMQ_REG(ROLAND, ROLAND_UA101, 2),
UMQ_REG(ROLAND, ROLAND_UA101F, 2),
UMQ_REG(ROLAND, ROLAND_FANTOMX, 0),
UMQ_REG(ROLAND, ROLAND_PCR, 0),
UMQ_TERMINATOR
};
@ -417,7 +492,7 @@ umidi_search_quirk(int vendor, int product, int ifaceno)
for (q=p->quirks; q->type; q++)
p->type_mask |= 1<<(q->type-1);
return p;
}
}
DPRINTFN(10, ("\n"));
}