Re: [PATCH v2 1/1] rust: pci: add domain_nr() accessor

From: Alexandre Courbot

Date: Wed Nov 11 2026 - 20:42:12 EST


On Thu Nov 12, 2026 at 5:05 AM JST, John Hubbard wrote:
> The nova-core driver has to send the GPU's PCI location to the GPU's
> firmware as one word that holds the domain, the bus and the device
> number.
>
> The PCI abstraction has dev_id(), which packs the bus, the device and
> the function into one value. It has no accessor that reports the domain.
>
> Add an accessor for the domain number.
>
> Signed-off-by: John Hubbard <jhubbard@xxxxxxxxxx>

Reviewed-by: Alexandre Courbot <acourbot@xxxxxxxxxx>