Lines Matching refs:port
3 * pata-legacy.c - Legacy port PATA/SATA controller driver.
66 MODULE_PARM_DESC(all, "Grab all legacy port devices, even if PCI(0=off, 1=on)");
95 unsigned long port;
120 static int probe_all; /* Set to check all ISA port ranges */
138 give I/O port if non standard */
141 give I/O port if non standard */
146 * @port: Controller port
155 * An I/O port list is used to keep ordering stable and sane, as we
159 static int legacy_probe_add(unsigned long port, unsigned int irq,
167 if (lp->port == 0 && free == NULL)
169 /* Matching port, or the correct slot for ordering */
170 if (lp->port == port || legacy_port[i] == port) {
181 free->port = port;
756 static void winbond_writecfg(unsigned long port, u8 reg, u8 val)
760 outb(reg, port + 0x01);
761 outb(val, port + 0x02);
765 static u8 winbond_readcfg(unsigned long port, u8 reg)
771 outb(reg, port + 0x01);
772 val = inb(port + 0x02);
857 * Probe an ATA port and identify the type of controller. We don't
865 if (winbond && (probe->port == 0x1F0 || probe->port == 0x170)) {
881 if (probe->port == 0x1F0) {
939 unsigned long io = probe->port;
996 /* Nothing found means we drop the port as its probably not there */
1043 /* ATA port enabled */
1069 /* Check enabled and this port is the 465MV port. On the
1084 static __init void qdi65_identify_port(u8 r, u8 res, unsigned long port)
1094 QDI6500, port);
1098 if (!request_region(port + 2 , 2, "pata_qdi")) {
1099 release_region(port, 2);
1102 res = inb(port + 3);
1106 QDI6580, port);
1108 legacy_probe_add(0x1F0, 14, QDI6580DP, port);
1109 /* port + 0x02, r & 0x04 */
1110 legacy_probe_add(0x170, 15, QDI6580DP, port + 2);
1112 release_region(port + 2, 2);
1127 unsigned long port = qd_port[i];
1131 if (request_region(port, 2, "pata_qdi")) {
1136 r = inb(port);
1138 outb(0x19, port);
1140 res = inb(port);
1142 outb(r, port);
1148 release_region(port, 2);
1152 r = inb(port + 1);
1154 /* Check port agrees with port set */
1156 qdi65_identify_port(r, res, port);
1157 release_region(port, 2);
1165 * Attach legacy IDE interfaces by scanning the usual IRQ/port suspects.
1204 winbond = 0x130; /* Default port, alt is 1B0 */
1225 if (pl->port == 0)