Deleted Added
full compact
pe_var.h (139743) pe_var.h (140751)
1/*-
2 * Copyright (c) 2003
3 * Bill Paul <wpaul@windriver.com>. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 15 unchanged lines hidden (view full) ---

24 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
25 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
26 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
27 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
28 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
29 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
30 * THE POSSIBILITY OF SUCH DAMAGE.
31 *
1/*-
2 * Copyright (c) 2003
3 * Bill Paul <wpaul@windriver.com>. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 15 unchanged lines hidden (view full) ---

24 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
25 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
26 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
27 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
28 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
29 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
30 * THE POSSIBILITY OF SUCH DAMAGE.
31 *
32 * $FreeBSD: head/sys/compat/ndis/pe_var.h 139743 2005-01-05 22:34:37Z imp $
32 * $FreeBSD: head/sys/compat/ndis/pe_var.h 140751 2005-01-24 18:18:12Z wpaul $
33 */
34
35#ifndef _PE_VAR_H_
36#define _PE_VAR_H_
37
38/*
39 * Image Format
40 */

--- 430 unchanged lines hidden (view full) ---

471#define FASTCALL3(f, a, b, c) \
472 fastcall3((fcall3)(f), (uint32_t)(a), (uint32_t)(b), (uint32_t)(c))
473#else
474#define FASTCALL1(f, a) (f)((a))
475#define FASTCALL2(f, a, b) (f)((a), (b))
476#define FASTCALL3(f, a, b, c) (f)((a), (b), (c))
477#endif /* __i386__ */
478
33 */
34
35#ifndef _PE_VAR_H_
36#define _PE_VAR_H_
37
38/*
39 * Image Format
40 */

--- 430 unchanged lines hidden (view full) ---

471#define FASTCALL3(f, a, b, c) \
472 fastcall3((fcall3)(f), (uint32_t)(a), (uint32_t)(b), (uint32_t)(c))
473#else
474#define FASTCALL1(f, a) (f)((a))
475#define FASTCALL2(f, a, b) (f)((a), (b))
476#define FASTCALL3(f, a, b, c) (f)((a), (b), (c))
477#endif /* __i386__ */
478
479#define FUNC void(*)(void)
480#define IMPORT_FUNC(x) { #x, (FUNC)x }
481#define IMPORT_FUNC_MAP(x, y) { #x, (FUNC)y }
482
479__BEGIN_DECLS
480extern int pe_get_dos_header(vm_offset_t, image_dos_header *);
481extern int pe_is_nt_image(vm_offset_t);
482extern int pe_get_optional_header(vm_offset_t, image_optional_header *);
483extern int pe_get_file_header(vm_offset_t, image_file_header *);
484extern int pe_get_section_header(vm_offset_t, image_section_header *);
485extern int pe_numsections(vm_offset_t);
486extern vm_offset_t pe_imagebase(vm_offset_t);
487extern vm_offset_t pe_directory_offset(vm_offset_t, uint32_t);
488extern vm_offset_t pe_translate_addr (vm_offset_t, uint32_t);
489extern int pe_get_section(vm_offset_t, image_section_header *, const char *);
490extern int pe_relocate(vm_offset_t);
491extern int pe_get_import_descriptor(vm_offset_t, image_import_descriptor *, char *);
492extern int pe_patch_imports(vm_offset_t, char *, image_patch_table *);
493extern int pe_get_messagetable(vm_offset_t, message_resource_data **);
494extern int pe_get_message(vm_offset_t, uint32_t, char **, int *, uint16_t *);
495__END_DECLS
496
497#endif /* _PE_VAR_H_ */
483__BEGIN_DECLS
484extern int pe_get_dos_header(vm_offset_t, image_dos_header *);
485extern int pe_is_nt_image(vm_offset_t);
486extern int pe_get_optional_header(vm_offset_t, image_optional_header *);
487extern int pe_get_file_header(vm_offset_t, image_file_header *);
488extern int pe_get_section_header(vm_offset_t, image_section_header *);
489extern int pe_numsections(vm_offset_t);
490extern vm_offset_t pe_imagebase(vm_offset_t);
491extern vm_offset_t pe_directory_offset(vm_offset_t, uint32_t);
492extern vm_offset_t pe_translate_addr (vm_offset_t, uint32_t);
493extern int pe_get_section(vm_offset_t, image_section_header *, const char *);
494extern int pe_relocate(vm_offset_t);
495extern int pe_get_import_descriptor(vm_offset_t, image_import_descriptor *, char *);
496extern int pe_patch_imports(vm_offset_t, char *, image_patch_table *);
497extern int pe_get_messagetable(vm_offset_t, message_resource_data **);
498extern int pe_get_message(vm_offset_t, uint32_t, char **, int *, uint16_t *);
499__END_DECLS
500
501#endif /* _PE_VAR_H_ */