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

>         struct pci_dev *pdev = to_pci_dev(probe_ent->dev);
> 
> as you can see, you can easily go from an ata_probe_ent to a pci
> device... 

just for the sake of completeness:

static int ahci_ioctl(struct scsi_device *scsidev, int cmd, void __user *arg) {
struct pci_dev *pdev;

	pdev=to_pci_dev(((struct ata_port *)&scsidev->host->hostdata[0])->host_set->dev);

kind regards,
h.rosmanith

  parent reply	other threads:[~2006-06-26 15:00 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 [this message]
2006-06-26 14:37       ` Herbert Rosmanith
2006-06-26 14:42         ` Herbert Rosmanith

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=200606261454.k5QEsGXW013489@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®