• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/ide/

Lines Matching refs:hwif

147 	ide_hwif_t *hwif = drive->hwif;
156 if (reg != hwif->select_data) {
157 hwif->select_data = reg;
159 outb(0x51 | (hwif->channel << 3), hwif->config_data + 1);
160 outw(reg & 0xff, hwif->config_data);
165 reg = inw(hwif->config_data + 3);
167 reg &= ~(1 << hwif->channel);
168 outw(reg, hwif->config_data + 3);
178 outb(drive->select | ATA_DEVICE_OBS, drive->hwif->io_ports.device_addr);
194 ide_hwif_t *hwif = drive->hwif;
202 outl(hwif->dmatable_dma | rw, hwif->dma_base);
204 outw(count * 2 - 1, hwif->dma_base + 2);
216 u16 status = inw(drive->hwif->dma_base + 2);
225 u16 status = inw(drive->hwif->dma_base + 2);
234 static void __devinit init_hwif_trm290(ide_hwif_t *hwif)
236 struct pci_dev *dev = to_pci_dev(hwif->dev);
248 hwif->config_data = cfg_base;
249 hwif->dma_base = (cfg_base + 4) ^ (hwif->channel ? 0x80 : 0);
252 hwif->name, hwif->dma_base, hwif->dma_base + 3);
254 if (ide_allocate_dma_engine(hwif))
258 /* put config reg into first byte of hwif->select_data */
259 outb(0x51 | (hwif->channel << 3), hwif->config_data + 1);
261 hwif->select_data = 0x21;
262 outb(hwif->select_data, hwif->config_data);
264 reg = inb(hwif->config_data + 3);
267 outb(reg, hwif->config_data + 3);
272 hwif->irq = hwif->channel ? 15 : 14;
280 u16 new, old, compat = hwif->channel ? 0x374 : 0x3f4;
284 outb(0x54 | (hwif->channel << 3), hwif->config_data + 1);
285 old = inw(hwif->config_data);
291 hwif->io_ports.ctl_addr = compat + 2;
292 outw(compat | 1, hwif->config_data);
293 new = inw(hwif->config_data);
296 hwif->name, old, new & ~1);