OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [tags/] [rel-0-3-0-rc1/] [or1ksim/] [peripheral/] [dma.h] - Diff between revs 1461 and 1748

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 1461 Rev 1748
Line 1... Line 1...
/* dma.h -- Definition of DMA<->peripheral interface
/* dma.h -- Definition of DMA<->peripheral interface
 
 
   Copyright (C) 2001 by Erez Volk, erez@opencores.org
   Copyright (C) 2001 by Erez Volk, erez@opencores.org
 
   Copyright (C) 2008 Embecosm Limited
 
 
 
   Contributor Jeremy Bennett <jeremy.bennett@embecosm.com>
 
 
 
   This file is part of Or1ksim, the OpenRISC 1000 Architectural Simulator.
 
 
 
   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 3 of the License, or (at your option)
 
   any later version.
 
 
   This file is part of OpenRISC 1000 Architectural Simulator.
   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.
 
 
   This program is free software; you can redistribute it and/or modify
   You should have received a copy of the GNU General Public License along
   it under the terms of the GNU General Public License as published by
   with this program.  If not, see <http://www.gnu.org/licenses/>.  */
   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.
 
*/
 
 
 
#include "dma_defs.h"
/* This program is commented throughout in a fashion suitable for processing
 
   with Doxygen. */
 
 
 
#ifndef DMA__H
 
#define DMA__H
 
 
 
/* Package includes */
 
#include "dma-defs.h"
 
#include "sim-config.h"
 
 
/* Implementation of DMA Channel Registers and State */
/* Implementation of DMA Channel Registers and State */
struct dma_channel
struct dma_channel
{
{
  /* The controller we belong to */
  /* The controller we belong to */
Line 96... Line 106...
void clear_dma_nd_i( struct dma_channel *channel );
void clear_dma_nd_i( struct dma_channel *channel );
unsigned check_dma_ack_o( struct dma_channel *channel );
unsigned check_dma_ack_o( struct dma_channel *channel );
struct dma_channel *find_dma_controller_ch( unsigned controller,
struct dma_channel *find_dma_controller_ch( unsigned controller,
                                            unsigned channel );
                                            unsigned channel );
 
 
 No newline at end of file
 No newline at end of file
 
/* Prototype for external use */
 
extern void  reg_dma_sec ();
 
 
 
#endif  /* DMA__H */
 
 
 No newline at end of file
 No newline at end of file

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.