Re: [RFC PATCH hurd] pci: Add RPCs for taking and freeing io ports by BAR

2023-07-17 Thread Samuel Thibault
Hello, Thanks for working on this :) Damien Zammit, le sam. 15 juil. 2023 16:09:57 +, a ecrit: > +/* > + * Request io ports for BAR 0-5 for a given device. > + * Only works on bars that correspond to IO ports. > + */ > +routine pci_take_io_ports( > + master: pci_t; > + bar: int > +);

[RFC PATCH hurd] pci: Add RPCs for taking and freeing io ports by BAR

2023-07-15 Thread Damien Zammit
The rationale behind this change is that IO ports should not be mapped as regions, because you are not supposed to access them as a byte stream, they are accessed in certain widths depending on what hardware is backing them. This would allow pci-arbiter to control which io ports are accessed and p