Logo Search packages:      
Sourcecode: alsa-driver version File versions  Download package

dpi56301.h

/******************************************************************************

    AudioScience HPI driver
    Copyright (C) 1997-2003  AudioScience Inc. <support@audioscience.com>

    This program is free software; you can redistribute it and/or modify
    it under the terms of version 2 of the GNU General Public License as
    published by the Free Software Foundation;

    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., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA

System Module   :   DPI56301 (PC and DSP)

Description     :   Definitions of Host flags and host commands passed
between PC and 56301DSP over PCI bus. This file is shared
between DPI56301.C on the PC side and the DSP message
routines to ensure consistency

(C) Copyright AudioScience Inc. 2002
******************************************************************************/

/****************** DPI flag and command definitions*********************/
#ifndef _DPI_CMD
#define _DPI_CMD

/* The host flags are 3 bits, so there are only 8 possible values */
#define HF_MASK             0x0038  /* also applies to HCTR,DCTR,DSR */
#define HF_CLEAR            (~HF_MASK)

/* Used for PC->DSP */
#define CMD_NONE        0
#define CMD_SEND_MSG    8
#define CMD_GET_RESP    16
#define CMD_SEND_DATA   24
#define CMD_GET_DATA    32

/* Used for DSP->PC */
#define HF_DSP_STATE_RESET       0
#define HF_DSP_STATE_IDLE        8
#define HF_DSP_STATE_RESP_READY 16
#define HF_DSP_STATE_BUSY       24
#define HF_DSP_STATE_CMD_OK     32
#define HF_DSP_STATE_ERROR      40
#define HF_DSP_STATE_WRAP_READY 48
#define HF_PCI_HANDSHAKE        56

/* Each of the CVR values must correspond to an interrupt vector address
in the 56301.  The value here needs CVR_INT added to generate an interrupt
when written to HCVR (Use function DpiCommand())
*/
#define CVR_NMI             0x8000  /* NMI bit */
#define CVR_INT             0x0001
#define CVR_RESET           0x0072
#define CVR_NMIRESET        (CVR_NMI+CVR_RESET) /* NMI version to reset */

#define CVR_RESTART         0x004E
#define CVR_CMD             0x005a
#define CVR_CMDRESET        0x005e
#define CVR_DMASTOP                     0x005c

/* CURRENTLY UNUSED, COULD ALLOCATE TO SOMETHING ELSE */
#define CVR_MSGCLEAR        0x0074
#define CVR_DATATX          0x0076
#define CVR_DATARX          0x0078

#define CVR_START0          0x007a  /* Experiment with fast messages */
#define CVR_STOP0           0x007c
#define CVR_START1          0x007e
#define CVR_STOP1           0x0080

#define CVR_START2          0x0082  /* Experiment with fast messages */
#define CVR_STOP2           0x0084
#define CVR_START3          0x0084
#define CVR_STOP3           0x0086

/* Size of audio data bursts between PC and DSP */
#define DATA_PACKET_WORDS    4096

#endif

/* Note: don't use // commments in this file!
*/

Generated by  Doxygen 1.6.0   Back to index