Lines Matching +full:can +full:- +full:secondary
1 // SPDX-License-Identifier: GPL-2.0-only
3 * pata_jmicron.c - JMicron ATA driver for non AHCI mode. This drives the
6 * this driver can handle other setups if we need it.
31 * jmicron_pre_reset - check for 40/80 pin
37 * On the Jmicron 361/363 there is a single PATA port that can be mapped
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()
58 as master/slave and the secondary as PATA, the other has only the in jmicron_pre_reset()
79 * Now we know which physical port we are talking about we can in jmicron_pre_reset()
86 return -ENOENT; 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()
96 if (control5 & (1 << 19)) /* 40/80 pin secondary */ 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
131 * Zero on success, or -ERRNO value.
170 MODULE_DESCRIPTION("SCSI low-level driver for Jmicron PATA ports");