pic

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 21, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PIC1_CMD  = 0x20
	PIC1_DATA = PIC1_CMD + 1
	PIC2_CMD  = 0xA0
	PIC2_DATA = PIC2_CMD + 1

	ICW4_8086 = 0x01 /* 8086/88 (MCS-80/85) mode */
	ICW4_AUTO = 0x02 /* Auto (normal) EOI */

	IRQ_BASE = 0x20

	LINE_TIMER = 0
	LINE_KBD   = 1
	LINE_COM1  = 4
	LINE_COM2  = 3
	LINE_MOUSE = 12
)

Variables

This section is empty.

Functions

func DisableIRQ

func DisableIRQ(line uint16)

func EOI

func EOI(irq uintptr)

func EnableIRQ

func EnableIRQ(line uint16)

func Init

func Init()

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL