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

Subversion Repositories or1k

[/] [or1k/] [tags/] [rel-0-3-0-rc1/] [or1ksim/] [pic/] [pic.h] - Diff between revs 1715 and 1748

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

Rev 1715 Rev 1748
Line 1... Line 1...
/* pic.h -- Definition of types and structures for openrisc 1000 PIC
/* pic.h -- Definition of types and structures for openrisc 1000 PIC
 
 
   Copyright (C) 2000 Damjan Lampret, lampret@opencores.org
   Copyright (C) 2000 Damjan Lampret, lampret@opencores.org
 
   Copyright (C) 2008 Embecosm Limited
 
 
 
   Contributor Jeremy Bennett <jeremy.bennett@embecosm.com>
 
 
This file is part of OpenRISC 1000 Architectural Simulator.
This file is part of OpenRISC 1000 Architectural Simulator.
 
 
This program is free software; you can redistribute it and/or modify
   This program is free software; you can redistribute it and/or modify it
it under the terms of the GNU General Public License as published by
   under the terms of the GNU General Public License as published by the Free
the Free Software Foundation; either version 2 of the License, or
   Software Foundation; either version 3 of the License, or (at your option)
(at your option) any later version.
   any later version.
 
 
This program is distributed in the hope that it will be useful,
   This program is distributed in the hope that it will be useful, but WITHOUT
but WITHOUT ANY WARRANTY; without even the implied warranty of
   ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
GNU General Public License for more details.
   more details.
 
 
You should have received a copy of the GNU General Public License
   You should have received a copy of the GNU General Public License along
along with this program; if not, write to the Free Software
   with this program.  If not, see <http://www.gnu.org/licenses/>. */
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
 
 
/* This program is commented throughout in a fashion suitable for processing
/* FIXME: Move to pic.c once the dust settles */
   with Doxygen. */
struct pic {
 
  int enabled;
 
  int edge_trigger;
#ifndef PIC__H
};
#define PIC__H
 
 
/* FIXME: Remove the need for this global */
 
extern struct pic *pic_state;
 
/* Prototypes */
/* Prototypes */
void pic_reset(void);
extern void  pic_reset ();
void report_interrupt(int line);
extern void  report_interrupt (int line);
void clear_interrupt(int line);
extern void  clear_interrupt (int line);
void pic_ints_en(void);
extern void  pic_ints_en ();
 
extern void  reg_pic_sec ();
 
 
 
#endif  /* PIC__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.