/asus-wl-520gu-7.0.1.45/src/linux/linux/drivers/ide/ |
H A D | trm290.c | 144 ide_hwif_t *hwif = HWIF(drive); local 154 if (reg != hwif->select_data) { 155 hwif->select_data = reg; 156 outb(0x51|(hwif->channel<<3), hwif->config_data+1); /* set PIO/DMA */ 157 outw(reg & 0xff, hwif->config_data); 162 reg = inw(hwif->config_data+3) & 0x13; 163 reg &= ~(1 << hwif->channel); 164 outw(reg, hwif->config_data+3); 178 ide_hwif_t *hwif local 219 ide_init_trm290(ide_hwif_t *hwif) argument [all...] |
H A D | rz1000.c | 37 void __init ide_init_rz1000 (ide_hwif_t *hwif) /* called from ide-pci.c */ argument 40 struct pci_dev *dev = hwif->pci_dev; 42 hwif->chipset = ide_rz1000; 46 printk("%s: disabled chipset read-ahead (buggy RZ1000/RZ1001)\n", hwif->name); 48 hwif->serialized = 1; 49 hwif->drives[0].no_unmask = 1; 50 hwif->drives[1].no_unmask = 1; 51 printk("%s: serialized, disabled unmasking (buggy RZ1000/RZ1001)\n", hwif->name); 71 ide_hwif_t *hwif = &ide_hwifs[h]; local 72 if ((hwif [all...] |
H A D | ns87415.c | 36 ide_hwif_t *hwif = HWIF(drive); local 37 unsigned int bit, other, new, *old = (unsigned int *) hwif->select_data; 38 struct pci_dev *dev = hwif->pci_dev; 46 bit = 1 << (8 + hwif->channel); 50 bit = 1 << (20 + drive->select.b.unit + (hwif->channel << 1)); 51 other = 1 << (20 + (1 - drive->select.b.unit) + (hwif->channel << 1)); 87 ide_hwif_t *hwif = HWIF(drive); local 93 dma_stat = inb(hwif->dma_base+2); 94 outb(inb(hwif->dma_base)&~1, hwif 115 ide_init_ns87415(ide_hwif_t *hwif) argument [all...] |
H A D | ide-probe.c | 20 * Version 1.03 fix for (hwif->chipset == ide_4drives) 23 * Version 1.05 fix for (hwif->chipset == ide_pdc4030) 167 * slave drive if the hwif is actually a flash memory card of some variety: 317 ide_hwif_t *hwif = HWIF(drive); local 328 SELECT_DRIVE(hwif,drive); 332 SELECT_DRIVE(hwif,&hwif->drives[0]); /* exit with drive0 selected */ 362 SELECT_DRIVE(hwif,&hwif->drives[0]); /* exit with drive0 selected */ 434 static int hwif_check_regions (ide_hwif_t *hwif) argument 460 hwif_register(ide_hwif_t *hwif) argument 499 probe_hwif(ide_hwif_t *hwif) argument 586 save_match(ide_hwif_t *hwif, ide_hwif_t *new, ide_hwif_t **match) argument 630 init_irq(ide_hwif_t *hwif) argument 767 init_gendisk(ide_hwif_t *hwif) argument 861 hwif_init(ide_hwif_t *hwif) argument [all...] |
H A D | ide-dma.c | 76 * SELECT_READ_WRITE(hwif,drive,func) for active tuning based on IO direction. 251 static int ide_build_sglist (ide_hwif_t *hwif, struct request *rq) argument 254 struct scatterlist *sg = hwif->sg_table; 258 if (hwif->sg_dma_active) 262 hwif->sg_dma_direction = PCI_DMA_FROMDEVICE; 264 hwif->sg_dma_direction = PCI_DMA_TODEVICE; 303 return pci_map_sg(hwif->pci_dev, sg, nents, hwif->sg_dma_direction); 306 static int ide_raw_build_sglist (ide_hwif_t *hwif, struct request *rq) argument 308 struct scatterlist *sg = hwif 522 ide_hwif_t *hwif = HWIF(drive); local 582 ide_hwif_t *hwif = HWIF(drive); local 639 ide_hwif_t *hwif = HWIF(drive); local 758 ide_release_dma(ide_hwif_t *hwif) argument 781 ide_setup_dma(ide_hwif_t *hwif, unsigned long dma_base, unsigned int num_ports) argument 822 ide_get_or_set_dma_base(ide_hwif_t *hwif, int extra, const char *name) argument [all...] |
H A D | icside.c | 226 static int ide_build_sglist(ide_hwif_t *hwif, struct request *rq) argument 229 struct scatterlist *sg = hwif->sg_table; 233 hwif->sg_dma_direction = PCI_DMA_FROMDEVICE; 235 hwif->sg_dma_direction = PCI_DMA_TODEVICE; 252 return pci_map_sg(NULL, sg, nents, hwif->sg_dma_direction); 436 ide_hwif_t *hwif = HWIF(drive); local 437 int autodma = hwif->autodma; 482 return hwif->dmaproc(func, drive); 495 ide_hwif_t *hwif = HWIF(drive); local 517 disable_dma(hwif 570 icside_setup_dma(ide_hwif_t *hwif, int autodma) argument 599 ide_hwif_t *hwif; local 623 ide_hwif_t *hwif; local 651 ide_hwif_t *hwif; local 673 ide_hwif_t *hwif, *mate; local [all...] |
H A D | cs5530.c | 105 #define CS5530_BASEREG(hwif) (((hwif)->dma_base & ~0xf) + ((hwif)->channel ? 0x30 : 0x20)) 116 ide_hwif_t *hwif = HWIF(drive); local 117 unsigned int format, basereg = CS5530_BASEREG(hwif); 135 ide_hwif_t *hwif = HWIF(drive); local 137 ide_drive_t *mate = &hwif->drives[unit^1]; 145 (void)hwif->dmaproc(ide_dma_off_quietly, drive); /* turn off DMA while we fiddle */ 146 outb(inb(hwif->dma_base+2)&~(unit?0x40:0x20), hwif 345 ide_init_cs5530(ide_hwif_t *hwif) argument [all...] |
H A D | ide-sibyte.c | 284 ide_hwif_t *hwif; local 311 hwif = &ide_hwifs[i]; 312 hwif->hw.io_ports[IDE_DATA_OFFSET] = SIBYTE_IDE_REG(0x1f0); 313 hwif->hw.io_ports[IDE_ERROR_OFFSET] = SIBYTE_IDE_REG(0x1f1); 314 hwif->hw.io_ports[IDE_NSECTOR_OFFSET] = SIBYTE_IDE_REG(0x1f2); 315 hwif->hw.io_ports[IDE_SECTOR_OFFSET] = SIBYTE_IDE_REG(0x1f3); 316 hwif->hw.io_ports[IDE_LCYL_OFFSET] = SIBYTE_IDE_REG(0x1f4); 317 hwif->hw.io_ports[IDE_HCYL_OFFSET] = SIBYTE_IDE_REG(0x1f5); 318 hwif->hw.io_ports[IDE_SELECT_OFFSET] = SIBYTE_IDE_REG(0x1f6); 319 hwif [all...] |
H A D | sl82c105.c | 62 ide_hwif_t *hwif = HWIF(drive); local 63 struct pci_dev *dev = hwif->pci_dev; 68 reg = (hwif->channel ? 0x4c : 0x44) + (drive->select.b.unit ? 4 : 0); 104 ide_hwif_t *hwif = HWIF(drive); local 105 struct pci_dev *dev = hwif->pci_dev; 109 reg = (hwif->channel ? 0x4c : 0x44) + (drive->select.b.unit ? 4 : 0); 129 ide_hwif_t *hwif = HWIF(drive); local 131 if (!hwif->autodma) 241 void __init dma_init_sl82c105(ide_hwif_t *hwif, unsigned long dma_base) argument 247 rev = sl82c105_bridge_revision(hwif 270 ide_init_sl82c105(ide_hwif_t *hwif) argument [all...] |
H A D | it8172.c | 57 void __init ide_init_it8172 (ide_hwif_t *hwif); 139 ide_hwif_t *hwif = HWIF(drive); local 140 struct pci_dev *dev = hwif->pci_dev; 258 void __init ide_init_it8172 (ide_hwif_t *hwif) argument 260 struct pci_dev* dev = hwif->pci_dev; 263 hwif->tuneproc = &it8172_tune_drive; 264 hwif->drives[0].autotune = 1; 265 hwif->drives[1].autotune = 1; 267 if (!hwif->dma_base) 271 hwif [all...] |
H A D | pdc4030.c | 162 int __init setup_pdc4030 (ide_hwif_t *hwif) argument 170 if (!hwif) return 0; 172 drive = &hwif->drives[0]; 173 hwif2 = &ide_hwifs[hwif->index+1]; 174 if (hwif->chipset == ide_pdc4030) /* we've already been found ! */ 187 "%s: Failed Promise read config!\n",hwif->name); 194 printk(KERN_INFO "%s: Promise caching controller, ",hwif->name); 213 case 0x00: hwif->irq = 14; break; 214 case 0x01: hwif->irq = 12; break; 215 default: hwif 270 detect_pdc4030(ide_hwif_t *hwif) argument 295 ide_hwif_t *hwif; local [all...] |
H A D | qd65xx.c | 138 static byte qd6500_compute_timing (ide_hwif_t *hwif, int active_time, int recovery_time) argument 217 ide_hwif_t *hwif = HWIF(drive); local 221 if (qd_timing_ok(hwif->drives)) { 223 hwif->selectproc = NULL; 225 hwif->selectproc = &qd_select; 353 ide_hwif_t *hwif = &ide_hwifs[index]; local 370 hwif->chipset = ide_qd65xx; 371 hwif->select_data = base; 372 hwif->config_data = config; 373 hwif 397 ide_hwif_t *hwif = &ide_hwifs[index]; local [all...] |
H A D | hpt366.c | 744 ide_hwif_t *hwif = HWIF(drive); local 745 unsigned long dma_base = hwif->dma_base; 746 byte regstate = hwif->channel ? 0x54 : 0x50; 747 byte reginfo = hwif->channel ? 0x56 : 0x52; 771 pci_read_config_byte(hwif->pci_dev, reginfo, 775 pci_write_config_byte(hwif->pci_dev, regstate, 0x37); 786 pci_write_config_byte(hwif->pci_dev, regstate, 0x37); 808 ide_hwif_t *hwif = HWIF(drive); local 809 struct pci_dev *dev = hwif->pci_dev; 810 byte reset = (hwif 846 ide_hwif_t *hwif = HWIF(drive); local 1032 ata66_hpt366(ide_hwif_t *hwif) argument 1046 ide_init_hpt366(ide_hwif_t *hwif) argument 1105 ide_dmacapable_hpt366(ide_hwif_t *hwif, unsigned long dmabase) argument [all...] |
H A D | qd65xx.h | 34 #define QD_CONFIG(hwif) ((hwif)->config_data & 0x00ff) 35 #define QD_CONTROL(hwif) (((hwif)->config_data & 0xff00) >> 8)
|
H A D | ide.c | 102 * Version 6.20 Added/Fixed Generic ATA-66 support and hwif detection. 231 static inline void set_recovery_timer (ide_hwif_t *hwif) argument 234 hwif->last_time = read_timer(); 245 ide_hwif_t *hwif = &ide_hwifs[index]; local 247 /* bulk initialize hwif & drive info with zeros */ 248 memset(hwif, 0, sizeof(ide_hwif_t)); 252 hwif->index = index; 253 ide_init_hwif_ports(&hw, ide_default_io_base(index), 0, &hwif->irq); 254 memcpy(&hwif->hw, &hw, sizeof(hw)); 255 memcpy(hwif 614 ide_geninit(ide_hwif_t *hwif) argument 675 ide_hwif_t *hwif = HWIF(drive); local 769 ide_hwif_t *hwif = HWIF(drive); local 1334 ide_hwif_t *hwif = HWIF(drive); local 1516 ide_hwif_t *hwif; local 1596 ide_hwif_t *hwif = (ide_hwif_t *)blk_dev[MAJOR(dev)].data; local 1616 ide_hwif_t *hwif = HWIF(drive); local 1685 ide_hwif_t *hwif; local 1768 ide_hwif_t *hwif = hwgroup->hwif; local 1797 ide_hwif_t *hwif; local 1904 ide_hwif_t *hwif = &ide_hwifs[h]; local 2039 ide_hwif_t *hwif; local 2163 hwif_unregister(ide_hwif_t *hwif) argument 2198 ide_hwif_t *hwif, *g; local 2408 ide_hwif_t *hwif; local 3231 ide_hwif_t *hwif; local 3798 ide_hwif_t *hwif = &ide_hwifs[index]; local 3978 ide_hwif_t *hwif; local 4044 ide_hwif_t *hwif = &ide_hwifs[i]; local [all...] |
H A D | alim15x3.c | 237 ide_hwif_t *hwif = HWIF(drive); local 238 struct pci_dev *dev = hwif->pci_dev; 243 int port = hwif->index ? 0x5c : 0x58; 244 int portFIFO = hwif->channel ? 0x55 : 0x54; 271 if (hwif->index) { 277 if (hwif->index) { 302 ide_hwif_t *hwif = HWIF(drive); local 303 struct pci_dev *dev = hwif->pci_dev; 306 int m5229_udma = hwif->channel? 0x57 : 0x56; 323 unsigned long dma_base = hwif 429 ide_hwif_t *hwif = HWIF(drive); local 534 ata66_ali15x3(ide_hwif_t *hwif) argument 629 ide_init_ali15x3(ide_hwif_t *hwif) argument 687 ide_dmacapable_ali15x3(ide_hwif_t *hwif, unsigned long dmabase) argument [all...] |
H A D | gayle.c | 88 static int gayle_ack_intr_a4000(ide_hwif_t *hwif) argument 92 ch = z_readb(hwif->io_ports[IDE_IRQ_OFFSET]); 98 static int gayle_ack_intr_a1200(ide_hwif_t *hwif) argument 102 ch = z_readb(hwif->io_ports[IDE_IRQ_OFFSET]); 105 (void)z_readb(hwif->io_ports[IDE_STATUS_OFFSET]); 106 z_writeb(0x7c, hwif->io_ports[IDE_IRQ_OFFSET]);
|
H A D | pdc202xx.c | 348 ide_hwif_t *hwif = HWIF(drive); local 349 struct pci_dev *dev = hwif->pci_dev; 352 int err = 0, i = 0, j = hwif->channel ? 2 : 0 ; 407 if (hwif->drives[i].present) 408 id[i+j] = hwif->drives[i].id; /* get identify structs */ 475 ide_hwif_t *hwif = HWIF(drive); local 477 unsigned long indexreg = (hwif->dma_base + 1); 478 unsigned long datareg = (hwif->dma_base + 3); 480 struct pci_dev *dev = hwif->pci_dev; 482 unsigned long indexreg = high_16 + (hwif 671 ide_hwif_t *hwif = HWIF(drive); local 883 ide_hwif_t *hwif = HWIF(drive); local 946 ide_hwif_t *hwif = HWIF(drive); local 1119 ata66_pdc202xx(ide_hwif_t *hwif) argument 1140 ide_init_pdc202xx(ide_hwif_t *hwif) argument [all...] |
H A D | amd74xx.c | 99 ide_hwif_t *hwif = HWIF(drive); local 100 struct pci_dev *dev = hwif->pci_dev; 104 unsigned long dma_base = hwif->dma_base; 300 ide_hwif_t *hwif = HWIF(drive); local 301 struct pci_dev *dev = hwif->pci_dev; 445 unsigned int __init ata66_amd74xx (ide_hwif_t *hwif) argument 447 struct pci_dev *dev = hwif->pci_dev; 473 ata66 = (hwif->channel) ? 486 void __init ide_init_amd74xx (ide_hwif_t *hwif) argument 488 hwif 510 ide_dmacapable_amd74xx(ide_hwif_t *hwif, unsigned long dmabase) argument [all...] |
H A D | ide-proc.c | 166 ide_hwif_t *hwif = (ide_hwif_t *)data; local 189 ide_hwgroup_t *mygroup = (ide_hwgroup_t *)(hwif->hwgroup); 191 if (hwif->mate && hwif->mate->hwgroup) 192 mategroup = (ide_hwgroup_t *)(hwif->mate->hwgroup); 197 printk("/proc/ide/%s/config: channel(s) busy, cannot write\n", hwif->name); 216 if (hwif->pci_dev && !IDE_PCI_DEVID_EQ(hwif->pci_devid, IDE_PCI_DEVID_NULL)) 268 struct pci_dev *dev = hwif->pci_dev; 338 ide_hwif_t *hwif local 394 ide_hwif_t *hwif = (ide_hwif_t *) data; local 424 ide_hwif_t *hwif = (ide_hwif_t *) data; local 437 ide_hwif_t *hwif = (ide_hwif_t *) data; local 712 create_proc_ide_drives(ide_hwif_t *hwif) argument 742 recreate_proc_ide_device(ide_hwif_t *hwif, ide_drive_t *drive) argument 761 destroy_proc_ide_device(ide_hwif_t *hwif, ide_drive_t *drive) argument 775 destroy_proc_ide_drives(ide_hwif_t *hwif) argument 801 ide_hwif_t *hwif = &ide_hwifs[h]; local 820 ide_hwif_t *hwif = &ide_hwifs[h]; local [all...] |
H A D | serverworks.c | 247 ide_hwif_t *hwif = HWIF(drive); local 248 struct pci_dev *dev = hwif->pci_dev; 253 unsigned long dma_base = hwif->dma_base; 259 byte drive_pci3 = hwif->channel ? 0x57 : 0x56; 510 ide_hwif_t *hwif = HWIF(drive); local 511 unsigned long dma_base = hwif->dma_base; 589 static unsigned int __init ata66_svwks_dell (ide_hwif_t *hwif) argument 591 struct pci_dev *dev = hwif->pci_dev; 595 return ((1 << (hwif->channel + 14)) & 606 static unsigned int __init ata66_svwks_cobalt (ide_hwif_t *hwif) argument 617 ata66_svwks(ide_hwif_t *hwif) argument 632 ide_init_svwks(ide_hwif_t *hwif) argument [all...] |
H A D | opti621.c | 150 ide_hwif_t *hwif = HWIF(drive); local 154 drive = &hwif->drives[d]; 253 ide_hwif_t *hwif = HWIF(drive); local 257 pio1 = hwif->drives[0].drive_data; 258 pio2 = hwif->drives[1].drive_data; 274 hwif->name, ax, first.data_time, first.recovery_time, drdy); 276 hwif->name, ax, second.data_time, second.recovery_time, drdy); 282 reg_base = hwif->io_ports[IDE_DATA_OFFSET]; 309 * ide_init_opti621() is called once for each hwif found at boot. 311 void __init ide_init_opti621 (ide_hwif_t *hwif) argument [all...] |
H A D | cy82c693.c | 274 ide_hwif_t *hwif = HWIF(drive); local 275 struct pci_dev *dev = hwif->pci_dev; 280 if (hwif->index > 0) { /* drive is on the secondary channel */ 321 printk (KERN_INFO "%s (ch=%d, dev=%d): PIO timing is (addr=0x%X, ior=0x%X, iow=0x%X, 8bit=0x%X)\n", drive->name, hwif->channel, drive->select.b.unit, addrCtrl, pclk.time_16r, pclk.time_16w, pclk.time_8); 374 printk (KERN_INFO "%s (ch=%d, dev=%d): set PIO timing to (addr=0x%X, ior=0x%X, iow=0x%X, 8bit=0x%X)\n", drive->name, hwif->channel, drive->select.b.unit, addrCtrl, pclk.time_16r, pclk.time_16w, pclk.time_8); 429 void __init ide_init_cy82c693(ide_hwif_t *hwif) argument 431 hwif->chipset = ide_cy82c693; 432 hwif->tuneproc = &cy82c693_tune_drive; 433 hwif->drives[0].autotune = 1; 434 hwif [all...] |
/asus-wl-520gu-7.0.1.45/src/router/iproute2/reference/asm-ppc/ |
H A D | ide.h | 157 #define ide_ack_intr(hwif) (hwif->hw.ack_intr ? hwif->hw.ack_intr(hwif) : 1) 159 #define ide_ack_intr(hwif) (1)
|
/asus-wl-520gu-7.0.1.45/src/linux/linux/include/asm-ppc/ |
H A D | ide.h | 157 #define ide_ack_intr(hwif) (hwif->hw.ack_intr ? hwif->hw.ack_intr(hwif) : 1) 159 #define ide_ack_intr(hwif) (1)
|