tag | line | file | source code |
hwif | 212 | drivers/block/ide.c | void ide_set_recovery_timer (ide_hwif_t *hwif) |
hwif | 214 | drivers/block/ide.c | hwif->last_time = read_timer(); |
hwif | 253 | drivers/block/ide.c | ide_hwif_t *hwif = &ide_hwifs[h]; |
hwif | 256 | drivers/block/ide.c | hwif->noprobe = (h > 1); |
hwif | 257 | drivers/block/ide.c | hwif->io_base = default_io_base[h]; |
hwif | 258 | drivers/block/ide.c | hwif->ctl_port = hwif->io_base ? hwif->io_base+0x206 : 0x000; |
hwif | 260 | drivers/block/ide.c | if (hwif->io_base == HD_DATA) |
hwif | 261 | drivers/block/ide.c | hwif->noprobe = 1; /* may be overriden by ide_setup() */ |
hwif | 263 | drivers/block/ide.c | hwif->major = ide_hwif_to_major[h]; |
hwif | 264 | drivers/block/ide.c | hwif->name[0] = 'i'; |
hwif | 265 | drivers/block/ide.c | hwif->name[1] = 'd'; |
hwif | 266 | drivers/block/ide.c | hwif->name[2] = 'e'; |
hwif | 267 | drivers/block/ide.c | hwif->name[3] = '0' + h; |
hwif | 270 | drivers/block/ide.c | ide_drive_t *drive = &hwif->drives[unit]; |
hwif | 274 | drivers/block/ide.c | drive->hwif = hwif; |
hwif | 359 | drivers/block/ide.c | void ide_hwif_select (ide_hwif_t *hwif) |
hwif | 363 | drivers/block/ide.c | if (hwif->select != current_select) { |
hwif | 367 | drivers/block/ide.c | current_select = hwif->select; |
hwif | 454 | drivers/block/ide.c | ide_hwif_t *hwif = gd->real_devices; |
hwif | 457 | drivers/block/ide.c | ide_drive_t *drive = &hwif->drives[unit]; |
hwif | 469 | drivers/block/ide.c | gd->real_devices = hwif->drives[0].name; /* name of first drive */ |
hwif | 505 | drivers/block/ide.c | static void init_gendisk (ide_hwif_t *hwif) |
hwif | 513 | drivers/block/ide.c | if (hwif->drives[units-1].present) |
hwif | 523 | drivers/block/ide.c | blksize_size[hwif->major] = bs; |
hwif | 528 | drivers/block/ide.c | hwif->drives[unit].part = &gd->part[unit << PARTN_BITS]; |
hwif | 530 | drivers/block/ide.c | gd->major = hwif->major; /* our major device number */ |
hwif | 537 | drivers/block/ide.c | gd->real_devices= hwif; /* ptr to internal data */ |
hwif | 540 | drivers/block/ide.c | hwif->gd = gendisk_head = gd; |
hwif | 565 | drivers/block/ide.c | static void start_reset_timer (ide_hwif_t *hwif) |
hwif | 567 | drivers/block/ide.c | ide_hwgroup_t *hwgroup = hwif->hwgroup; |
hwif | 586 | drivers/block/ide.c | ide_hwif_t *hwif = hwgroup->hwif; |
hwif | 595 | drivers/block/ide.c | start_reset_timer (hwif); |
hwif | 619 | drivers/block/ide.c | ide_hwif_t *hwif = hwgroup->hwif; |
hwif | 630 | drivers/block/ide.c | start_reset_timer (hwif); |
hwif | 633 | drivers/block/ide.c | printk("%s: reset timed-out, status=0x%02x\n", hwif->name, tmp); |
hwif | 635 | drivers/block/ide.c | printk("%s: reset: ", hwif->name); |
hwif | 682 | drivers/block/ide.c | ide_hwif_t *hwif = HWIF(drive); |
hwif | 699 | drivers/block/ide.c | start_reset_timer (hwif); /* begin periodic polling */ |
hwif | 712 | drivers/block/ide.c | ide_drive_t *rdrive = &hwif->drives[unit]; |
hwif | 739 | drivers/block/ide.c | start_reset_timer (hwif); /* begin periodic polling */ |
hwif | 1311 | drivers/block/ide.c | static inline void do_request (ide_hwif_t *hwif, struct request *rq) |
hwif | 1319 | drivers/block/ide.c | printk("%s: ide_do_request: current=0x%08lx\n", hwif->name, (unsigned long) rq); |
hwif | 1323 | drivers/block/ide.c | if (MAJOR(rq->dev) != hwif->major || unit >= MAX_DRIVES) { |
hwif | 1324 | drivers/block/ide.c | printk("%s: bad device number: 0x%04x\n", hwif->name, rq->dev); |
hwif | 1327 | drivers/block/ide.c | drive = &hwif->drives[unit]; |
hwif | 1342 | drivers/block/ide.c | ((ide_hwgroup_t *)hwif->hwgroup)->drive = drive; |
hwif | 1344 | drivers/block/ide.c | while ((read_timer() - hwif->last_time) < DISK_RECOVERY_TIME); |
hwif | 1347 | drivers/block/ide.c | if (hwif->select) |
hwif | 1348 | drivers/block/ide.c | ide_hwif_select (hwif); |
hwif | 1378 | drivers/block/ide.c | ide_end_request(0, hwif->hwgroup); |
hwif | 1400 | drivers/block/ide.c | printk("%s: EEeekk!! handler not NULL in ide_do_request()\n", hwgroup->hwif->name); |
hwif | 1404 | drivers/block/ide.c | ide_hwif_t *hwif = hwgroup->hwif; |
hwif | 1409 | drivers/block/ide.c | rq = blk_dev[hwif->major].current_request; |
hwif | 1412 | drivers/block/ide.c | } while ((hwif = hwif->next) != hwgroup->hwif); |
hwif | 1415 | drivers/block/ide.c | blk_dev[hwif->major].current_request = rq->next; |
hwif | 1417 | drivers/block/ide.c | do_request(hwgroup->hwif = hwif, hwgroup->rq = rq); |
hwif | 1436 | drivers/block/ide.c | ide_hwif_t *hgif = hwgroup->hwif; |
hwif | 1437 | drivers/block/ide.c | ide_hwif_t *hwif = hgif; |
hwif | 1439 | drivers/block/ide.c | disable_irq(hwif->irq); |
hwif | 1440 | drivers/block/ide.c | } while ((hwif = hwif->next) != hgif); |
hwif | 1443 | drivers/block/ide.c | enable_irq(hwif->irq); |
hwif | 1444 | drivers/block/ide.c | } while ((hwif = hwif->next) != hgif); |
hwif | 1485 | drivers/block/ide.c | if (hwgroup->hwif->dmaproc) |
hwif | 1486 | drivers/block/ide.c | (void) hwgroup->hwif->dmaproc (ide_dma_abort, drive); |
hwif | 1520 | drivers/block/ide.c | ide_hwif_t *hwif = hwgroup->hwif; |
hwif | 1535 | drivers/block/ide.c | if (hwif->irq == irq) { |
hwif | 1537 | drivers/block/ide.c | if (hwif->select) |
hwif | 1538 | drivers/block/ide.c | ide_hwif_select (hwif); |
hwif | 1541 | drivers/block/ide.c | ide_drive_t *drive = &hwif->drives[unit]; |
hwif | 1550 | drivers/block/ide.c | } while ((hwif = hwif->next) != hwgroup->hwif); |
hwif | 1561 | drivers/block/ide.c | if (irq == hwgroup->hwif->irq && (handler = hwgroup->handler) != NULL) { |
hwif | 1584 | drivers/block/ide.c | ide_hwif_t *hwif = &ide_hwifs[h]; |
hwif | 1585 | drivers/block/ide.c | if (hwif->present && major == hwif->major) { |
hwif | 1588 | drivers/block/ide.c | ide_drive_t *drive = &hwif->drives[unit]; |
hwif | 2271 | drivers/block/ide.c | static void probe_for_drives (ide_hwif_t *hwif) |
hwif | 2275 | drivers/block/ide.c | if (check_region(hwif->io_base,8) || check_region(hwif->ctl_port,1)) { |
hwif | 2278 | drivers/block/ide.c | ide_drive_t *drive = &hwif->drives[unit]; |
hwif | 2286 | drivers/block/ide.c | printk("%s: ports already in use, skipping probe\n", hwif->name); |
hwif | 2292 | drivers/block/ide.c | printk("%s: probing for first 2 of %d possible drives\n", hwif->name, MAX_DRIVES); |
hwif | 2300 | drivers/block/ide.c | ide_drive_t *drive = &hwif->drives[unit]; |
hwif | 2308 | drivers/block/ide.c | ide_drive_t *drive = &hwif->drives[unit]; |
hwif | 2310 | drivers/block/ide.c | hwif->present = 1; |
hwif | 2311 | drivers/block/ide.c | request_region(hwif->io_base, 8, hwif->name); |
hwif | 2312 | drivers/block/ide.c | request_region(hwif->ctl_port, 1, hwif->name); |
hwif | 2524 | drivers/block/ide.c | ide_hwif_t *hwif; |
hwif | 2541 | drivers/block/ide.c | hwif = &ide_hwifs[hw]; |
hwif | 2542 | drivers/block/ide.c | drive = &hwif->drives[unit]; |
hwif | 2549 | drivers/block/ide.c | hwif->noprobe = 0; |
hwif | 2554 | drivers/block/ide.c | hwif->noprobe = 0; |
hwif | 2565 | drivers/block/ide.c | hwif->noprobe = 0; |
hwif | 2577 | drivers/block/ide.c | hwif = &ide_hwifs[hw]; |
hwif | 2600 | drivers/block/ide.c | request_region(0x3e6, 1, hwif->name); |
hwif | 2617 | drivers/block/ide.c | hwif->noprobe = 1; |
hwif | 2624 | drivers/block/ide.c | hwif->io_base = vals[0]; |
hwif | 2625 | drivers/block/ide.c | hwif->ctl_port = vals[1]; |
hwif | 2626 | drivers/block/ide.c | hwif->irq = vals[2]; |
hwif | 2627 | drivers/block/ide.c | hwif->noprobe = 0; |
hwif | 2700 | drivers/block/ide.c | static void probe_cmos_for_drives (ide_hwif_t *hwif) |
hwif | 2711 | drivers/block/ide.c | ide_drive_t *drive = &hwif->drives[unit]; |
hwif | 2733 | drivers/block/ide.c | static int init_irq (ide_hwif_t *hwif) |
hwif | 2743 | drivers/block/ide.c | if (request_irq(hwif->irq, ide_intr, SA_INTERRUPT, hwif->name)) { |
hwif | 2752 | drivers/block/ide.c | if ((hwgroup = irq_to_hwgroup[hwif->irq]) == NULL) { |
hwif | 2754 | drivers/block/ide.c | irq_to_hwgroup[hwif->irq] = hwgroup; |
hwif | 2755 | drivers/block/ide.c | hwgroup->hwif = hwif->next = hwif; |
hwif | 2767 | drivers/block/ide.c | hwif->next = hwgroup->hwif->next; |
hwif | 2768 | drivers/block/ide.c | hwgroup->hwif->next = hwif; |
hwif | 2770 | drivers/block/ide.c | hwif->hwgroup = hwgroup; |
hwif | 2774 | drivers/block/ide.c | printk("%s at 0x%03x-0x%03x,0x%03x on irq %d", hwif->name, |
hwif | 2775 | drivers/block/ide.c | hwif->io_base, hwif->io_base+7, hwif->ctl_port, hwif->irq); |
hwif | 2776 | drivers/block/ide.c | if (hwgroup->hwif != hwif) { |
hwif | 2777 | drivers/block/ide.c | char *name = hwgroup->hwif->name; |
hwif | 2778 | drivers/block/ide.c | if (hwgroup->hwif->irq == hwif->irq) |
hwif | 2922 | drivers/block/ide.c | ide_hwif_t *hwif = &ide_hwifs[h]; |
hwif | 2923 | drivers/block/ide.c | if (!hwif->noprobe) { |
hwif | 2924 | drivers/block/ide.c | if (hwif->io_base == HD_DATA) |
hwif | 2925 | drivers/block/ide.c | probe_cmos_for_drives (hwif); |
hwif | 2926 | drivers/block/ide.c | probe_for_drives (hwif); |
hwif | 2928 | drivers/block/ide.c | if (hwif->present) { |
hwif | 2929 | drivers/block/ide.c | if (!hwif->irq) { |
hwif | 2930 | drivers/block/ide.c | if (!(hwif->irq = default_irqs[h])) { |
hwif | 2931 | drivers/block/ide.c | printk("%s: DISABLED, NO IRQ\n", hwif->name); |
hwif | 2932 | drivers/block/ide.c | hwif->present = 0; |
hwif | 2937 | drivers/block/ide.c | if (hwif->irq == HD_IRQ && hwif->io_base != HD_DATA) { |
hwif | 2938 | drivers/block/ide.c | printk("%s: CANNOT SHARE IRQ WITH OLD HARDDISK DRIVER (hd.c)\n", hwif->name); |
hwif | 2939 | drivers/block/ide.c | hwif->present = 0; |
hwif | 2950 | drivers/block/ide.c | ide_hwif_t *hwif = &ide_hwifs[h]; |
hwif | 2951 | drivers/block/ide.c | if (!hwif->present) |
hwif | 2953 | drivers/block/ide.c | hwif->present = 0; /* we set it back to 1 if all is ok below */ |
hwif | 2956 | drivers/block/ide.c | if (irq_to_hwgroup[hwif->irq] != NULL) { |
hwif | 2957 | drivers/block/ide.c | printk("%s: SERIALIZE BUG!\n", hwif->name); |
hwif | 2960 | drivers/block/ide.c | irq_to_hwgroup[hwif->irq] = irq_to_hwgroup[ide_hwifs[1].irq]; |
hwif | 2963 | drivers/block/ide.c | switch (hwif->major) { |
hwif | 2969 | drivers/block/ide.c | printk("%s: request_fn NOT DEFINED\n", hwif->name); |
hwif | 2972 | drivers/block/ide.c | if (register_blkdev (hwif->major, hwif->name, &ide_fops)) { |
hwif | 2973 | drivers/block/ide.c | printk("%s: UNABLE TO GET MAJOR NUMBER %d\n", hwif->name, hwif->major); |
hwif | 2974 | drivers/block/ide.c | } else if (init_irq (hwif)) { |
hwif | 2975 | drivers/block/ide.c | printk("%s: UNABLE TO GET IRQ %d\n", hwif->name, hwif->irq); |
hwif | 2976 | drivers/block/ide.c | (void) unregister_blkdev (hwif->major, hwif->name); |
hwif | 2978 | drivers/block/ide.c | init_gendisk(hwif); |
hwif | 2979 | drivers/block/ide.c | blk_dev[hwif->major].request_fn = rfn; |
hwif | 2980 | drivers/block/ide.c | read_ahead[hwif->major] = 8; /* (4kB) */ |
hwif | 2981 | drivers/block/ide.c | hwif->present = 1; /* success */ |
hwif | 80 | drivers/block/ide.h | #define HWIF(drive) ((ide_hwif_t *)drive->hwif) |
hwif | 262 | drivers/block/ide.h | void *hwif; /* actually (ide_hwif_t *) */ |
hwif | 333 | drivers/block/ide.h | ide_hwif_t *hwif; /* ptr to current hwif in linked-list */ |
hwif | 333 | drivers/block/triton.c | ide_hwif_t *hwif = &ide_hwifs[h]; |
hwif | 335 | drivers/block/triton.c | if (hwif->io_base == 0x1f0 && (timings & 0x8000)) { |
hwif | 338 | drivers/block/triton.c | } else if (hwif->io_base == 0x170 && (timings & 0x80000000)) { |
hwif | 343 | drivers/block/triton.c | printk(" %s: BusMaster DMA at 0x%04x-0x%04x", hwif->name, base, base+7); |
hwif | 348 | drivers/block/triton.c | request_region(base, 8, hwif->name); |
hwif | 349 | drivers/block/triton.c | hwif->dma_base = base; |
hwif | 351 | drivers/block/triton.c | hwif->dmatable = table; |
hwif | 353 | drivers/block/triton.c | hwif->dmaproc = &triton_dmaproc; |
hwif | 356 | drivers/block/triton.c | hwif->name, time, ((~time>>12)&3)+2, ((~time>>8)&3)+1); |