RAM 6.0 BUX II Series Betriebsanweisung Seite 97

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 189
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 96
3 Porting a BSP to Custom Hardware
3.3 Finalizing Your BSP
89
3
PCI_INT_ASSIGN_FUNC_SET
This interrupt assignment routine is specified by assigning a function pointer with
the
PCI_INCLUDE_FUNC_SET pciAutoCfgCtl( ) command as follows:
pciAutoCfgCtl(pCookie, PCI_INT_ASSIGN_FUNC_SET, sysPciAutoconfigIntrAssign);
This optional routine takes as input both the bus-device-function tuple, and an
8-bit quantity that contains the contents of the interrupt pin register from the PCI
configuration header of the device. The interrupt pin register specifies which of the
four PCI interrupt request lines available are connected. The function prototype for
this routine is as follows:
UCHAR sysPciAutoconfigIntrAssign
(
PCI_SYSTEM *pSys,
PCI_LOC *pLoc,
UCHAR pin
);
This routine can use any combination of this data to ascertain the interrupt line
routing. The interrupt line value is returned from the routine, and is programmed
into the interrupt line register of the routine’s PCI configuration header. Device
drivers can subsequently read this register in order to associate the appropriate
interrupt vector to attach an interrupt service routine.
The default interrupt line value is 255.
PCI Configuration Example
The following is a more complete version of basic PCI configuration software for
an example BSP.
NOTE: For documentation clarity, many items in the following code example are
omitted and the order of routines are reorganized in a way that is contrary to Wind
River coding conventions. Actual PCI support code should follow Wind River or
other coding conventions for ease of maintenance.
Seitenansicht 96
1 2 ... 92 93 94 95 96 97 98 99 100 101 102 ... 188 189

Kommentare zu diesen Handbüchern

Keine Kommentare