Lines Matching +full:layer +full:- +full:primary
1 // SPDX-License-Identifier: GPL-2.0-only
3 * pata_jmicron.c - JMicron ATA driver for non AHCI mode. This drives the
31 * jmicron_pre_reset - check for 40/80 pin
38 * either as primary or secondary (or neither). We don't do any policy
44 struct ata_port *ap = link->ap; in jmicron_pre_reset()
45 struct pci_dev *pdev = to_pci_dev(ap->host->dev); in jmicron_pre_reset()
48 int port_mask = 1<< (4 * ap->port_no); in jmicron_pre_reset()
49 int port = ap->port_no; in jmicron_pre_reset()
55 return -ENOENT; in jmicron_pre_reset()
69 as the internal primary channel */ in jmicron_pre_reset()
86 return -ENOENT; in jmicron_pre_reset()
87 if (control & (1 << 3)) /* 40/80 pin primary */ in jmicron_pre_reset()
88 ap->cbl = ATA_CBL_PATA40; in jmicron_pre_reset()
90 ap->cbl = ATA_CBL_PATA80; in jmicron_pre_reset()
95 return -ENOENT; in jmicron_pre_reset()
97 ap->cbl = ATA_CBL_PATA40; in jmicron_pre_reset()
99 ap->cbl = ATA_CBL_PATA80; in jmicron_pre_reset()
102 ap->cbl = ATA_CBL_SATA; in jmicron_pre_reset()
121 * jmicron_init_one - Register Jmicron ATA PCI device with kernel services
125 * Called from kernel PCI layer.
128 * Inherited from PCI layer (may sleep).
131 * Zero on success, or -ERRNO value.
170 MODULE_DESCRIPTION("SCSI low-level driver for Jmicron PATA ports");