Zerocat Chipflasher  v0.4.3 (board-edition-1)
Flash free firmware to BIOS chips, kick the Manageability Engine.
Classes | Macros | Enumerations | Functions
filespec.h File Reference

Go to the source code of this file.

Classes

struct  tag_filespec
 

Macros

#define SIZE_LINEBUF   (1 << 8)
 
#define HEADER   "Zerocat Chipflasher (http://www.zerocat.org) | %s"
 
#define FRAME_HEADER   15
 
#define SIZE_HEADER   (SIZE_LINEBUF - FRAME_HEADER)
 
#define ARRAY_FILESPEC   2
 
#define PAYLOAD_BASE   (1 << 4)
 
#define FRAME_MOTBIN   17
 
#define SHIFT_MOTBIN   0
 
#define FRAME_HEXDUMP   15
 
#define SHIFT_HEXDUMP   2
 
#define MODE_INLINE   0x1F
 
#define MODE_SPLIT   0x20
 
#define MODE_STRIP   0x40
 
#define MODE_SCREEN_OUTPUT   0x80
 
#define MODE_HEXDUMP   (MODE_INLINE & 0x00)
 
#define MODE_MOTBIN   ((MODE_INLINE & 0x10) | MODE_SPLIT | MODE_STRIP)
 
#define HEXDUMP_LINELEN   (10 + PAYLOAD_BASE * 4 + 2 + 2)
 

Enumerations

enum  tag_format { MOTBIN = 0, HEXDUMP }
 

Functions

void filespec_ini (int chipsize)
 
int payload (enum tag_format format, int chipsize)
 

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 filespec.h.

Macro Definition Documentation

◆ ARRAY_FILESPEC

#define ARRAY_FILESPEC   2

Definition at line 34 of file filespec.h.

◆ FRAME_HEADER

#define FRAME_HEADER   15

Definition at line 32 of file filespec.h.

◆ FRAME_HEXDUMP

#define FRAME_HEXDUMP   15

Definition at line 38 of file filespec.h.

◆ FRAME_MOTBIN

#define FRAME_MOTBIN   17

Definition at line 36 of file filespec.h.

◆ HEADER

#define HEADER   "Zerocat Chipflasher (http://www.zerocat.org) | %s"

Definition at line 31 of file filespec.h.

◆ HEXDUMP_LINELEN

#define HEXDUMP_LINELEN   (10 + PAYLOAD_BASE * 4 + 2 + 2)

Definition at line 50 of file filespec.h.

◆ MODE_HEXDUMP

#define MODE_HEXDUMP   (MODE_INLINE & 0x00)

Definition at line 46 of file filespec.h.

◆ MODE_INLINE

#define MODE_INLINE   0x1F

Definition at line 42 of file filespec.h.

◆ MODE_MOTBIN

#define MODE_MOTBIN   ((MODE_INLINE & 0x10) | MODE_SPLIT | MODE_STRIP)

Definition at line 47 of file filespec.h.

◆ MODE_SCREEN_OUTPUT

#define MODE_SCREEN_OUTPUT   0x80

Definition at line 45 of file filespec.h.

◆ MODE_SPLIT

#define MODE_SPLIT   0x20

Definition at line 43 of file filespec.h.

◆ MODE_STRIP

#define MODE_STRIP   0x40

Definition at line 44 of file filespec.h.

◆ PAYLOAD_BASE

#define PAYLOAD_BASE   (1 << 4)

Definition at line 35 of file filespec.h.

◆ SHIFT_HEXDUMP

#define SHIFT_HEXDUMP   2

Definition at line 39 of file filespec.h.

◆ SHIFT_MOTBIN

#define SHIFT_MOTBIN   0

Definition at line 37 of file filespec.h.

◆ SIZE_HEADER

#define SIZE_HEADER   (SIZE_LINEBUF - FRAME_HEADER)

Definition at line 33 of file filespec.h.

◆ SIZE_LINEBUF

#define SIZE_LINEBUF   (1 << 8)

Definition at line 30 of file filespec.h.

Enumeration Type Documentation

◆ tag_format

enum tag_format
Enumerator
MOTBIN 
HEXDUMP 

Definition at line 52 of file filespec.h.

Function Documentation

◆ filespec_ini()

void filespec_ini ( int  chipsize)

Definition at line 66 of file filespec.c.

◆ payload()

int payload ( enum tag_format  format,
int  chipsize 
)
inline

Definition at line 50 of file filespec.c.