FreeBSD kernel amd64 PCI device code
|
#include <sys/cdefs.h>
#include <sys/param.h>
#include <sys/bus.h>
#include <sys/kernel.h>
#include <sys/malloc.h>
#include <sys/module.h>
#include <sys/rman.h>
#include <sys/sysctl.h>
#include <sys/systm.h>
#include <dev/pci/pcivar.h>
#include <dev/pci/pcireg.h>
#include <dev/pci/pcib_private.h>
#include "pcib_if.h"
Go to the source code of this file.
Functions | |
__FBSDID ("$FreeBSD$") | |
int | pcib_maxfuncs (device_t dev) |
int | pcib_get_id (device_t pcib, device_t dev, enum pci_id_type type, uintptr_t *id) |
void | pcib_decode_rid (device_t pcib, uint16_t rid, int *bus, int *slot, int *func) |
__FBSDID | ( | "$FreeBSD$" | ) |
void pcib_decode_rid | ( | device_t | pcib, |
uint16_t | rid, | ||
int * | bus, | ||
int * | slot, | ||
int * | func | ||
) |
Definition at line 74 of file pcib_support.c.
References bus, func, PCI_RID2BUS, PCI_RID2FUNC, PCI_RID2SLOT, rid, and slot.
int pcib_get_id | ( | device_t | pcib, |
device_t | dev, | ||
enum pci_id_type | type, | ||
uintptr_t * | id | ||
) |
Definition at line 58 of file pcib_support.c.
References bus, dev, func, PCI_ID_RID, PCI_RID, slot, and type.
int pcib_maxfuncs | ( | device_t | dev | ) |
Definition at line 52 of file pcib_support.c.
References PCI_FUNCMAX.