7#ifndef FLASHCART_64DRIVE_LL_H__
8#define FLASHCART_64DRIVE_LL_H__
31 uint32_t __unused_5[49];
40 uint32_t __unused_6[64];
43 uint32_t USB_PARAM_RESULT[2];
45 uint32_t __unused_7[5];
48 uint32_t WIFI_PARAM_RESULT[2];
50 uint32_t __unused_8[757];
53 uint32_t WRITEBACK[256];
57#define D64_REGS_BASE (0x18000000UL)
58#define D64_REGS_BASE_EXT (0x1F800000UL)
59#define D64_REGS ((d64_regs_t *) D64_REGS_BASE)
60#define D64_REGS_EXT ((d64_regs_t *) D64_REGS_BASE_EXT)
uint32_t SDRAM_SIZE
Definition 64drive_ll.h:33
uint32_t LBA
Definition 64drive_ll.h:25
uint32_t VARIANT
Definition 64drive_ll.h:35
uint32_t MAGIC
Definition 64drive_ll.h:34
uint32_t __unused_1
Definition 64drive_ll.h:22
uint32_t USB_COMMAND_STATUS
Definition 64drive_ll.h:42
uint32_t __unused_4
Definition 64drive_ll.h:28
uint32_t STATUS
Definition 64drive_ll.h:21
uint32_t __unused_3
Definition 64drive_ll.h:26
uint32_t __unused_2
Definition 64drive_ll.h:24
uint32_t REVISION
Definition 64drive_ll.h:38
uint32_t PERSISTENT
Definition 64drive_ll.h:36
uint32_t COMMAND
Definition 64drive_ll.h:23
uint32_t BUTTON_UPGRADE
Definition 64drive_ll.h:37
uint32_t WIFI_COMMAND_STATUS
Definition 64drive_ll.h:47
uint32_t LENGTH
Definition 64drive_ll.h:27
uint32_t RESULT
Definition 64drive_ll.h:29
d64_tv_type_t
TV Type Enumeration.
Definition 64drive_ll.h:70
bool d64_ll_enable_extended_mode(bool enabled)
Enable or disable extended mode.
Definition 64drive_ll.c:140
bool d64_ll_write_save_writeback_lba_list(void *list)
Write save writeback LBA list.
Definition 64drive_ll.c:171
d64_device_variant_t
Device Variant Enumeration.
Definition 64drive_ll.h:63
bool d64_ll_set_save_type(d64_save_type_t save_type)
Set the save type.
Definition 64drive_ll.c:100
bool d64_ll_get_version(d64_device_variant_t *device_variant, uint16_t *fpga_revision, uint32_t *bootloader_version)
Get the 64drive version.
Definition 64drive_ll.c:68
bool d64_ll_enable_save_writeback(bool enabled)
Enable or disable save writeback.
Definition 64drive_ll.c:114
bool d64_ll_set_persistent_variable_storage(bool quick_reboot, d64_tv_type_t force_tv_type, uint8_t cic_seed)
Set the persistent variable storage.
Definition 64drive_ll.c:86
bool d64_ll_enable_cartrom_writes(bool enabled)
Enable or disable cart ROM writes.
Definition 64drive_ll.c:127
d64_save_type_t
Save Type Enumeration.
Definition 64drive_ll.h:78
bool d64_ll_write_eeprom_contents(void *contents)
Write EEPROM contents.
Definition 64drive_ll.c:157
@ TV_TYPE_UNKNOWN
Definition 64drive_ll.h:74
@ TV_TYPE_MPAL
Definition 64drive_ll.h:73
@ TV_TYPE_NTSC
Definition 64drive_ll.h:72
@ TV_TYPE_PAL
Definition 64drive_ll.h:71
@ DEVICE_VARIANT_UNKNOWN
Definition 64drive_ll.h:64
@ DEVICE_VARIANT_B
Definition 64drive_ll.h:66
@ DEVICE_VARIANT_A
Definition 64drive_ll.h:65
@ SAVE_TYPE_FLASHRAM_1MBIT
Definition 64drive_ll.h:83
@ SAVE_TYPE_EEPROM_4KBIT
Definition 64drive_ll.h:80
@ SAVE_TYPE_SRAM_256KBIT
Definition 64drive_ll.h:82
@ SAVE_TYPE_FLASHRAM_PKST2
Definition 64drive_ll.h:85
@ SAVE_TYPE_EEPROM_16KBIT
Definition 64drive_ll.h:81
@ SAVE_TYPE_NONE
Definition 64drive_ll.h:79
@ SAVE_TYPE_SRAM_BANKED
Definition 64drive_ll.h:84
Registers Structure.
Definition 64drive_ll.h:19