summaryrefslogtreecommitdiff
path: root/src/arch/amd64/drivers/pic.h
blob: 2a4670e0f093128978163431a9fd56b654e515c7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#pragma once

#define PIC_REMAP_OFFSET 0x20

/**
 * Remaps the pie, i.e. initializes it
 */
void pic_remap(void);

/**
 * Masks an external irq to stop firing until un masked
 * @param irq - the irq to mask
 */
void pic_mask(int irq);

/**
 * Unmasks an external irq to allow interrupts to continue for that irq
 * @param irq - the irq to unmask
 */
void pic_unmask(int irq);

/**
 * Disabled the pick
 */
void pic_disable(void);

/**
 * Tells the pick that the interrupt has ended
 * @param irq - the irq that has ended
 */
void pic_eoi(int irq);