mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Herbert Rosmanith <kernel@wildsau.enemy.org>
To: Herbert Rosmanith <kernel@wildsau.enemy.org>
Cc: Arjan van de Ven <arjan@infradead.org>, linux-kernel@vger.kernel.org
Subject: Re: finding pci_dev from scsi_device
Date: Mon, 26 Jun 2006 16:42:12 +0200 (MET DST)	[thread overview]
Message-ID: <200606261442.k5QEgCA1013471@wildsau.enemy.org> (raw)
In-Reply-To: <200606261437.k5QEb8vr013461@wildsau.enemy.org>

> >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

      reply	other threads:[~2006-06-26 14:48 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-06-26 13:55 Herbert Rosmanith
2006-06-26 14:13 ` Arjan van de Ven
2006-06-26 14:15   ` Herbert Rosmanith
2006-06-26 14:29     ` Arjan van de Ven
2006-06-26 14:24       ` Herbert Rosmanith
2006-06-26 14:41         ` Arjan van de Ven
2006-06-26 14:47           ` Herbert Rosmanith
2006-06-26 14:54           ` Herbert Rosmanith
2006-06-26 14:37       ` Herbert Rosmanith
2006-06-26 14:42         ` Herbert Rosmanith [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200606261442.k5QEgCA1013471@wildsau.enemy.org \
    --to=kernel@wildsau.enemy.org \
    --cc=arjan@infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®