Re: finding pci_dev from scsi_device

From: Herbert Rosmanith
Date: Mon Jun 26 2006 - 10:19:58 EST


> > Could someone please tell me how to find the corresponding
> > "struct pci_dev *" from a given "struct scsi_device *"?
> >
> > I've been searching through structures/header files now for
> > quite some time, but cannot find anything.
>
> looking at my isa bus scsi controller... I'd say that that is a really
> hard question that doesn't even always have an answer ;)

umh, yes, but in this case, I'm sure I always have a pci_dev.

> can you share with us what you want to do with this?

I need the pci_dev to reconfigure ahci-controllers so that they look like
having been initialised by BIOS at reboot time.

kind regards,
h.rosmanith
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/