2021-02-01 00:40:56 +01:00
|
|
|
#ifndef BOOT_H__
|
|
|
|
#define BOOT_H__
|
|
|
|
|
|
|
|
|
2021-12-10 17:36:30 +01:00
|
|
|
#include <stdbool.h>
|
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
|
|
|
|
typedef enum {
|
|
|
|
BOOT_DEVICE_TYPE_ROM = 0,
|
2023-09-15 20:51:57 +02:00
|
|
|
BOOT_DEVICE_TYPE_64DD = 1,
|
2021-12-10 17:36:30 +01:00
|
|
|
} boot_device_type_t;
|
|
|
|
|
|
|
|
typedef enum {
|
|
|
|
BOOT_RESET_TYPE_COLD = 0,
|
|
|
|
BOOT_RESET_TYPE_NMI = 1,
|
|
|
|
} boot_reset_type_t;
|
|
|
|
|
|
|
|
typedef enum {
|
|
|
|
BOOT_TV_TYPE_PAL = 0,
|
|
|
|
BOOT_TV_TYPE_NTSC = 1,
|
|
|
|
BOOT_TV_TYPE_MPAL = 2,
|
2023-04-04 20:25:58 +02:00
|
|
|
BOOT_TV_TYPE_PASSTHROUGH = 3,
|
2021-12-10 17:36:30 +01:00
|
|
|
} boot_tv_type_t;
|
|
|
|
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
boot_device_type_t device_type;
|
|
|
|
boot_reset_type_t reset_type;
|
|
|
|
boot_tv_type_t tv_type;
|
|
|
|
uint8_t cic_seed;
|
2023-09-15 20:51:57 +02:00
|
|
|
bool detect_cic_seed;
|
|
|
|
} boot_params_t;
|
2021-02-01 00:40:56 +01:00
|
|
|
|
|
|
|
|
2023-09-15 20:51:57 +02:00
|
|
|
void boot (boot_params_t *params);
|
2021-02-01 00:40:56 +01:00
|
|
|
|
|
|
|
|
|
|
|
#endif
|