ports_def.h

00001 /* m68hc11/ports_def.h -- Definition of 68HC11 ports
00002    Copyright 1999, 2000, 2002, 2003 Free Software Foundation, Inc.
00003    Written by Stephane Carrez (stcarrez@nerim.fr)
00004 
00005 This file is part of GDB, GAS, and the GNU binutils.
00006 
00007 GDB, GAS, and the GNU binutils are free software; you can redistribute
00008 them and/or modify them under the terms of the GNU General Public
00009 License as published by the Free Software Foundation; either version
00010 1, or (at your option) any later version.
00011 
00012 GDB, GAS, and the GNU binutils are distributed in the hope that they
00013 will be useful, but WITHOUT ANY WARRANTY; without even the implied
00014 warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See
00015 the GNU General Public License for more details.
00016 
00017 You should have received a copy of the GNU General Public License
00018 along with this file; see the file COPYING.  If not, write to the Free
00019 Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
00020 
00021 #ifndef _M68HC11_PORTS_DEF_H
00022 #define _M68HC11_PORTS_DEF_H
00023 
00024 /* Flags for the definition of the 68HC11 & 68HC12 CCR.  */
00025 #define M6811_S_BIT     0x80    /* Stop disable */
00026 #define M6811_X_BIT     0x40    /* X-interrupt mask */
00027 #define M6811_H_BIT     0x20    /* Half carry flag */
00028 #define M6811_I_BIT     0x10    /* I-interrupt mask */
00029 #define M6811_N_BIT     0x08    /* Negative */
00030 #define M6811_Z_BIT     0x04    /* Zero */
00031 #define M6811_V_BIT     0x02    /* Overflow */
00032 #define M6811_C_BIT     0x01    /* Carry */
00033 
00034 #ifdef M6811_FAMILY_F1
00035 #  include <asm-m68hc11/ports_def_F1.h>
00036 #else
00037 #  include <asm-m68hc11/ports_def_E.h>
00038 #endif
00039 
00040 /* The I/O registers are represented by a volatile array.
00041    Address if fixed at link time.  */
00042 extern volatile unsigned char _io_ports[];
00043 
00044 #endif /* _M68HC11_PORTS_DEF_H */
00045