aboutsummaryrefslogtreecommitdiffstats
path: root/gpxe/src/arch/i386/include/undirom.h
blob: a263600729cd1dff7d905e67bd9b9415a230d4dc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#ifndef _UNDIROM_H
#define _UNDIROM_H

/** @file
 *
 * UNDI expansion ROMs
 *
 */

#include <pxe_types.h>

/** An UNDI PCI device ID */
struct undi_pci_device_id {
	/** PCI vendor ID */
	unsigned int vendor_id;
	/** PCI device ID */
	unsigned int device_id;
};

/** An UNDI device ID */
union undi_device_id {
	/** PCI device ID */
	struct undi_pci_device_id pci;
};

/** An UNDI ROM */
struct undi_rom {
	/** List of UNDI ROMs */
	struct list_head list;
	/** ROM segment address */
	unsigned int rom_segment;
	/** UNDI loader entry point */
	SEGOFF16_t loader_entry;
	/** Code segment size */
	size_t code_size;
	/** Data segment size */
	size_t data_size;
	/** Bus type
	 *
	 * Values are as used by @c PXENV_UNDI_GET_NIC_TYPE
	 */
	unsigned int bus_type;
	/** Device ID */
	union undi_device_id bus_id;
};

extern struct undi_rom * undirom_find_pci ( unsigned int vendor_id,
					    unsigned int device_id,
					    unsigned int rombase );

#endif /* _UNDIROM_H */