Zerocat Chipflasher  v0.4.3 (board-edition-1)
Flash free firmware to BIOS chips, kick the Manageability Engine.
Macros | Variables
key-enable-bits.h File Reference

Entities that help to configure allowed key input. With these keys associated are predefined strings that are used as menu options and input feedback at the same time. More...

Go to the source code of this file.

Macros

#define KEYID_q   0
 
#define KEYID_d   1
 
#define KEYID_t   2
 
#define KEYID_p   3
 
#define KEYID_s   4
 
#define KEYID_S   5
 
#define KEYID_k   6
 
#define KEYID_K   7
 
#define KEYID_b   8
 
#define KEYID_B   9
 
#define KEYID_c   10
 
#define KEYID_C   11
 
#define KEYID_I   12
 
#define KEYID_f   13
 
#define KEYID_G   14
 
#define KEYID_r   15
 
#define KEYID_W   16
 
#define KEYID_m   17
 
#define KEYID_X   18
 
#define ID_NONE   31
 
#define KEYBIT_q   (1 << KEYID_q)
 
#define KEYBIT_d   (1 << KEYID_d)
 
#define KEYBIT_t   (1 << KEYID_t)
 
#define KEYBIT_p   (1 << KEYID_p)
 
#define KEYBIT_s   (1 << KEYID_s)
 
#define KEYBIT_S   (1 << KEYID_S)
 
#define KEYBIT_k   (1 << KEYID_k)
 
#define KEYBIT_K   (1 << KEYID_K)
 
#define KEYBIT_b   (1 << KEYID_b)
 
#define KEYBIT_B   (1 << KEYID_B)
 
#define KEYBIT_c   (1 << KEYID_c)
 
#define KEYBIT_C   (1 << KEYID_C)
 
#define KEYBIT_I   (1 << KEYID_I)
 
#define KEYBIT_f   (1 << KEYID_f)
 
#define KEYBIT_G   (1 << KEYID_G)
 
#define KEYBIT_r   (1 << KEYID_r)
 
#define KEYBIT_W   (1 << KEYID_W)
 
#define KEYBIT_m   (1 << KEYID_m)
 
#define KEYBIT_X   (1 << KEYID_X)
 
#define KEYREG_DEFAULT   KEYBIT_q | KEYBIT_d | KEYBIT_f | KEYBIT_t;
 

Variables

unsigned int keyreg = 0
 
char * keymsg []
 

Detailed Description

Zerocat Chipflasher — Flash free firmware to BIOS chips, kick the Manageability Engine.

Copyright (C) 2015, 2016, 2017, 2018 Kai Mertens kmx@p.nosp@m.oste.nosp@m.o.net

The Zerocat Chipflasher is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

The Zerocat Chipflasher is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.

This file is part of the Zerocat Chipflasher.

Definition in file key-enable-bits.h.

Macro Definition Documentation

◆ ID_NONE

#define ID_NONE   31

Definition at line 60 of file key-enable-bits.h.

◆ KEYBIT_b

#define KEYBIT_b   (1 << KEYID_b)

Definition at line 73 of file key-enable-bits.h.

◆ KEYBIT_B

#define KEYBIT_B   (1 << KEYID_B)

Definition at line 74 of file key-enable-bits.h.

◆ KEYBIT_c

#define KEYBIT_c   (1 << KEYID_c)

Definition at line 75 of file key-enable-bits.h.

◆ KEYBIT_C

#define KEYBIT_C   (1 << KEYID_C)

Definition at line 76 of file key-enable-bits.h.

◆ KEYBIT_d

#define KEYBIT_d   (1 << KEYID_d)

Definition at line 64 of file key-enable-bits.h.

◆ KEYBIT_f

#define KEYBIT_f   (1 << KEYID_f)

Definition at line 79 of file key-enable-bits.h.

◆ KEYBIT_G

#define KEYBIT_G   (1 << KEYID_G)

Definition at line 80 of file key-enable-bits.h.

◆ KEYBIT_I

#define KEYBIT_I   (1 << KEYID_I)

Definition at line 78 of file key-enable-bits.h.

◆ KEYBIT_k

#define KEYBIT_k   (1 << KEYID_k)

Definition at line 70 of file key-enable-bits.h.

◆ KEYBIT_K

#define KEYBIT_K   (1 << KEYID_K)

