Search
lxdream.org :: lxdream/src/clock.h
lxdream 0.9.1
released Jun 29
Download Now
filename src/clock.h
changeset 814:f1a21df54e19
prev736:a02d1475ccfd
author nkeynes
date Tue Jul 13 18:23:16 2010 +1000 (13 years ago)
permissions -rw-r--r--
last change Rearrange the main translation loop to allow translated blocks to jump
directly to their successors without needing to return to the main loop
in between. Shaves about 6% off the core runtime.
view annotate diff log raw
     1 /**
     2  * $Id$
     3  * 
     4  * External interface to the dreamcast serial port, implemented by 
     5  * sh4/scif.c
     6  *
     7  * Copyright (c) 2005 Nathan Keynes.
     8  *
     9  * This program is free software; you can redistribute it and/or modify
    10  * it under the terms of the GNU General Public License as published by
    11  * the Free Software Foundation; either version 2 of the License, or
    12  * (at your option) any later version.
    13  *
    14  * This program is distributed in the hope that it will be useful,
    15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
    16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    17  * GNU General Public License for more details.
    18  */
    20 #ifndef lxdream_clock_H
    21 #define lxdream_clock_H 1
    23 #include <stdint.h>
    25 #ifdef __cplusplus
    26 extern "C" {
    27 #endif
    29 #define MHZ
    30 #define KHZ
    31 #define SH4_BASE_RATE 200 MHZ
    32 #define ARM_BASE_RATE 2 MHZ
    33 #define PVR2_DOT_CLOCK 27068 KHZ
    35 extern uint32_t sh4_freq;
    36 extern uint32_t sh4_peripheral_freq;
    37 extern uint32_t sh4_bus_freq;
    38 extern uint32_t sh4_cpu_period;
    39 extern uint32_t sh4_peripheral_period;
    40 extern uint32_t sh4_bus_period;
    41 extern uint32_t arm_freq;
    43 #ifdef __cplusplus
    44 }
    45 #endif
    47 #endif
.