~ubuntu-branches/ubuntu/utopic/vice/utopic

« back to all changes in this revision

Viewing changes to src/c64/c64model.h

  • Committer: Package Import Robot
  • Author(s): Logan Rosen
  • Date: 2014-05-10 21:08:23 UTC
  • mfrom: (17.2.1 utopic-proposed)
  • Revision ID: package-import@ubuntu.com-20140510210823-r7x98jmpl1x7rgop
Tags: 2.4.dfsg+2.4.6-1ubuntu1
Use autotools-dev to update config.{sub,guess} for new arches.

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
 
30
30
#include "types.h"
31
31
 
32
 
#define C64MODEL_C64_PAL     0
33
 
#define C64MODEL_C64C_PAL    1
 
32
#define C64MODEL_C64_PAL 0
 
33
#define C64MODEL_C64C_PAL 1
34
34
#define C64MODEL_C64_OLD_PAL 2
35
35
 
36
 
#define C64MODEL_C64_NTSC     3
37
 
#define C64MODEL_C64C_NTSC    4
 
36
#define C64MODEL_C64_NTSC 3
 
37
#define C64MODEL_C64C_NTSC 4
38
38
#define C64MODEL_C64_OLD_NTSC 5
39
39
 
40
40
#define C64MODEL_C64_PAL_N 6
41
41
 
42
 
#define C64MODEL_NUM 7
 
42
/* SX-64 */
 
43
#define C64MODEL_C64SX_PAL 7
 
44
#define C64MODEL_C64SX_NTSC 8
 
45
 
 
46
#define C64MODEL_C64_JAP 9
 
47
#define C64MODEL_C64_GS 10
 
48
 
 
49
/* 4064, PET64, EDUCATOR64 */
 
50
#define C64MODEL_PET64_PAL 11
 
51
#define C64MODEL_PET64_NTSC 12
 
52
/* max machine */
 
53
#define C64MODEL_ULTIMAX 13
 
54
 
 
55
#define C64MODEL_NUM 14
43
56
 
44
57
#define C64MODEL_UNKNOWN 99
45
58
 
 
59
typedef struct {
 
60
    int vicii_model;
 
61
    int new_luma;
 
62
    int sid_model;
 
63
    int glue_logic; /* x64sc only */
 
64
    int cia1_model;
 
65
    int cia2_model;
 
66
    int board; /* 0: normal, 1: ultimax */
 
67
    int iecreset; /* 1: reset goes to IEC bus (old) 0: only reset IEC on hard reset (new) */
 
68
    const char *kernal;
 
69
    const char *chargen;
 
70
} c64model_details_t;
 
71
 
46
72
extern int c64model_get(void);
47
 
extern int c64model_get_temp(int vicii_model, int sid_model, int glue_logic,
48
 
                             int cia1_model, int cia2_model, int new_luma);
49
73
extern void c64model_set(int model);
50
 
extern void c64model_set_temp(int model, int *vicii_model, int *sid_model,
51
 
                              int *glue_logic, int *cia1_model, int *cia2_model,
52
 
                              int *new_luma);
 
74
/* get details for model */
 
75
extern void c64model_set_details(c64model_details_t *details, int model);
 
76
/* get model from details */
 
77
extern int c64model_get_model(c64model_details_t *details);
53
78
 
54
79
#endif