Definition at line 71 of file key-enable-bits.h.

◆ KEYBIT_m

#define KEYBIT_m   (1 << KEYID_m)

Definition at line 84 of file key-enable-bits.h.

◆ KEYBIT_p

#define KEYBIT_p   (1 << KEYID_p)

Definition at line 66 of file key-enable-bits.h.

◆ KEYBIT_q

#define KEYBIT_q   (1 << KEYID_q)

Definition at line 63 of file key-enable-bits.h.

◆ KEYBIT_r

#define KEYBIT_r   (1 << KEYID_r)

Definition at line 81 of file key-enable-bits.h.

◆ KEYBIT_s

#define KEYBIT_s   (1 << KEYID_s)

Definition at line 68 of file key-enable-bits.h.

◆ KEYBIT_S

#define KEYBIT_S   (1 << KEYID_S)

Definition at line 69 of file key-enable-bits.h.

◆ KEYBIT_t

#define KEYBIT_t   (1 << KEYID_t)

Definition at line 65 of file key-enable-bits.h.

◆ KEYBIT_W

#define KEYBIT_W   (1 << KEYID_W)

Definition at line 83 of file key-enable-bits.h.

◆ KEYBIT_X

#define KEYBIT_X   (1 << KEYID_X)

Definition at line 86 of file key-enable-bits.h.

◆ KEYID_b

#define KEYID_b   8

Definition at line 46 of file key-enable-bits.h.

◆ KEYID_B

#define KEYID_B   9

Definition at line 47 of file key-enable-bits.h.

◆ KEYID_c

#define KEYID_c   10

Definition at line 48 of file key-enable-bits.h.

◆ KEYID_C

#define KEYID_C   11

Definition at line 49 of file key-enable-bits.h.

◆ KEYID_d

#define KEYID_d   1

Definition at line 37 of file key-enable-bits.h.

◆ KEYID_f

#define KEYID_f   13

Definition at line 52 of file key-enable-bits.h.

◆ KEYID_G

#define KEYID_G   14

Definition at line 53 of file key-enable-bits.h.

◆ KEYID_I

#define KEYID_I   12

Definition at line 51 of file key-enable-bits.h.

◆ KEYID_k

#define KEYID_k   6

Definition at line 43 of file key-enable-bits.h.

◆ KEYID_K

#define KEYID_K   7

Definition at line 44 of file key-enable-bits.h.

◆ KEYID_m

#define KEYID_m   17

Definition at line 57 of file key-enable-bits.h.

◆ KEYID_p

#define KEYID_p   3

Definition at line 39 of file key-enable-bits.h.

◆ KEYID_q

#define KEYID_q   0

Definition at line 36 of file key-enable-bits.h.

◆ KEYID_r

#define KEYID_r   15

Definition at line 54 of file key-enable-bits.h.

◆ KEYID_s

#define KEYID_s   4

Definition at line 41 of file key-enable-bits.h.

◆ KEYID_S

#define KEYID_S   5

Definition at line 42 of file key-enable-bits.h.

◆ KEYID_t

#define KEYID_t   2

Definition at line 38 of file key-enable-bits.h.

◆ KEYID_W

#define KEYID_W   16

Definition at line 56 of file key-enable-bits.h.

◆ KEYID_X

#define KEYID_X   18

Definition at line 58 of file key-enable-bits.h.

◆ KEYREG_DEFAULT

#define KEYREG_DEFAULT   KEYBIT_q | KEYBIT_d | KEYBIT_f | KEYBIT_t;

Definition at line 89 of file key-enable-bits.h.

Variable Documentation

◆ keymsg

char* keymsg[]
Initial value:
= {
"[q] (SPI off)/cancel/quit",
"[d] detect chip",
"[t] toggle format",
"[p] read page ",
"[s] 4k block read",
"[S] 4k block erase",
"[k] 32k block read",
"[K] 32k block erase",
"[b] 64k block read",
"[B] 64k block erase",
"[c] read chip ",
"[C] erase chip",
"[I] flash file",
"[f] force chip",
"[G] global sector protect",
"[r] show status register",
"[W] set status register",
"[m] read random",
"[X] global sector unprotect"
}

Definition at line 99 of file key-enable-bits.h.

◆ keyreg

unsigned int keyreg = 0

Definition at line 91 of file key-enable-bits.h.