Jump to content

PSD_IRQ_REG

From EDM2
Revision as of 02:41, 20 May 2025 by Martini (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Access IRQ related registers.

This function permits access to the IRQ related registers.

Mode
Called in Kernel, and Interrupt Mode.

Syntax

PSD_IRQ_REG <keywords>

Parameters

Entry
Pointer to PSD_IRQ structure.
  ulong_t flags;    (Input)
  ulong_t data;     (Input/Output)
  ulong_t procnum;  (Input)
flags
indicate which type of operation is to be performed.
IRQ_READ_IRR read the interrupt request register.
IRQ_READ_ISR read the in service register.
data
contains the data read from a read request, or the data to write if a write request.
procnum
is the processor number of where the operation should take place.

Return Code

NO_ERROR
operation completed successfully.
-1
operation failed.

Remarks

  • Optional: the function is not required.
  • The OS/2 kernel provides default handling for that specific function.
  • The function can not call a PSD help that may block.

Notes : If this function is omitted, OS/2 will perform all register 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.

Structure

typedef struct psd_irq_s {
   ulong_t flags;    (Input)
   ulong_t data;     (Input/Output)
   ulong_t procnum;  (Input)
} PSD_IRQ;