PSD_IRQ_MASK
PSD_IRQ_MASK keywords
Optional, Default,
Can't Block
Description
Mask/Unmask IRQ levels
This function allows masking (disabling), or un-masking (enabling) of IRQ
levels. When this function is invoked it should save the state of the interrupt
flag, and disable interrupts before performing the mask operation. It should
then restore the state of the interrupt flag.
Mode
Called in Kernel, and Interrupt
Mode.
Entry
Pointer to PSD_IRQ structure.
Exit
NO_ERROR
operation completed successfully.
-1
Structures
typedef struct psd_irq_s{
ulong_t flags; (Input)
ulong_t data; (Input/Output)
ulong_t procnum; (Input)
} PSD_IRQ;
data
is the logical IRQ
levels to mask, or un-mask.
flags
indicate which type of operation is to
be performed.
IRQ_MASK
mask
(disable) IRQ levels
IRQ_UNMASK
unmask (enable) IRQ levels
IRQ_GETMASK
retrieves the masks for all IRQ
levels
IRQ_NEWMASK
indicates that all the IRQ levels
should reflect the state of the specified mask.
procnum
is the processor number of where the
operation should take place.
Notes
If this function is omitted, OS/2
will perform all mask operations for an 8259 Master/Slave based PIC system.
The requests will be sent to CPU0 depending on the state of the INIT_GLOBAL_IRQ_ACCESS
flag.
[Back: PSD_PORT_IO]
[Next: PSD_IRQ_REG]