forked from AbleOS/ableos
Compare commits
2 commits
43ea77c18f
...
5f2b181f22
Author | SHA1 | Date | |
---|---|---|---|
5f2b181f22 | |||
Able | 2b2e0c514b |
|
@ -13,7 +13,10 @@ scan_bus := fn(): void {
|
||||||
|
|
||||||
config_read32 := fn(bus: u32, device: u32, func: u32, offset: u32): u32 {
|
config_read32 := fn(bus: u32, device: u32, func: u32, offset: u32): u32 {
|
||||||
// construct address param
|
// construct address param
|
||||||
address := bus << 16 | device << 11 | func << 8 | offset & 0xFC | 0x80000000
|
address := bus << 16 | device << 11 | func << 8
|
||||||
|
address |= offset
|
||||||
|
address &= 0xFC
|
||||||
|
address |= 0x80000000
|
||||||
|
|
||||||
// write address
|
// write address
|
||||||
//Port::new(0xCF8).write(address);
|
//Port::new(0xCF8).write(address);
|
||||||
|
|
Loading…
Reference in a new issue