More warnings fixed. Only 180 to go!
This commit is contained in:
54
src/pit.h
54
src/pit.h
@@ -8,7 +8,7 @@
|
|||||||
*
|
*
|
||||||
* Definitions for Intel 8253 timer module.
|
* Definitions for Intel 8253 timer module.
|
||||||
*
|
*
|
||||||
* Version: @(#)pit.h 1.0.1 2018/02/14
|
* Version: @(#)pit.h 1.0.3 2018/03/27
|
||||||
*
|
*
|
||||||
* Authors: Fred N. van Kempen, <decwiz@yahoo.com>
|
* Authors: Fred N. van Kempen, <decwiz@yahoo.com>
|
||||||
* Miran Grca, <mgrca8@gmail.com>
|
* Miran Grca, <mgrca8@gmail.com>
|
||||||
@@ -41,7 +41,7 @@
|
|||||||
|
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
int64_t nr;
|
int nr;
|
||||||
struct PIT *pit;
|
struct PIT *pit;
|
||||||
} PIT_nr;
|
} PIT_nr;
|
||||||
|
|
||||||
@@ -51,30 +51,30 @@ typedef struct PIT {
|
|||||||
uint8_t m[3];
|
uint8_t m[3];
|
||||||
uint8_t ctrl,
|
uint8_t ctrl,
|
||||||
ctrls[3];
|
ctrls[3];
|
||||||
int64_t wp,
|
int wp,
|
||||||
rm[3],
|
rm[3],
|
||||||
wm[3];
|
wm[3];
|
||||||
uint16_t rl[3];
|
uint16_t rl[3];
|
||||||
int64_t thit[3];
|
int thit[3];
|
||||||
int64_t delay[3];
|
int delay[3];
|
||||||
int64_t rereadlatch[3];
|
int rereadlatch[3];
|
||||||
int64_t gate[3];
|
int gate[3];
|
||||||
int64_t out[3];
|
int out[3];
|
||||||
int64_t running[3];
|
int64_t running[3];
|
||||||
int64_t enabled[3];
|
int enabled[3];
|
||||||
int64_t newcount[3];
|
int newcount[3];
|
||||||
int64_t count[3];
|
int count[3];
|
||||||
int64_t using_timer[3];
|
int using_timer[3];
|
||||||
int64_t initial[3];
|
int initial[3];
|
||||||
int64_t latched[3];
|
int latched[3];
|
||||||
int64_t disabled[3];
|
int disabled[3];
|
||||||
|
|
||||||
uint8_t read_status[3];
|
uint8_t read_status[3];
|
||||||
int64_t do_read_status[3];
|
int do_read_status[3];
|
||||||
|
|
||||||
PIT_nr pit_nr[3];
|
PIT_nr pit_nr[3];
|
||||||
|
|
||||||
void (*set_out_funcs[3])(int64_t new_out, int64_t old_out);
|
void (*set_out_funcs[3])(int new_out, int old_out);
|
||||||
} PIT;
|
} PIT;
|
||||||
|
|
||||||
|
|
||||||
@@ -91,20 +91,20 @@ extern float CGACONST,
|
|||||||
extern void pit_init(void);
|
extern void pit_init(void);
|
||||||
extern void pit_ps2_init(void);
|
extern void pit_ps2_init(void);
|
||||||
extern void pit_reset(PIT *pit);
|
extern void pit_reset(PIT *pit);
|
||||||
extern void pit_set_gate(PIT *pit, int64_t channel, int64_t gate);
|
extern void pit_set_gate(PIT *pit, int channel, int gate);
|
||||||
extern void pit_set_using_timer(PIT *pit, int64_t t, int64_t using_timer);
|
extern void pit_set_using_timer(PIT *pit, int t, int using_timer);
|
||||||
extern void pit_set_out_func(PIT *pit, int64_t t, void (*func)(int64_t new_out, int64_t old_out));
|
extern void pit_set_out_func(PIT *pit, int t, void (*func)(int new_out, int old_out));
|
||||||
extern void pit_clock(PIT *pit, int64_t t);
|
//extern void pit_clock(PIT *pit, int t);
|
||||||
|
|
||||||
extern void setpitclock(float clock);
|
extern void setpitclock(float clock);
|
||||||
extern float pit_timer0_freq(void);
|
extern float pit_timer0_freq(void);
|
||||||
|
|
||||||
extern void pit_null_timer(int64_t new_out, int64_t old_out);
|
//extern void pit_null_timer(int new_out, int old_out);
|
||||||
extern void pit_irq0_timer(int64_t new_out, int64_t old_out);
|
//extern void pit_irq0_timer(int new_out, int old_out);
|
||||||
extern void pit_irq0_timer_pcjr(int64_t new_out, int64_t old_out);
|
//extern void pit_speaker_timer(int new_out, int old_out);
|
||||||
extern void pit_refresh_timer_xt(int64_t new_out, int64_t old_out);
|
extern void pit_irq0_timer_pcjr(int new_out, int old_out);
|
||||||
extern void pit_refresh_timer_at(int64_t new_out, int64_t old_out);
|
extern void pit_refresh_timer_xt(int new_out, int old_out);
|
||||||
extern void pit_speaker_timer(int64_t new_out, int64_t old_out);
|
extern void pit_refresh_timer_at(int new_out, int old_out);
|
||||||
|
|
||||||
|
|
||||||
#endif /*EMU_PIT_H*/
|
#endif /*EMU_PIT_H*/
|
||||||
|
|||||||
Reference in New Issue
Block a user