User guide
1
Installing and Configuring Enhanced OS-9
Enhanced OS-9 for X86 PCAT 153
Description
pci_get_irq_line() returns the status of the IRQ line 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 irqline;
bus = 0; /* device on bus zero */
device = 11; /* device ID = 11 */
func = 0; /* function number = 0 */
irqline = pci_get_irq_line(bus, device, func);
printf("IRQ LINE = %d\n", irqline);
return EXIT_SUCCESS;
}
pci_set_irq_line() - set PCI IRQ line
Syntax
#include <pcicnfg.h>
error_code pci_set_irq_line(u_int8 bus, u_int8 dev,
u_int8 func, u_int8 irqvect);
State
System
Description
pci_set_irq_line() sets the IRQ line on a given PCI device at ’bus’ bus
number, ’dev’ device number, ’func’ function number.
Header File
MWOS/SRC/DEFS/HW/pcicnfg.h