Auto-attaching to IDE drives
flat view
From: James F Dougherty <hidden>
Date: 2001-09-07 11:24:36
Hi, In my ide_probe routine, I would like to bind to any/all IDE controllers that the PCI discovery detects (as opposed to code like the below). What is the procedure whereby this is performed? Should I do a pci_find_class() and be done with it? Thoughts? Thanks, -James static void mousse_ide_probe(void) { struct pci_dev *pdev = pci_find_device(PCI_VENDOR_ID_PROMISE, PCI_DEVICE_ID_PROMISE_20262, NULL); if(pdev) { mousse_ide_regbase[0]=pdev->resource[0].start; mousse_ide_regbase[1]=pdev->resource[2].start; mousse_ide_ctl_regbase[0]=pdev->resource[1].start; mousse_ide_ctl_regbase[1]=pdev->resource[3].start; mousse_idedma_regbase=pdev->resource[4].start; } mousse_ide_ports_known = 1; return; } ** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/