#include "camera_info.h"
#include "gui.h"
#include "gui_draw.h"
#include "meminfo.h"
#include "module_load.h"
#include "simple_module.h"
#include "clock.h"
#include "console.h"
#include "conf.h"
#include "lang.h"
#include "firmware_crc_types.h"
#include "gui_lang.h"
#include "gui_mbox.h"
#include "gui_fselect.h"
#include "keyboard.h"
gehe zum Quellcode dieser Datei
|
enum | {
FWC_STATE_INIT,
FWC_STATE_STARTED,
FWC_STATE_CHECK,
FWC_STATE_FAIL,
FWC_STATE_DIALOG,
FWC_STATE_DUMP,
FWC_STATE_DUMP_OK,
FWC_STATE_DUMP_FAIL,
FWC_STATE_DONE,
FWC_STATE_QUIT,
FWC_STATE_END
} |
|
Aufzählungswerte |
---|
FWC_STATE_INIT |
|
FWC_STATE_STARTED |
|
FWC_STATE_CHECK |
|
FWC_STATE_FAIL |
|
FWC_STATE_DIALOG |
|
FWC_STATE_DUMP |
|
FWC_STATE_DUMP_OK |
|
FWC_STATE_DUMP_FAIL |
|
FWC_STATE_DONE |
|
FWC_STATE_QUIT |
|
FWC_STATE_END |
|
Definiert in Zeile 54 der Datei firmware_crc.c.
int _module_can_unload |
( |
) | |
|
void crc32 |
( |
const void * |
data, |
|
|
unsigned long |
n_bytes, |
|
|
unsigned long * |
crc |
|
) |
| |
Definiert in Zeile 29 der Datei firmware_crc.c.
30 static unsigned long ct[0x100] = {0};
33 for (i = 0; i < 0x100; i++) {
37 for (i = 0; i < n_bytes; i++) {
38 *crc = ct[(
unsigned char)*crc ^ ((
unsigned char*)data)[i]] ^ *crc >> 8;
unsigned long crc32_for_byte |
( |
unsigned long |
r) | |
|
Definiert in Zeile 21 der Datei firmware_crc.c.
23 for (j = 0; j < 8; j++) {
24 r = (r & 1? 0: (
unsigned long)0xEDB88320) ^ r >> 1;
26 return r ^ (
unsigned long)0xFF000000;
Definiert in Zeile 104 der Datei firmware_crc.c.
122 if(blocks[b].size != 0) {
123 unsigned long fw_crc = 0;
124 crc32(blocks[b].start,blocks[b].size,&fw_crc);
125 if(fw_crc != blocks[b].crc) {
126 s +=
sprintf(s,
"%8x ",blocks[b].start);
Definiert in Zeile 74 der Datei firmware_crc.c.
78 if(dump_size > 0x1fffffc) {
79 dump_size = 0x1fffffc;
static void gui_fwc_done |
( |
__attribute__((unused)) unsigned |
unused) | |
|
|
static |
static void gui_fwc_dump_dialog |
( |
unsigned |
btn) | |
|
|
static |