iPXE
Main Page
Related Pages
Modules
+
Data Structures
Data Structures
Data Structure Index
+
Data Fields
+
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
b
d
i
p
s
t
u
v
x
+
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerator
+
Files
File List
+
Globals
+
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Typedefs
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
+
Enumerations
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
x
y
+
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
+
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
include
ipxe
pcibridge.h
Go to the documentation of this file.
1
#ifndef _IPXE_PCIBRIDGE_H
2
#define _IPXE_PCIBRIDGE_H
3
4
/** @file
5
*
6
* PCI-to-PCI bridge
7
*
8
*/
9
10
FILE_LICENCE
( GPL2_OR_LATER_OR_UBDL );
11
12
#include <
stdint.h
>
13
#include <
ipxe/list.h
>
14
#include <
ipxe/pci.h
>
15
16
/** A PCI-to-PCI bridge */
17
struct
pci_bridge
{
18
/** PCI device */
19
struct
pci_device
*
pci
;
20
/** Bridge numbers */
21
union
{
22
/** Raw dword */
23
uint32_t
buses
;
24
struct
{
25
/** Primary bus */
26
uint8_t
primary
;
27
/** Secondary bus */
28
uint8_t
secondary
;
29
/** Subordinate bus */
30
uint8_t
subordinate
;
31
}
__attribute__
(( packed ));
32
};
33
/** Memory base */
34
uint32_t
membase
;
35
/** Memory limit */
36
uint32_t
memlimit
;
37
/** List of bridges */
38
struct
list_head
list
;
39
};
40
41
extern
struct
pci_bridge
*
pcibridge_find
(
struct
pci_device
*
pci
);
42
43
#endif
/* _IPXE_PCIBRIDGE_H */
__attribute__
#define __attribute__(x)
Definition:
compiler.h:10
pci_bridge::subordinate
uint8_t subordinate
Subordinate bus.
Definition:
pcibridge.h:30
list_head
A doubly-linked list entry (or list head)
Definition:
list.h:18
pci_bridge::pci
struct pci_device * pci
PCI device.
Definition:
pcibridge.h:19
list.h
Linked lists.
pci_bridge
A PCI-to-PCI bridge.
Definition:
pcibridge.h:17
pci.h
PCI bus.
pci_device
A PCI device.
Definition:
pci.h:206
pci_bridge::primary
uint8_t primary
Primary bus.
Definition:
pcibridge.h:26
pci_bridge::memlimit
uint32_t memlimit
Memory limit.
Definition:
pcibridge.h:36
uint8_t
unsigned char uint8_t
Definition:
stdint.h:10
pci_bridge::secondary
uint8_t secondary
Secondary bus.
Definition:
pcibridge.h:28
pcibridge_find
struct pci_bridge * pcibridge_find(struct pci_device *pci)
Find bridge attached to a PCI device.
Definition:
pcibridge.c:48
uint32_t
unsigned int uint32_t
Definition:
stdint.h:12
pci_bridge::list
struct list_head list
List of bridges.
Definition:
pcibridge.h:38
pci_bridge::buses
uint32_t buses
Raw dword.
Definition:
pcibridge.h:23
stdint.h
pci_bridge::membase
uint32_t membase
Memory base.
Definition:
pcibridge.h:34
FILE_LICENCE
FILE_LICENCE(GPL2_OR_LATER_OR_UBDL)
Generated by
1.8.15