Turnstone Operating System
Loading...
Searching...
No Matches
pci.64.c File Reference

pci implementation More...

#include <types.h>
#include <pci.h>
#include <memory.h>
#include <memory/paging.h>
#include <memory/frame.h>
#include <acpi.h>
#include <utils.h>
#include <logging.h>
#include <ports.h>
#include <cpu.h>
#include <cpu/interrupt.h>
#include <time/timer.h>

Classes

struct  pci_iterator_internal_t
 

Functions

 MODULE ("turnstone.kernel.hw.pci")
 
int8_t pci_iterator_destroy (iterator_t *iterator)
 
iterator_tpci_iterator_next (iterator_t *iterator)
 
int8_t pci_iterator_end_of_iterator (iterator_t *iterator)
 
const void * pci_iterator_get_item (iterator_t *iterator)
 
pci_context_tpci_get_context (void)
 
int8_t pci_setup (memory_heap_t *heap)
 
iterator_tpci_iterator_create_with_heap (memory_heap_t *heap, acpi_table_mcfg_t *mcfg)
 creates an iterator over pci device devices at mcfg memory area More...
 
const pci_dev_tpci_find_device_by_address (uint8_t group_number, uint8_t bus_number, uint8_t device_number, uint8_t function_number)
 

Variables

static pci_context_tpci_context_default = NULL
 

Detailed Description

pci implementation

This work is licensed under TURNSTONE OS Public License. Please read and understand latest version of Licence.

Function Documentation

◆ pci_iterator_create_with_heap()

iterator_t * pci_iterator_create_with_heap ( memory_heap_t heap,
acpi_table_mcfg_t mcfg 
)

creates an iterator over pci device devices at mcfg memory area

Parameters
heapiterator of heap
mcfgmcfg memory area which indentified by acpi table
Returns
iterator