Re: [ACPI] Re: RFC: ACPI/scsi/libata integration and hotswap

Alan Cox
2005-12-08T14:53:17Z

On Iau, 2005-12-08 at 14:43 +0000, Matthew Garrett wrote:
> ACPI methods belong to SATA/PATA targets, not PCI devices. The
> notification you get is something of the form
>
> \SB.PCI.IDE0.SEC.MASTER

That is fine. Given struct ata_port * you can get

channel = ap->hard_port_no
pci device ptr = to_pci(ap->host_set->dev)

And from the struct ata_device *

slave = (adev->devno == 1)