-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathbattmem.h
More file actions
38 lines (31 loc) · 1.17 KB
/
battmem.h
File metadata and controls
38 lines (31 loc) · 1.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
//
// Copyright 2022-2025 Stefan Reinauer
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// 1. Redistributions of source code must retain the above copyright notice,
// this list of conditions and the following disclaimer.
// 2. Redistributions in binary form must reproduce the above copyright notice,
// this list of conditions and the following disclaimer in the documentation
// and/or other materials provided with the distribution.
//
#ifndef __BATTMEM_H
#define __BATTMEM_H
int Load_BattMem(void);
int Save_BattMem(void);
#if defined(FLASH_PARALLEL) || defined(FLASH_SPI)
/* Commit staged NVRAM changes (A4092 only). Returns:
* 1 if wrote new entry, 0 if nothing to do, <0 on error. */
int Nvram_CommitDirty(void);
#else
#define BATTMEM_A4091_CDROM_BOOT_ADDR 72
#define BATTMEM_A4091_CDROM_BOOT_LEN 1
#define BATTMEM_A4091_IGNORE_LAST_ADDR 73
#define BATTMEM_A4091_IGNORE_LAST_LEN 1
#define BATTMEM_A4091_QUICK_INT_ADDR 74
#define BATTMEM_A4091_QUICK_INT_LEN 1
#define BATTMEM_A4091_ALLOW_DISC_ADDR 75
#define BATTMEM_A4091_ALLOW_DISC_LEN 1
#endif
#endif