filename | src/modules.h |
changeset | 30:89b30313d757 |
prev | 27:1ef09a52cd1e |
author | nkeynes |
date | Sun Dec 25 05:57:00 2005 +0000 (17 years ago) |
permissions | -rw-r--r-- |
last change | Change timeslice to nanoseconds (was microseconds) Generize single step (now steps through active CPU) Add lots of header blocks |
file | annotate | diff | log | raw |
1.1 --- a/src/modules.h Sun Dec 25 01:28:39 2005 +00001.2 +++ b/src/modules.h Sun Dec 25 05:57:00 2005 +00001.3 @@ -1,7 +1,26 @@1.4 +/**1.5 + * $Id: modules.h,v 1.5 2005-12-25 05:56:55 nkeynes Exp $1.6 + *1.7 + * Internal dreamcast module structure definition and associated variables.1.8 + * Included by all module implementations1.9 + *1.10 + * Copyright (c) 2005 Nathan Keynes.1.11 + *1.12 + * This program is free software; you can redistribute it and/or modify1.13 + * it under the terms of the GNU General Public License as published by1.14 + * the Free Software Foundation; either version 2 of the License, or1.15 + * (at your option) any later version.1.16 + *1.17 + * This program is distributed in the hope that it will be useful,1.18 + * but WITHOUT ANY WARRANTY; without even the implied warranty of1.19 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the1.20 + * GNU General Public License for more details.1.21 + */1.23 #ifndef dreamcast_modules_H1.24 #define dreamcast_modules_H 11.26 +#include <stdint.h>1.27 #include <stdlib.h>1.28 #include <stdio.h>1.30 @@ -31,9 +50,10 @@1.31 void (*start)();1.32 /**1.33 * Execute one time-slice worth of operations, for the given number of1.34 - * micro-seconds.1.35 + * nanoseconds.1.36 + * @return Number of nanoseconds actually executed1.37 */1.38 - int (*run_time_slice)( int microsecs );1.39 + uint32_t (*run_time_slice)( uint32_t nanosecs );1.40 /**1.41 * Set the module into a stopped state (may be NULL)1.42 */
.