Re:It's Time for Operating Systems to Rediscover Hardware
by userbinator on Wednesday September 01, 2021 @12:31AM
(#28376463)
You've got to support PCI (or something) to find the USB controller
PCI is nothing in comparison to the complexity of USB, especially since the BIOS will usually have set up the I/O ranges for the devices already. It's literally a few dozen bytes of machine code to scan the PCI(e) bus for the device you want.
Re:It's Time for Operating Systems to Rediscover Hardware
by toast0 on Wednesday September 01, 2021 @12:41AM
(#28376505)
Oh sure, PCI isn't too bad, but it's way more work than inb(0x60) or inb(0x3f8). (although to be fair, you probably want to setup an interrupt, which is real work)
PCI is nothing in comparison to the complexity of USB, especially since the BIOS will usually have set up the I/O ranges for the devices already. It's literally a few dozen bytes of machine code to scan the PCI(e) bus for the device you want.