Mercurial > repos > blastem
comparison lc8951.h @ 2280:9ead0fe69d9b
Implement savestate support for Sega CD
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Sun, 08 Jan 2023 14:42:24 -0800 |
parents | 8e6fb2c06024 |
children | 9f0c67e5c50a |
comparison
equal
deleted
inserted
replaced
2279:3b5fef896475 | 2280:9ead0fe69d9b |
---|---|
1 #ifndef LC8951_H_ | 1 #ifndef LC8951_H_ |
2 #define LC8951_H_ | 2 #define LC8951_H_ |
3 | 3 |
4 #include <stdint.h> | 4 #include <stdint.h> |
5 #include "serialize.h" | |
5 | 6 |
6 typedef uint8_t (*lcd8951_byte_recv_fun)(void *data, uint8_t byte); | 7 typedef uint8_t (*lcd8951_byte_recv_fun)(void *data, uint8_t byte); |
7 | 8 |
8 typedef struct { | 9 typedef struct { |
9 lcd8951_byte_recv_fun byte_handler; | 10 lcd8951_byte_recv_fun byte_handler; |
41 void lc8951_ar_write(lc8951 *context, uint8_t value); | 42 void lc8951_ar_write(lc8951 *context, uint8_t value); |
42 void lc8951_write_byte(lc8951 *context, uint32_t cycle, int sector_offset, uint8_t byte); | 43 void lc8951_write_byte(lc8951 *context, uint32_t cycle, int sector_offset, uint8_t byte); |
43 uint32_t lc8951_next_interrupt(lc8951 *context); | 44 uint32_t lc8951_next_interrupt(lc8951 *context); |
44 void lc8951_resume_transfer(lc8951 *context, uint32_t cycle); | 45 void lc8951_resume_transfer(lc8951 *context, uint32_t cycle); |
45 void lc8951_adjust_cycles(lc8951 *context, uint32_t deduction); | 46 void lc8951_adjust_cycles(lc8951 *context, uint32_t deduction); |
47 void lc8951_serialize(lc8951 *context, serialize_buffer *buf); | |
48 void lc8951_deserialize(deserialize_buffer *buf, void *vcontext); | |
46 | 49 |
47 #endif //LC8951_H_ | 50 #endif //LC8951_H_ |