On Mon, 29 Sep 2025 14:36:19 +0100 Shameer Kolothum <[email protected]> wrote:
> Subsequent patches for smmuv3 accel support will make use of this. > > Signed-off-by: Nicolin Chen <[email protected]> > Reviewed-by: Eric Auger <[email protected]> > Signed-off-by: Shameer Kolothum <[email protected]> > Signed-off-by: Shameer Kolothum <[email protected]> One trivial Reviewed-by: Jonathan Cameron <[email protected]> > diff --git a/include/hw/arm/smmu-common.h b/include/hw/arm/smmu-common.h > index 80d0fecfde..c6f899e403 100644 > --- a/include/hw/arm/smmu-common.h > +++ b/include/hw/arm/smmu-common.h > @@ -180,6 +180,12 @@ OBJECT_DECLARE_TYPE(SMMUState, SMMUBaseClass, ARM_SMMU) > /* Return the SMMUPciBus handle associated to a PCI bus number */ > SMMUPciBus *smmu_find_smmu_pcibus(SMMUState *s, uint8_t bus_num); > > +/* Return the SMMUPciBus handle associated to a PCI bus */ > +SMMUPciBus *smmu_get_sbus(SMMUState *s, PCIBus *bus); > + > +/* Initialize SMMUDevice handle associated to a SMMUPCIBus */ Pci assuming intent is to match the type name. > +void smmu_init_sdev(SMMUState *s, SMMUDevice *sdev, PCIBus *bus, int devfn); > + > /* Return the stream ID of an SMMU device */ > static inline uint16_t smmu_get_sid(SMMUDevice *sdev) > {
