XXsetint(5) (RM400 only) XXsetint(5)
NAME
XXsetint - inform a driver of a given interrupt
SYNOPSIS
#include <sys/infconfig.h>
void XXsetint(int *, intrparamt *);
DESCRIPTION
The XXsetint routine is called after the XXexist routine, but before
any other routine in the driver. The XXsetint routine is called when
the Reliant UNIX system has determined which interrupt number a given
piece of hardware should use. The intrparamt parameter can be used
to differentiate between various calls to this routine. The first
parameter to this routine is a pointer to a list of interrupt numbers
which the driver must use for this device. If the XXsetint routine is
not called for a given device, the driver should not be initialized
since, no interrupt could be allocated to the device. The XXsetint
routine will be called for each line in the drivers idevice file.
The intrparamt structure consists of the following definitions:
typedef struct intrparams {
int bustype;
int unit;
struct ioaddressinfo ioports[1];
int spare[12];
} intrparamt;
The members of this structure are:
bustype This specifies that the hardware is either on the EISA or
ISA bus.
unit This value is taken from the unit field of the sdevice
file. It can be used to determine which device is being
referenced.
ioports This structure is not currently used, but may in a later
revision of the Reliant UNIX system allow the driver to
determine which I/O ports on the ISA bus should be used.
The XXsetint routine is called before any interrupts are enabled, so
interrupts cannot be used. The XXsetint routine cannot allocate
memory.
FILES
sys/intconfig.h
Page 1 Reliant UNIX 5.44 Printed 11/98