Adaptec 1542CP - Storage Controller Fast SCSI 10 MBps Uživatelská příručka Strana 152

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 157
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 151
152 Enhanced OS-9 for X86 PCAT
1
Installing and Configuring Enhanced OS-9
pci_get_irq_pin() - get PCI IRQ pin
Syntax
#include <pcicnfg.h>
u_int8 pci_get_irq_pin(u_int8 bus, u_int8 dev, u_int8 func);
State
System
Description
pci_get_irq_pin() returns the status of the IRQ pin on a given PCI
device at ’bus’ bus number, ’dev’ device number, ’func’ function number.
Header File
MWOS/SRC/DEFS/HW/pcicnfg.h
Example
#include <const.h>
#include <pcicnfg.h>
#include <stdio.h>
#include <stdlib.h>
main()
{
u_int8 bus, dev, func;
u_int8 irqpin;
bus = 0; /* device on bus zero */
device = 11; /* device ID = 11 */
func = 0; /* function number = 0 */
irqpin = pci_get_irq_pin(bus, device, func);
printf("IRQ PIN = %d\n", irqpin);
return EXIT_SUCCESS;
}
pci_get_irq_line() - get PCI IRQ line
Syntax
#include <pcicnfg.h>
u_int8 pci_get_irq_line(u_int8 bus, u_int8 dev, u_int8 func);
State
System
Zobrazit stránku 151

Komentáře k této Příručce

Žádné komentáře