Adaptec 1542CP - Storage Controller Fast SCSI 10 MBps Podręcznik Użytkownika Strona 152

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 157
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 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
Przeglądanie stron 151

Komentarze do niniejszej Instrukcji

Brak uwag