summaryrefslogtreecommitdiffstats
path: root/include/pbl.h
blob: 1917a7633fb3f3b769d428b5bd3e774b7b850081 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/*
 * Copyright (c) 2012 Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
 *
 * Under GPLv2
 */

#ifndef __PBL_H__
#define __PBL_H__

extern unsigned long free_mem_ptr;
extern unsigned long free_mem_end_ptr;

void pbl_barebox_uncompress(void *dest, void *compressed_start, unsigned int len);
int pbl_barebox_verify(void *compressed_start, unsigned int len, void *hash,
		       unsigned int hash_len);

#ifdef __PBL__
#define IN_PBL	1
#else
#define IN_PBL	0
#endif

#endif /* __PBL_H__ */