/** * netcell_init_one - Register Netcell ATA PCI device with kernel services * @pdev: PCI device to register * @ent: Entry in netcell_pci_tbl matching with @pdev * * Called from kernel PCI layer. * * LOCKING: * Inherited from PCI layer (may sleep). * * RETURNS: * Zero on success, or -ERRNO value.
*/
staticint netcell_init_one (struct pci_dev *pdev, conststruct pci_device_id *ent)
{ staticconststruct ata_port_info info = {
.flags = ATA_FLAG_SLAVE_POSS, /* Actually we don't really care about these as the
firmware deals with it */
.pio_mask = ATA_PIO4,
.mwdma_mask = ATA_MWDMA2,
.udma_mask = ATA_UDMA5, /* UDMA 133 */
.port_ops = &netcell_ops,
}; conststruct ata_port_info *port_info[] = { &info, NULL }; int rc;
ata_print_version_once(&pdev->dev, DRV_VERSION);
rc = pcim_enable_device(pdev); if (rc) return rc;
/* Any chip specific setup/optimisation/messages here */
ata_pci_bmdma_clear_simplex(pdev);
/* And let the library code do the work */ return ata_pci_bmdma_init_one(pdev, port_info, &netcell_sht, NULL, 0);
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.