74 bridge =
zalloc (
sizeof ( *bridge ) );
88 DBGC ( bridge,
"BRIDGE " PCI_FMT " bus %02x to [%02x,%02x) mem " 121 PCI_ROM ( 0xffff, 0xffff,
"bridge",
"Bridge", 0 ),
#define PCI_MEM_BASE
Memory base and limit.
#define PCI_BUS(busdevfn)
#define PCI_CLASS_ID(base, sub, progif)
Construct PCI class ID.
struct arbelprm_rc_send_wqe rc
static struct pci_device_id pcibridge_ids[]
Bridge PCI device IDs.
uint8_t subordinate
Subordinate bus.
#define list_add(new, head)
Add a new entry to the head of a list.
#define PCI_CLASS_BRIDGE_PCI
PCI-to-PCI bridge.
static int pcibridge_probe(struct pci_device *pci)
Probe PCI device.
struct pci_device_id * ids
PCI ID table.
static void pcibridge_remove(struct pci_device *pci)
Remove PCI device.
FILE_LICENCE(GPL2_OR_LATER_OR_UBDL)
int pci_read_config_word(struct pci_device *pci, unsigned int where, uint16_t *value)
Read 16-bit word from PCI configuration space.
struct pci_driver pcibridge_driver __pci_driver
Bridge PCI driver.
#define list_del(list)
Delete an entry from a list.
static void pci_set_drvdata(struct pci_device *pci, void *priv)
Set PCI driver-private data.
#define ENOMEM
Not enough space.
static LIST_HEAD(pcibridges)
List of all PCI bridges.
struct pci_bridge * pcibridge_find(struct pci_device *pci)
Find bridge attached to a PCI device.
#define PCI_PRIMARY
Primary bus number.
int pci_read_config_dword(struct pci_device *pci, unsigned int where, uint32_t *value)
Read 32-bit dword from PCI configuration space.
#define list_for_each_entry(pos, head, member)
Iterate over entries in a list.
struct pci_device * pci
PCI device.
#define cpu_to_le32s(ptr)
static void(* free)(struct refcnt *refcnt))
void * zalloc(size_t size)
Allocate cleared memory.
#define PCI_FMT
PCI device debug message format.
uint8_t primary
Primary bus.
uint32_t memlimit
Memory limit.
uint8_t secondary
Secondary bus.
A PCI device ID list entry.
static void * pci_get_drvdata(struct pci_device *pci)
Get PCI driver-private data.
uint32_t busdevfn
Segment, bus, device, and function (bus:dev.fn) number.
struct list_head list
List of bridges.
#define PCI_ARGS(pci)
PCI device debug message arguments.
#define NULL
NULL pointer (VOID *)
#define PCI_ROM(_vendor, _device, _name, _description, _data)
uint32_t membase
Memory base.
#define PCI_ANY_ID
Match-anything ID.