Deleted Added
full compact
pe_var.h (144888) pe_var.h (151703)
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 144888 2005-04-11 02:02:35Z wpaul $
32 * $FreeBSD: head/sys/compat/ndis/pe_var.h 151703 2005-10-26 18:46:27Z wpaul $
33 */
34
35#ifndef _PE_VAR_H_
36#define _PE_VAR_H_
37
38/*
39 * Image Format
40 */

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

209struct image_nt_header {
210 uint32_t inh_signature;
211 image_file_header inh_filehdr;
212 image_optional_header inh_optionalhdr;
213};
214
215typedef struct image_nt_header image_nt_header;
216
33 */
34
35#ifndef _PE_VAR_H_
36#define _PE_VAR_H_
37
38/*
39 * Image Format
40 */

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

209struct image_nt_header {
210 uint32_t inh_signature;
211 image_file_header inh_filehdr;
212 image_optional_header inh_optionalhdr;
213};
214
215typedef struct image_nt_header image_nt_header;
216
217#define IMAGE_SIZEOF_NT_HEADER(nthdr) \
218 (offsetof(image_nt_header, inh_optionalhdr) + \
219 ((image_nt_header *)(nthdr))->inh_filehdr.ifh_optionalhdrlen)
220
217/* Directory Entries */
218
219#define IMAGE_DIRECTORY_ENTRY_EXPORT 0 /* Export Directory */
220#define IMAGE_DIRECTORY_ENTRY_IMPORT 1 /* Import Directory */
221#define IMAGE_DIRECTORY_ENTRY_RESOURCE 2 /* Resource Directory */
222#define IMAGE_DIRECTORY_ENTRY_EXCEPTION 3 /* Exception Directory */
223#define IMAGE_DIRECTORY_ENTRY_SECURITY 4 /* Security Directory */
224#define IMAGE_DIRECTORY_ENTRY_BASERELOC 5 /* Base Relocation Table */

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

276 uint16_t ish_numlinenums;
277 uint32_t ish_characteristics;
278};
279
280typedef struct image_section_header image_section_header;
281
282#define IMAGE_SIZEOF_SECTION_HEADER 40
283
221/* Directory Entries */
222
223#define IMAGE_DIRECTORY_ENTRY_EXPORT 0 /* Export Directory */
224#define IMAGE_DIRECTORY_ENTRY_IMPORT 1 /* Import Directory */
225#define IMAGE_DIRECTORY_ENTRY_RESOURCE 2 /* Resource Directory */
226#define IMAGE_DIRECTORY_ENTRY_EXCEPTION 3 /* Exception Directory */
227#define IMAGE_DIRECTORY_ENTRY_SECURITY 4 /* Security Directory */
228#define IMAGE_DIRECTORY_ENTRY_BASERELOC 5 /* Base Relocation Table */

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

280 uint16_t ish_numlinenums;
281 uint32_t ish_characteristics;
282};
283
284typedef struct image_section_header image_section_header;
285
286#define IMAGE_SIZEOF_SECTION_HEADER 40
287
288#define IMAGE_FIRST_SECTION(nthdr) \
289 ((image_section_header *)((vm_offset_t)(nthdr) + \
290 offsetof(image_nt_header, inh_optionalhdr) + \
291 ((image_nt_header *)(nthdr))->inh_filehdr.ifh_optionalhdrlen))
292
284/*
285 * Import format
286 */
287
288struct image_import_by_name {
289 uint16_t iibn_hint;
290 uint8_t iibn_name[1];
291};

--- 249 unchanged lines hidden ---
293/*
294 * Import format
295 */
296
297struct image_import_by_name {
298 uint16_t iibn_hint;
299 uint8_t iibn_name[1];
300};

--- 249 unchanged lines hidden ---