fix errors aft refactoring

This commit is contained in:
romych committed 2026-03-08 00:05:03 +03:00
1 parent eb4339b86a
commit 9cb2af2145
3 files changed
+20 -5

No files matched your search

+11
View File
@@ -11,11 +11,14 @@ import log "github.com/sirupsen/logrus"
type I8259 struct {
irr byte
csw byte
}
type I8259Interface interface {
SetIRQ(irq byte)
IRR() byte
CSW() byte
SetCSW(val byte)
}
func (c *I8259) IRR() byte {
@@ -47,6 +50,14 @@ func (c *I8259) SetIRQ(irq byte) {
}
}
func (c *I8259) CSW() byte {
return c.csw
}
func (c *I8259) SetCSW(val byte) {
c.csw = val
}
func New() *I8259 {
return &I8259{
irr: 0,