TacOS  0.2
 Tout Structures de données Fichiers Fonctions Variables Définitions de type Énumérations Macros
Macros | Fonctions
Référence du fichier pci_config.h
#include <pci_types.h>
Graphe des dépendances par inclusion de pci_config.h:
Ce graphe montre quels fichiers incluent directement ou indirectement ce fichier :

Aller au code source de ce fichier.

Macros

#define PCI_DEVICE_ID   0x00, 16, 0xffff
 
#define PCI_VENDOR_ID   0x00, 0, 0xffff
 
#define PCI_STATUS   0x04, 16, 0xffff
 
#define PCI_COMMAND   0x04, 0, 0xffff
 
#define PCI_CLASS_CODE   0x08, 24, 0x00ff
 
#define PCI_SUBCLASS   0x08, 16, 0x00ff
 
#define PCI_PROG_IF   0x08, 8, 0x00ff
 
#define PCI_REVISION_ID   0x08, 0, 0x00ff
 
#define PCI_BIST   0x0C, 24, 0x00ff
 
#define PCI_HEADER_TYPE   0x0C, 16, 0x00ff
 
#define PCI_LATENCY_TIMER   0x0C, 8, 0x00ff
 
#define PCI_CACHE_LINE_SIZE   0x0C, 0, 0x00ff
 
#define PCI_BAR0   0x10, 0, 0xffffffff
 
#define PCI_BAR1   0x14, 0, 0xffffffff
 
#define PCI_BAR2   0x18, 0, 0xffffffff
 
#define PCI_BAR3   0x1C, 0, 0xffffffff
 
#define PCI_BAR4   0x20, 0, 0xffffffff
 
#define PCI_BAR5   0x24, 0, 0xffffffff
 
#define PCI_CARDBUS_CIS_POINTER   0x28, 0, 0xffffffff
 
#define PCI_SUBSYS_ID   0x2C, 16, 0xffff
 
#define PCI_SUBSYS_VENDOR_ID   0x2C, 0, 0xffff
 
#define PCI_EXPROM_BAR   0x30, 0, 0xffffffff
 
#define PCI_CAP_POINTER   0x34, 0, 0x00ff
 
#define PCI_MAX_LATENCY   0x3c, 24, 0x00ff
 
#define PCI_MIN_GRANT   0x3c, 16, 0x00ff
 
#define PCI_INTERRUPT_PIN   0x3c, 8, 0x00ff
 
#define PCI_INTERRUPT_LINE   0x3c, 0, 0x00ff
 

Fonctions

uint32_t pci_read_register (uint8_t bus, uint8_t device, uint8_t func, uint8_t reg)
 
uint32_t pci_read_value (pci_function_p func, uint8_t reg, uint8_t offset, uint32_t mask)
 
uint32_t pci_write_register (uint8_t bus, uint8_t slot, uint8_t func, uint8_t reg, uint32_t value)
 
void pci_print_info (pci_function_p function)
 
void pci_print_detailed_info (pci_function_p func)
 

Description détaillée

Auteur
TacOS developers

LICENSE

Copyright (C) 2010, 2011, 2012 - TacOS developers.

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details at http://www.gnu.org/copyleft/gpl.html

You should have received a copy of the GNU General Public License along with this program; if not, see http://www.gnu.org/licenses.

DESCRIPTION

Description de ce que fait le fichier