add console
This commit is contained in:
parent
f001be171c
commit
3215605b2d
5 changed files with 254 additions and 0 deletions
19
include/dev/pic.h
Normal file
19
include/dev/pic.h
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
#ifndef _PIC_H_
|
||||
#define _PIC_H_
|
||||
|
||||
#include <kernel/common.h>
|
||||
|
||||
#define PIC1_CMD 0x20
|
||||
#define PIC1_DATA 0x21
|
||||
#define PIC2_CMD 0xA0
|
||||
#define PIC2_DATA 0xA1
|
||||
|
||||
#ifndef __ASM__
|
||||
|
||||
void pic_mask(uint8_t irq, uint8_t i);
|
||||
void pic_eoi(uint8_t irq);
|
||||
void pic_init();
|
||||
|
||||
#endif /* __ASM__ */
|
||||
#endif /* _PIC_H_ */
|
||||
Loading…
Reference in a new issue