lkml.org 
[lkml]   [2006]   [Jun]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: finding pci_dev from scsi_device
Date
> >From the scsi_device, I know I can get a "struct ata_port", from there
> a "struct Scsi_Host", a "struct ata_host_set" and even a generic
> "struct device *".

Arjan> static int ahci_host_init(struct ata_probe_ent *probe_ent)
Arjan> {
Arjan> struct ahci_host_priv *hpriv = probe_ent->private_data;
Arjan> struct pci_dev *pdev = to_pci_dev(probe_ent->dev);
Arjan>
Arjan> as you can see, you can easily go from an ata_probe_ent to a pci
Arjan> device...

ah! that looks promising. looks like "to_pci_dev" is what I've been
searching.

thanks, I'll try immediately :)

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

\
 
 \ /
  Last update: 2006-06-26 16:50    [W:1.166 / U:0.164 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site