Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung
 
 
 
 


Quelle  pcidev_msi.c   Sprache: C

 
// SPDX-License-Identifier: GPL-2.0
/*
 * MSI[X} related functions which are available unconditionally.
 */

#include "../pci.h"

/*
 * Disable the MSI[X] hardware to avoid screaming interrupts during boot.
 * This is the power on reset default so usually this should be a noop.
 */


void pci_msi_init(struct pci_dev *dev)
{
 u16 ctrl;

 dev->msi_cap = pci_find_capability(dev, PCI_CAP_ID_MSI);
 if (!dev->msi_cap)
  return;

 pci_read_config_word(dev, dev->msi_cap + PCI_MSI_FLAGS, &ctrl);
 if (ctrl & PCI_MSI_FLAGS_ENABLE) {
  pci_write_config_word(dev, dev->msi_cap + PCI_MSI_FLAGS,
          ctrl & ~PCI_MSI_FLAGS_ENABLE);
 }

 if (!(ctrl & PCI_MSI_FLAGS_64BIT))
  dev->no_64bit_msi = 1;
}

void pci_msix_init(struct pci_dev *dev)
{
 u16 ctrl;

 dev->msix_cap = pci_find_capability(dev, PCI_CAP_ID_MSIX);
 if (!dev->msix_cap)
  return;

 pci_read_config_word(dev, dev->msix_cap + PCI_MSIX_FLAGS, &ctrl);
 if (ctrl & PCI_MSIX_FLAGS_ENABLE) {
  pci_write_config_word(dev, dev->msix_cap + PCI_MSIX_FLAGS,
          ctrl & ~PCI_MSIX_FLAGS_ENABLE);
 }
}

Messung V0.5
C=95 H=94 G=94

¤ Dauer der Verarbeitung: 0.1 Sekunden  (vorverarbeitet)  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

Beweissystem der NASA

Beweissystem Isabelle

NIST Cobol Testsuite

Cephes Mathematical Library

Wiener Entwicklungsmethode

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.






                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

Software

     Produkte
     Quellcodebibliothek

Aktivitäten

     Artikel über Sicherheit
     Anleitung zur Aktivierung von SSL

Muße

     Gedichte
     Musik
     Bilder

Jenseits des Üblichen ....

Besucherstatistik

Besucherstatistik

Monitoring

Montastic status badge