#include <sys/queue.h>
#include <sys/_eventhandler.h>
Go to the source code of this file.
◆ PCI_CLASS
#define PCI_CLASS |
( |
|
x | ) |
.match_flag_class = 1, .class_id = (x) |
◆ PCI_DESCR
#define PCI_DESCR |
( |
|
x | ) |
.descr = (x) |
◆ PCI_DEV
Value: .match_flag_vendor = 1, .vendor = (v), \
.match_flag_device = 1, .device = (d)
Definition at line 303 of file pcivar.h.
◆ PCI_MATCH
◆ PCI_MAXMAPS_0
#define PCI_MAXMAPS_0 6 /* max. no. of memory/port maps */ |
◆ PCI_MAXMAPS_1
#define PCI_MAXMAPS_1 2 /* max. no. of maps for PCI to PCI bridge */ |
◆ PCI_MAXMAPS_2
#define PCI_MAXMAPS_2 1 /* max. no. of maps for CardBus bridge */ |
◆ PCI_PNP_INFO
#define PCI_PNP_INFO |
( |
|
table | ) |
|
Value:
sizeof(table) / sizeof(table[0]))
Definition at line 320 of file pcivar.h.
◆ PCI_PNP_STR
Value: "M16:mask;U16:vendor;U16:device;U16:subvendor;U16:subdevice;" \
"U16:class;U16:subclass;U16:revid;"
Definition at line 317 of file pcivar.h.
◆ PCI_REVID
#define PCI_REVID |
( |
|
x | ) |
.match_flag_revid = 1, .revid = (x) |
◆ PCI_SUBCLASS
#define PCI_SUBCLASS |
( |
|
x | ) |
.match_flag_subclass = 1, .subclass = (x) |
◆ PCI_SUBDEV
#define PCI_SUBDEV |
( |
|
sv, |
|
|
|
sd |
|
) |
| |
Value: .match_flag_subvendor = 1, .subvendor = (sv), \
.match_flag_subdevice = 1, .subdevice = (sd)
Definition at line 306 of file pcivar.h.
◆ PCICFG_VF
#define PCICFG_VF 0x0001 /* Device is an SR-IOV Virtual Function */ |
◆ VGA_PCI_BIOS_SHADOW_ADDR
#define VGA_PCI_BIOS_SHADOW_ADDR 0xC0000 |
◆ VGA_PCI_BIOS_SHADOW_SIZE
#define VGA_PCI_BIOS_SHADOW_SIZE 131072 |
◆ pci_addr_t
◆ pci_event_fn
typedef void(* pci_event_fn) (void *arg, device_t dev) |
Global eventhandlers invoked when PCI devices are added or removed from the system.
Definition at line 730 of file pcivar.h.
◆ pcicfgregs
◆ EVENTHANDLER_DECLARE() [1/2]
◆ EVENTHANDLER_DECLARE() [2/2]
◆ pci_bar_enabled()
int pci_bar_enabled |
( |
device_t |
dev, |
|
|
struct pci_map * |
pm |
|
) |
| |
Definition at line 3176 of file pci.c.
References dev, pcicfg_iov::iov_pf, pcicfg_iov::iov_pos, PCI_BAR_MEM, PCICFG_VF, PCIM_BIOS_ENABLE, PCIM_CMD_MEMEN, PCIM_CMD_PORTEN, PCIM_SRIOV_VF_MSE, PCIR_COMMAND, PCIR_IS_BIOS, PCIR_SRIOV_CTL, pci_map::pm_reg, and pci_map::pm_value.
Referenced by pci_bar_mmap(), and pci_ioctl().
◆ pci_fetch_vpd_list()
struct pcicfg_vpd * pci_fetch_vpd_list |
( |
device_t |
dev | ) |
|
◆ pci_find_bar()
struct pci_map * pci_find_bar |
( |
device_t |
dev, |
|
|
int |
reg |
|
) |
| |
◆ pci_match_device()
◆ STAILQ_HEAD()
STAILQ_HEAD |
( |
devlist |
, |
|
|
pci_devinfo |
|
|
) |
| |
◆ vga_pci_is_boot_display()
int vga_pci_is_boot_display |
( |
device_t |
dev | ) |
|
Definition at line 82 of file vga_pci.c.
References config, dev, pcib, PCIB_BCR_VGA_ENABLE, PCIC_DISPLAY, PCIC_OLD, PCIM_CMD_INTxDIS, PCIM_CMD_MEMEN, PCIM_CMD_PORTEN, PCIR_BRIDGECTL_1, PCIR_COMMAND, PCIS_OLD_VGA, and vga_pci_default_unit.
Referenced by vga_pci_attach(), vga_pci_map_bios(), vga_pci_probe(), vga_pci_repost(), and vga_pci_unmap_bios().
◆ vga_pci_map_bios()
void * vga_pci_map_bios |
( |
device_t |
dev, |
|
|
size_t * |
size |
|
) |
| |
Definition at line 164 of file vga_pci.c.
References config, dev, lookup_res(), pcib, PCIB_BCR_VGA_ENABLE, PCIM_HDRTYPE_BRIDGE, PCIM_HDRTYPE_CARDBUS, PCIR_BIOS, PCIR_BIOS_1, PCIR_BRIDGECTL_1, PCIR_HDRTYPE, rid, vga_pci_alloc_resource(), VGA_PCI_BIOS_SHADOW_ADDR, VGA_PCI_BIOS_SHADOW_SIZE, vga_pci_is_boot_display(), vga_pci_release_resource(), vga_pci_reset(), and vga_resource::vr_res.
◆ vga_pci_repost()
int vga_pci_repost |
( |
device_t |
dev | ) |
|
◆ vga_pci_unmap_bios()
void vga_pci_unmap_bios |
( |
device_t |
dev, |
|
|
void * |
bios |
|
) |
| |
Definition at line 276 of file vga_pci.c.
References dev, lookup_res(), PCIM_HDRTYPE_BRIDGE, PCIM_HDRTYPE_CARDBUS, PCIR_BIOS, PCIR_BIOS_1, PCIR_HDRTYPE, rid, VGA_PCI_BIOS_SHADOW_SIZE, vga_pci_is_boot_display(), vga_pci_release_resource(), and vga_resource::vr_res.
◆ pci_devq
◆ pci_enable_aspm
◆ pci_generation
◆ pci_numdevs
◆ pcicdev