/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/include/asm-cris/arch-v32/ |
H A D | ide.h | 57 #define ide_ack_intr(hwif) (hwif)->hw.ack_intr(hwif)
|
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/ide/pci/ |
H A D | pdc202xx_old.c | 68 ide_hwif_t *hwif = HWIF(drive); local 69 struct pci_dev *dev = hwif->pci_dev; 85 pdc_old_disable_66MHz_clock(hwif); 152 static u8 pdc202xx_old_cable_detect (ide_hwif_t *hwif) argument 154 u16 CIS = 0, mask = (hwif->channel) ? (1<<11) : (1<<10); 155 pci_read_config_word(hwif->pci_dev, 0x50, &CIS); 159 static void pdc_old_enable_66MHz_clock(ide_hwif_t *hwif) argument 161 unsigned long clock_reg = hwif->dma_master + 0x11; 164 outb(clock | (hwif->channel ? 0x08 : 0x02), clock_reg); 167 static void pdc_old_disable_66MHz_clock(ide_hwif_t *hwif) argument 204 ide_hwif_t *hwif = HWIF(drive); local 223 ide_hwif_t *hwif = HWIF(drive); local 239 ide_hwif_t *hwif = HWIF(drive); local 275 pdc202xx_reset_host(ide_hwif_t *hwif) argument 291 ide_hwif_t *hwif = HWIF(drive); local 313 init_hwif_pdc202xx(ide_hwif_t *hwif) argument 357 init_dma_pdc202xx(ide_hwif_t *hwif, unsigned long dmabase) argument [all...] |
H A D | piix.c | 154 ide_hwif_t *hwif = HWIF(drive); local 155 struct pci_dev *dev = hwif->pci_dev; 157 int master_port = hwif->channel ? 0x42 : 0x40; 195 slave_data &= hwif->channel ? 0x0f : 0xf0; 197 (hwif->channel ? 4 : 0); 239 ide_hwif_t *hwif = HWIF(drive); local 240 struct pci_dev *dev = hwif->pci_dev; 241 u8 maslave = hwif->channel ? 0x42 : 0x40; 388 ide_hwif_t *hwif = HWIF(drive); local 392 dma_stat = hwif 397 piix_cable_detect(ide_hwif_t *hwif) argument 415 init_hwif_piix(ide_hwif_t *hwif) argument [all...] |
H A D | cmd64x.c | 227 ide_hwif_t *hwif = HWIF(drive); local 228 struct pci_dev *dev = hwif->pci_dev; 251 if (hwif->channel) { 252 ide_drive_t *drives = hwif->drives; 267 if (hwif->channel) 297 ide_hwif_t *hwif = HWIF(drive); local 298 struct pci_dev *dev = hwif->pci_dev; 300 u8 regU = 0, pciU = hwif->channel ? UDIDETCR1 : UDIDETCR0; 368 ide_hwif_t *hwif = HWIF(drive); local 370 u8 irq_mask = hwif 382 ide_hwif_t *hwif = HWIF(drive); local 399 ide_hwif_t *hwif = HWIF(drive); local 421 ide_hwif_t *hwif = HWIF(drive); local 452 ide_hwif_t *hwif = HWIF(drive); local 550 ata66_cmd64x(ide_hwif_t *hwif) argument 565 init_hwif_cmd64x(ide_hwif_t *hwif) argument [all...] |
H A D | it8213.c | 67 ide_hwif_t *hwif = HWIF(drive); local 68 struct pci_dev *dev = hwif->pci_dev; 129 ide_hwif_t *hwif = HWIF(drive); local 130 struct pci_dev *dev = hwif->pci_dev; 224 * init_hwif_it8213 - set up hwif structs 225 * @hwif: interface to set up 232 static void __devinit init_hwif_it8213(ide_hwif_t *hwif) argument 236 hwif->speedproc = &it8213_tune_chipset; 237 hwif->tuneproc = &it8213_tuneproc; 239 hwif [all...] |
H A D | aec62xx.c | 92 ide_hwif_t *hwif = HWIF(drive); local 93 struct pci_dev *dev = hwif->pci_dev; 120 ide_hwif_t *hwif = HWIF(drive); local 121 struct pci_dev *dev = hwif->pci_dev; 134 pci_read_config_byte(dev, (0x44|hwif->channel), &ultra); 138 pci_write_config_byte(dev, (0x44|hwif->channel), tmp2); 177 ide_hwif_t *hwif = HWIF(drive); local 178 struct pci_dev *dev = hwif->pci_dev; 225 static void __devinit init_hwif_aec62xx(ide_hwif_t *hwif) argument 227 struct pci_dev *dev = hwif 265 init_dma_aec62xx(ide_hwif_t *hwif, unsigned long dmabase) argument [all...] |
H A D | hpt366.c | 482 ide_hwif_t *hwif = HWIF(drive); local 483 struct pci_dev *dev = hwif->pci_dev; 514 ide_hwif_t *hwif = HWIF(drive); local 515 struct pci_dev *dev = hwif->pci_dev; 543 ide_hwif_t *hwif = HWIF(drive); local 544 struct hpt_info *info = pci_get_drvdata(hwif->pci_dev); 571 ide_hwif_t *hwif = HWIF(drive); local 576 hwif->OUTB(drive->ctl | 2, IDE_CONTROL_REG); 581 ide_hwif_t *hwif = HWIF(drive); local 582 struct pci_dev *dev = hwif 642 ide_hwif_t *hwif = HWIF(drive); local 650 ide_hwif_t *hwif = HWIF(drive); local 674 ide_hwif_t *hwif = HWIF(drive); local 696 ide_hwif_t *hwif = HWIF(drive); local 719 ide_hwif_t *hwif = HWIF(drive); local 739 hpt3xxn_set_clock(ide_hwif_t *hwif, u8 mode) argument 795 ide_hwif_t *hwif = HWIF(drive); local 1122 init_hwif_hpt366(ide_hwif_t *hwif) argument 1246 init_dma_hpt366(ide_hwif_t *hwif, unsigned long dmabase) argument [all...] |
H A D | opti621.c | 148 ide_hwif_t *hwif = HWIF(drive); local 152 drive = &hwif->drives[d]; 254 ide_hwif_t *hwif = HWIF(drive); local 258 pio1 = hwif->drives[0].drive_data; 259 pio2 = hwif->drives[1].drive_data; 276 hwif->name, ax, first.data_time, 280 hwif->name, ax, second.data_time, 286 reg_base = hwif->io_ports[IDE_DATA_OFFSET]; 327 * init_hwif_opti621() is called once for each hwif found at boot. 329 static void __devinit init_hwif_opti621 (ide_hwif_t *hwif) argument [all...] |
H A D | alim15x3.c | 288 ide_hwif_t *hwif = HWIF(drive); local 289 struct pci_dev *dev = hwif->pci_dev; 294 int port = hwif->channel ? 0x5c : 0x58; 295 int portFIFO = hwif->channel ? 0x55 : 0x54; 379 return drive->hwif->ultra_mask; 393 ide_hwif_t *hwif = HWIF(drive); local 394 struct pci_dev *dev = hwif->pci_dev; 399 int m5229_udma = (hwif->channel) ? 0x57 : 0x56; 462 if (rq_data_dir(drive->hwif->hwgroup->rq)) 561 static unsigned int __devinit ata66_ali15x3 (ide_hwif_t *hwif) argument 634 init_hwif_common_ali15x3(ide_hwif_t *hwif) argument 691 init_hwif_ali15x3(ide_hwif_t *hwif) argument 744 init_dma_ali15x3(ide_hwif_t *hwif, unsigned long dmabase) argument [all...] |
H A D | cy82c693.c | 277 ide_hwif_t *hwif = HWIF(drive); local 278 struct pci_dev *dev = hwif->pci_dev; 283 if (hwif->index > 0) { /* drive is on the secondary channel */ 328 drive->name, hwif->channel, drive->select.b.unit, 385 drive->name, hwif->channel, drive->select.b.unit, 445 static void __devinit init_hwif_cy82c693(ide_hwif_t *hwif) argument 447 hwif->autodma = 0; 449 hwif->chipset = ide_cy82c693; 450 hwif->tuneproc = &cy82c693_tune_drive; 452 if (!hwif 471 init_iops_cy82c693(ide_hwif_t *hwif) argument [all...] |
H A D | via82cxxx.c | 125 static void via_set_speed(ide_hwif_t *hwif, u8 dn, struct ide_timing *timing) argument 127 struct pci_dev *dev = hwif->pci_dev; 128 struct via82cxxx_dev *vdev = pci_get_drvdata(hwif->pci_dev); 167 struct via82cxxx_dev *vdev = pci_get_drvdata(drive->hwif->pci_dev); 229 ide_hwif_t *hwif = HWIF(drive); local 230 struct via82cxxx_dev *vdev = pci_get_drvdata(hwif->pci_dev); 231 u16 w80 = hwif->udma_four; 429 static void __devinit init_hwif_via82cxxx(ide_hwif_t *hwif) argument 431 struct via82cxxx_dev *vdev = pci_get_drvdata(hwif->pci_dev); 434 hwif [all...] |
H A D | delkin_cb.c | 54 ide_hwif_t *hwif = NULL; local 83 rc = ide_register_hw_with_fixup(&hw, 0, &hwif, ide_undecoded_slave); 89 pci_set_drvdata(dev, hwif); 90 hwif->pci_dev = dev; 91 drive = &hwif->drives[0]; 102 ide_hwif_t *hwif = pci_get_drvdata(dev); local 104 if (hwif) 105 ide_unregister(hwif->index);
|
H A D | hpt34x.c | 154 static void __devinit init_hwif_hpt34x(ide_hwif_t *hwif) argument 158 hwif->autodma = 0; 160 hwif->tuneproc = &hpt34x_tune_drive; 161 hwif->speedproc = &hpt34x_tune_chipset; 162 hwif->drives[0].autotune = 1; 163 hwif->drives[1].autotune = 1; 165 pci_read_config_word(hwif->pci_dev, PCI_COMMAND, &pcicmd); 167 if (!hwif->dma_base) 170 hwif->ultra_mask = 0x07; 171 hwif [all...] |
H A D | serverworks.c | 138 ide_hwif_t *hwif = HWIF(drive); local 139 struct pci_dev *dev = hwif->pci_dev; 157 pci_read_config_byte(dev, (0x56|hwif->channel), &ultra_timing); 171 u8 dma_stat = inb(hwif->dma_status); 280 pci_write_config_byte(dev, (0x56|hwif->channel), ultra_timing); 405 static unsigned int __devinit ata66_svwks_svwks (ide_hwif_t *hwif) argument 417 static unsigned int __devinit ata66_svwks_dell (ide_hwif_t *hwif) argument 419 struct pci_dev *dev = hwif->pci_dev; 424 return ((1 << (hwif->channel + 14)) & 435 static unsigned int __devinit ata66_svwks_cobalt (ide_hwif_t *hwif) argument 446 ata66_svwks(ide_hwif_t *hwif) argument 470 init_hwif_svwks(ide_hwif_t *hwif) argument [all...] |
H A D | pdc202xx_new.c | 85 * @hwif: for the port address 88 static u8 get_indexed_reg(ide_hwif_t *hwif, u8 index) argument 92 outb(index, hwif->dma_vendor1); 93 value = inb(hwif->dma_vendor3); 101 * @hwif: for the port address 104 static void set_indexed_reg(ide_hwif_t *hwif, u8 index, u8 value) argument 106 outb(index, hwif->dma_vendor1); 107 outb(value, hwif->dma_vendor3); 151 ide_hwif_t *hwif = HWIF(drive); local 167 if (max_dma_rate(hwif 226 pdcnew_cable_detect(ide_hwif_t *hwif) argument 492 init_hwif_pdc202new(ide_hwif_t *hwif) argument [all...] |
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/ide/ |
H A D | ide-acpi.c | 48 ide_hwif_t *hwif; member in struct:ide_acpi_hwif_link 132 * ide_acpi_hwif_get_handle - Get ACPI object handle for a given hwif 133 * @hwif: device to locate 135 * Retrieves the object handle for a given hwif. 139 static acpi_handle ide_acpi_hwif_get_handle(ide_hwif_t *hwif) argument 141 struct device *dev = hwif->gendev.parent; 147 DEBPRINT("ENTER: device %s\n", hwif->name); 150 DEBPRINT("no PCI device for %s\n", hwif->name); 162 /* channel is hwif->channel */ 163 chan_handle = acpi_get_child(dev_handle, hwif 181 ide_hwif_t *hwif = HWIF(drive); local 226 ide_hwif_t *hwif = HWIF(drive); local 481 ide_acpi_get_timing(ide_hwif_t *hwif) argument 570 ide_acpi_push_timing(ide_hwif_t *hwif) argument 625 ide_acpi_init(ide_hwif_t *hwif) argument [all...] |
H A D | ide-pnp.c | 33 ide_hwif_t *hwif; local 45 index = ide_register_hw(&hw, 1, &hwif); 49 pnp_set_drvdata(dev,hwif); 58 ide_hwif_t *hwif = pnp_get_drvdata(dev); local 59 if (hwif) { 60 ide_unregister(hwif->index);
|
H A D | ide-io.c | 78 HWGROUP(drive)->hwif->ide_dma_on(drive); 199 if (drive->hwif->tuneproc != NULL) 200 drive->hwif->tuneproc(drive, 255); 218 * Right now, all we do is call hwif->ide_dma_check(drive), 224 if (drive->hwif->ide_dma_check == NULL) 226 drive->hwif->dma_off_quietly(drive); 275 HWGROUP(drive)->hwif->ide_dma_on(drive); 368 ide_hwif_t *hwif = HWIF(drive); local 384 args[2] = hwif->INB(IDE_NSECTOR_REG); 394 args[2] = hwif 490 ide_hwif_t *hwif = drive->hwif; local 540 ide_hwif_t *hwif = drive->hwif; local 680 ide_hwif_t *hwif = HWIF(drive); local 701 ide_hwif_t *hwif = HWIF(drive); local 815 ide_hwif_t *hwif = drive->hwif; local 833 ide_hwif_t *hwif = drive->hwif; local 856 ide_hwif_t *hwif = HWIF(drive); local 1174 ide_hwif_t *hwif; local 1323 ide_hwif_t *hwif = HWIF(drive); local 1416 ide_hwif_t *hwif; local 1512 ide_hwif_t *hwif = hwgroup->hwif; local 1565 ide_hwif_t *hwif; local [all...] |
H A D | ide-iops.c | 82 void default_hwif_iops (ide_hwif_t *hwif) argument 84 hwif->OUTB = ide_outb; 85 hwif->OUTBSYNC = ide_outbsync; 86 hwif->OUTW = ide_outw; 87 hwif->OUTSW = ide_outsw; 88 hwif->OUTSL = ide_outsl; 89 hwif->INB = ide_inb; 90 hwif->INW = ide_inw; 91 hwif->INSW = ide_insw; 92 hwif 144 default_hwif_mmiops(ide_hwif_t *hwif) argument 217 ide_hwif_t *hwif = HWIF(drive); local 239 ide_hwif_t *hwif = HWIF(drive); local 266 ide_hwif_t *hwif = HWIF(drive); local 283 ide_hwif_t *hwif = HWIF(drive); local 298 default_hwif_transport(ide_hwif_t *hwif) argument 439 ide_hwif_t *hwif = HWIF(drive); local 476 ide_hwif_t *hwif = HWIF(drive); local 512 ide_hwif_t *hwif = HWIF(drive); local 569 ide_hwif_t *hwif = drive->hwif; local 664 ide_hwif_t *hwif = HWIF(drive); local 727 ide_hwif_t *hwif = HWIF(drive); local 893 ide_hwif_t *hwif = HWIF(drive); local 923 ide_hwif_t *hwif = HWIF(drive); local 960 ide_hwif_t *hwif = HWIF(drive); local 1085 ide_hwif_t *hwif; local 1179 ide_wait_not_busy(ide_hwif_t *hwif, unsigned long timeout) argument [all...] |
H A D | ide-taskfile.c | 99 ide_hwif_t *hwif = HWIF(drive); local 107 hwif->OUTB(drive->ctl, IDE_CONTROL_REG); 112 hwif->OUTB(hobfile->feature, IDE_FEATURE_REG); 113 hwif->OUTB(hobfile->sector_count, IDE_NSECTOR_REG); 114 hwif->OUTB(hobfile->sector_number, IDE_SECTOR_REG); 115 hwif->OUTB(hobfile->low_cylinder, IDE_LCYL_REG); 116 hwif->OUTB(hobfile->high_cylinder, IDE_HCYL_REG); 119 hwif->OUTB(taskfile->feature, IDE_FEATURE_REG); 120 hwif->OUTB(taskfile->sector_count, IDE_NSECTOR_REG); 121 hwif 167 ide_hwif_t *hwif = HWIF(drive); local 185 ide_hwif_t *hwif = HWIF(drive); local 208 ide_hwif_t *hwif = HWIF(drive); local 222 ide_hwif_t *hwif = HWIF(drive); local 240 ide_hwif_t *hwif = HWIF(drive); local 264 ide_hwif_t *hwif = drive->hwif; local 337 ide_hwif_t *hwif = drive->hwif; local 394 ide_hwif_t *hwif = drive->hwif; local 430 ide_hwif_t *hwif = drive->hwif; local 773 ide_hwif_t *hwif = HWIF(drive); local [all...] |
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/ide/mips/ |
H A D | swarm.c | 70 ide_hwif_t *hwif; local 87 hwif = ide_hwifs + i; 116 default_hwif_mmiops(hwif); 118 hwif->mmio = 1; 119 hwif->noprobe = 0; 122 hwif->hw.io_ports[i] = 124 hwif->hw.io_ports[IDE_CONTROL_OFFSET] = 126 hwif->hw.irq = K_INT_GB_IDE; 128 memcpy(hwif->io_ports, hwif [all...] |
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/ide/legacy/ |
H A D | qd65xx.c | 135 static u8 qd6500_compute_timing (ide_hwif_t *hwif, int active_time, int recovery_time) argument 214 ide_hwif_t *hwif = HWIF(drive); local 218 if (qd_timing_ok(hwif->drives)) { 220 hwif->selectproc = NULL; 222 hwif->selectproc = &qd_select; 337 static void __init qd_setup(ide_hwif_t *hwif, int base, int config, argument 341 hwif->chipset = ide_qd65xx; 342 hwif->channel = hwif->index; 343 hwif 399 ide_hwif_t *hwif; local [all...] |
H A D | gayle.c | 87 static int gayle_ack_intr_a4000(ide_hwif_t *hwif) argument 91 ch = z_readb(hwif->io_ports[IDE_IRQ_OFFSET]); 97 static int gayle_ack_intr_a1200(ide_hwif_t *hwif) argument 101 ch = z_readb(hwif->io_ports[IDE_IRQ_OFFSET]); 104 (void)z_readb(hwif->io_ports[IDE_STATUS_OFFSET]); 105 z_writeb(0x7c, hwif->io_ports[IDE_IRQ_OFFSET]); 135 ide_hwif_t *hwif; local 165 index = ide_register_hw(&hw, 1, &hwif); 167 hwif->mmio = 1;
|
H A D | qd65xx.h | 34 #define QD_CONFIG(hwif) ((hwif)->config_data & 0x00ff) 35 #define QD_CONTROL(hwif) (((hwif)->config_data & 0xff00) >> 8)
|
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/ide/ppc/ |
H A D | pmac.c | 71 /* Those fields are duplicating what is in hwif. We currently 72 * can't use the hwif ones because of some assumptions that are 412 static void pmac_ide_setup_dma(pmac_ide_hwif_t *pmif, ide_hwif_t *hwif); 541 ide_hwif_t *hwif = HWIF(drive); local 544 disable_irq_nosync(hwif->irq); 550 (void) hwif->INB(IDE_STATUS_REG); 559 hwif->OUTB(drive->ctl | 2, IDE_CONTROL_REG); 560 hwif->OUTB(command, IDE_NSECTOR_REG); 561 hwif->OUTB(SETFEATURES_XFER, IDE_FEATURE_REG); 562 hwif 1083 pmac_ide_do_suspend(ide_hwif_t *hwif) argument 1115 pmac_ide_do_resume(ide_hwif_t *hwif) argument 1152 pmac_ide_setup_device(pmac_ide_hwif_t *pmif, ide_hwif_t *hwif) argument 1291 ide_hwif_t *hwif; local 1368 ide_hwif_t *hwif = (ide_hwif_t *)dev_get_drvdata(&mdev->ofdev.dev); local 1384 ide_hwif_t *hwif = (ide_hwif_t *)dev_get_drvdata(&mdev->ofdev.dev); local 1402 ide_hwif_t *hwif; local 1473 ide_hwif_t *hwif = (ide_hwif_t *)pci_get_drvdata(pdev); local 1489 ide_hwif_t *hwif = (ide_hwif_t *)pci_get_drvdata(pdev); local 1590 ide_hwif_t *hwif = HWIF(drive); local 1672 ide_hwif_t *hwif = drive->hwif; local 1689 ide_hwif_t *hwif = HWIF(drive); local 1746 ide_hwif_t *hwif = HWIF(drive); local 1803 ide_hwif_t *hwif = HWIF(drive); local 1854 ide_hwif_t *hwif = HWIF(drive); local 2021 pmac_ide_setup_dma(pmac_ide_hwif_t *pmif, ide_hwif_t *hwif) argument [all...] |