PCI controller. More...
#include <core.h>
#include <kernel/device/pci.h>
#include <kernel/device/tty.h>
#include <kernel/x86/cpu.h>
Go to the source code of this file.
Macros | |
#define | DEBUG_PCI 1 |
#define | PCI_CONFIG_ADDR 0x0cf8 |
#define | PCI_CONFIG_DATA 0x0cfc |
Functions | |
static uint32_t | read (uint32_t bus, uint32_t device, uint32_t func, uint32_t offset) |
static uint32_t | read_hdrtype (uint32_t bus, uint32_t device, uint32_t func) |
static uint32_t | read_deviceid (uint32_t bus, uint32_t device, uint32_t func) |
static uint32_t | read_vendor (uint32_t bus, uint32_t device, uint32_t func) |
static uint32_t | read_class (uint32_t bus, uint32_t device, uint32_t func) |
static uint32_t | read_subclass (uint32_t bus, uint32_t device, uint32_t func) |
static uint32_t | read_secondary_bus (uint32_t bus, uint32_t device, uint32_t func) |
static void | probe_bus (uint32_t bus) |
static bool | probe_function (uint32_t bus, uint32_t device, uint32_t func) |
static void | probe_device (uint32_t bus, uint32_t device) |
void | pci_init () |
PCI controller.
Definition in file pci.c.
|
inlinestatic |
Definition at line 21 of file pci.c.
Referenced by read_class(), read_deviceid(), read_hdrtype(), read_secondary_bus(), read_subclass(), and read_vendor().
|
inlinestatic |
Definition at line 34 of file pci.c.
Referenced by pci_init(), and probe_device().
|
inlinestatic |
Definition at line 41 of file pci.c.
Referenced by probe_function().
|
inlinestatic |
Definition at line 48 of file pci.c.
Referenced by pci_init(), and probe_function().
|
inlinestatic |
Definition at line 55 of file pci.c.
Referenced by probe_function().
|
inlinestatic |
Definition at line 62 of file pci.c.
Referenced by probe_function().
|
inlinestatic |
Definition at line 69 of file pci.c.
Referenced by probe_function().
|
static |
Definition at line 126 of file pci.c.
Referenced by pci_init(), probe_function(), and read_secondary_bus().
|
static |
Definition at line 78 of file pci.c.
Referenced by probe_device().
|
static |
Definition at line 111 of file pci.c.
Referenced by probe_bus().
void pci_init | ( | ) |
Definition at line 134 of file pci.c.
Referenced by cmd_display_pci().