/***************************************************************************** * pce * *****************************************************************************/ /***************************************************************************** * File name: src/arch/sim405/main.h * * Created: 2004-06-01 by Hampa Hug * * Copyright: (C) 2004-2015 Hampa Hug * * Copyright: (C) 2004-2006 Lukas Ruf * *****************************************************************************/ /***************************************************************************** * This program is free software. You can redistribute it and / or modify it * * under the terms of the GNU General Public License version 2 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. * *****************************************************************************/ /***************************************************************************** * This software was developed at the Computer Engineering and Networks * * Laboratory (TIK), Swiss Federal Institute of Technology (ETH) Zurich. * *****************************************************************************/ #ifndef PCE_SIM405_MAIN_H #define PCE_SIM405_MAIN_H 1 #include #define s405_br16(x) ((((x) & 0xff) << 8) | (((x) >> 8) & 0xff)) #define s405_br32(x) ((((x) & 0xff) << 24) | ((((x) >> 8) & 0xff) << 16) \ | ((((x) >> 16) & 0xff) << 8) | (((x) >> 24) & 0xff)) extern int par_verbose; extern unsigned par_xlat; extern unsigned par_sig_int; #endif