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,
|
|
|
|
BOOT_DEVICE_TYPE_DD = 1,
|
|
|
|
} 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,
|
|
|
|
} 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;
|
|
|
|
} boot_info_t;
|
2021-02-01 00:40:56 +01:00
|
|
|
|
|
|
|
|
2023-02-06 19:41:33 +01:00
|
|
|
void boot (boot_info_t *info, bool detect_tv_type, bool detect_cic_seed);
|
2021-02-01 00:40:56 +01:00
|
|
|
|
|
|
|
|
|
|
|
#endif
|