Source
/* Critical section: bank 1 access. this is how the OSS driver does it:*/
/*********************************************************************
*
* 2002/06/30 Karsten Wiese:
* removed kernel-version dependencies.
* ripped from linux kernel 2.4.18 (OSS Implementation) by me.
* In the OSS Version, this file is compiled to a separate MODULE,
* that is used by the pinnacle and the classic driver.
* since there is no classic driver for alsa yet (i dont have a classic
* & writing one blindfold is difficult) this file's object is statically
* linked into the pinnacle-driver-module for now. look for the string
* "uncomment this to make this a module again"
* to do guess what.
*
* the following is a copy of the 2.4.18 OSS FREE file-heading comment:
*
* msnd.c - Driver Base
*
* Turtle Beach MultiSound Sound Card Driver for Linux
*
* Copyright (C) 1998 Andrew Veliath
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*
********************************************************************/
void snd_msnd_init_queue(void __iomem *base, int start, int size)
{
writew(PCTODSP_BASED(start), base + JQS_wStart);
writew(PCTODSP_OFFSET(size) - 1, base + JQS_wSize);
writew(0, base + JQS_wHead);
writew(0, base + JQS_wTail);
}