nkeynes@19: /** nkeynes@265: * $Id: clock.h,v 1.5 2007-01-06 04:06:36 nkeynes Exp $ nkeynes@19: * External interface to the dreamcast serial port, implemented by nkeynes@19: * sh4/scif.c nkeynes@19: * nkeynes@19: * Copyright (c) 2005 Nathan Keynes. nkeynes@19: * nkeynes@19: * This program is free software; you can redistribute it and/or modify nkeynes@19: * it under the terms of the GNU General Public License as published by nkeynes@19: * the Free Software Foundation; either version 2 of the License, or nkeynes@19: * (at your option) any later version. nkeynes@19: * nkeynes@19: * This program is distributed in the hope that it will be useful, nkeynes@19: * but WITHOUT ANY WARRANTY; without even the implied warranty of nkeynes@19: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the nkeynes@19: * GNU General Public License for more details. nkeynes@19: */ nkeynes@19: #ifndef dream_clock_H nkeynes@19: #define dream_clock_H 1 nkeynes@19: nkeynes@19: #include nkeynes@19: nkeynes@19: #ifdef __cplusplus nkeynes@19: extern "C" { nkeynes@19: #endif nkeynes@19: nkeynes@23: #define MHZ nkeynes@265: #define KHZ nkeynes@19: #define SH4_BASE_RATE 200 MHZ nkeynes@19: #define ARM_BASE_RATE 33 MHZ nkeynes@265: #define PVR2_DOT_CLOCK 27068 KHZ nkeynes@19: nkeynes@23: extern uint32_t sh4_freq; nkeynes@23: extern uint32_t sh4_peripheral_freq; nkeynes@23: extern uint32_t sh4_bus_freq; nkeynes@30: extern uint32_t sh4_cpu_period; nkeynes@30: extern uint32_t sh4_peripheral_period; nkeynes@30: extern uint32_t sh4_bus_period; nkeynes@23: extern uint32_t arm_freq; nkeynes@19: nkeynes@19: #ifdef __cplusplus nkeynes@19: } nkeynes@19: #endif nkeynes@19: nkeynes@19: #endif