taglinefilesource code
hwif212drivers/block/ide.cvoid ide_set_recovery_timer (ide_hwif_t *hwif)
hwif214drivers/block/ide.chwif->last_time = read_timer();
hwif253drivers/block/ide.cide_hwif_t *hwif = &ide_hwifs[h];
hwif256drivers/block/ide.chwif->noprobe  = (h > 1);
hwif257drivers/block/ide.chwif->io_base  = default_io_base[h];
hwif258drivers/block/ide.chwif->ctl_port  = hwif->io_base ? hwif->io_base+0x206 : 0x000;
hwif260drivers/block/ide.cif (hwif->io_base == HD_DATA)
hwif261drivers/block/ide.chwif->noprobe = 1; /* may be overriden by ide_setup() */
hwif263drivers/block/ide.chwif->major  = ide_hwif_to_major[h];
hwif264drivers/block/ide.chwif->name[0]  = 'i';
hwif265drivers/block/ide.chwif->name[1]  = 'd';
hwif266drivers/block/ide.chwif->name[2]  = 'e';
hwif267drivers/block/ide.chwif->name[3]  = '0' + h;
hwif270drivers/block/ide.cide_drive_t *drive = &hwif->drives[unit];
hwif274drivers/block/ide.cdrive->hwif      = hwif;
hwif359drivers/block/ide.cvoid ide_hwif_select (ide_hwif_t *hwif)
hwif363drivers/block/ide.cif (hwif->select != current_select) {
hwif367drivers/block/ide.ccurrent_select = hwif->select;
hwif454drivers/block/ide.cide_hwif_t *hwif = gd->real_devices;
hwif457drivers/block/ide.cide_drive_t *drive = &hwif->drives[unit];
hwif469drivers/block/ide.cgd->real_devices = hwif->drives[0].name;  /* name of first drive */
hwif505drivers/block/ide.cstatic void init_gendisk (ide_hwif_t *hwif)
hwif513drivers/block/ide.cif (hwif->drives[units-1].present)
hwif523drivers/block/ide.cblksize_size[hwif->major] = bs;
hwif528drivers/block/ide.chwif->drives[unit].part = &gd->part[unit << PARTN_BITS];
hwif530drivers/block/ide.cgd->major  = hwif->major;    /* our major device number */
hwif537drivers/block/ide.cgd->real_devices= hwif;      /* ptr to internal data */
hwif540drivers/block/ide.chwif->gd = gendisk_head = gd;
hwif565drivers/block/ide.cstatic void start_reset_timer (ide_hwif_t *hwif)
hwif567drivers/block/ide.cide_hwgroup_t *hwgroup = hwif->hwgroup;
hwif586drivers/block/ide.cide_hwif_t *hwif = hwgroup->hwif;
hwif595drivers/block/ide.cstart_reset_timer (hwif);
hwif619drivers/block/ide.cide_hwif_t *hwif = hwgroup->hwif;
hwif630drivers/block/ide.cstart_reset_timer (hwif);
hwif633drivers/block/ide.cprintk("%s: reset timed-out, status=0x%02x\n", hwif->name, tmp);
hwif635drivers/block/ide.cprintk("%s: reset: ", hwif->name);
hwif682drivers/block/ide.cide_hwif_t *hwif = HWIF(drive);
hwif699drivers/block/ide.cstart_reset_timer (hwif); /* begin periodic polling */
hwif712drivers/block/ide.cide_drive_t *rdrive = &hwif->drives[unit];
hwif739drivers/block/ide.cstart_reset_timer (hwif);  /* begin periodic polling */
hwif1311drivers/block/ide.cstatic inline void do_request (ide_hwif_t *hwif, struct request *rq)
hwif1319drivers/block/ide.cprintk("%s: ide_do_request: current=0x%08lx\n", hwif->name, (unsigned long) rq);
hwif1323drivers/block/ide.cif (MAJOR(rq->dev) != hwif->major || unit >= MAX_DRIVES) {
hwif1324drivers/block/ide.cprintk("%s: bad device number: 0x%04x\n", hwif->name, rq->dev);
hwif1327drivers/block/ide.cdrive = &hwif->drives[unit];
hwif1342drivers/block/ide.c((ide_hwgroup_t *)hwif->hwgroup)->drive = drive;
hwif1344drivers/block/ide.cwhile ((read_timer() - hwif->last_time) < DISK_RECOVERY_TIME);
hwif1347drivers/block/ide.cif (hwif->select)
hwif1348drivers/block/ide.cide_hwif_select (hwif);
hwif1378drivers/block/ide.cide_end_request(0, hwif->hwgroup);
hwif1400drivers/block/ide.cprintk("%s: EEeekk!! handler not NULL in ide_do_request()\n", hwgroup->hwif->name);
hwif1404drivers/block/ide.cide_hwif_t *hwif = hwgroup->hwif;
hwif1409drivers/block/ide.crq = blk_dev[hwif->major].current_request;
hwif1412drivers/block/ide.c} while ((hwif = hwif->next) != hwgroup->hwif);
hwif1415drivers/block/ide.cblk_dev[hwif->major].current_request = rq->next;
hwif1417drivers/block/ide.cdo_request(hwgroup->hwif = hwif, hwgroup->rq = rq);
hwif1436drivers/block/ide.cide_hwif_t *hgif = hwgroup->hwif;
hwif1437drivers/block/ide.cide_hwif_t *hwif = hgif;
hwif1439drivers/block/ide.cdisable_irq(hwif->irq);
hwif1440drivers/block/ide.c} while ((hwif = hwif->next) != hgif);
hwif1443drivers/block/ide.cenable_irq(hwif->irq);
hwif1444drivers/block/ide.c} while ((hwif = hwif->next) != hgif);
hwif1485drivers/block/ide.cif (hwgroup->hwif->dmaproc) 
hwif1486drivers/block/ide.c(void) hwgroup->hwif->dmaproc (ide_dma_abort, drive);
hwif1520drivers/block/ide.cide_hwif_t *hwif = hwgroup->hwif;
hwif1535drivers/block/ide.cif (hwif->irq == irq) {
hwif1537drivers/block/ide.cif (hwif->select)
hwif1538drivers/block/ide.cide_hwif_select (hwif);
hwif1541drivers/block/ide.cide_drive_t *drive = &hwif->drives[unit];
hwif1550drivers/block/ide.c} while ((hwif = hwif->next) != hwgroup->hwif);
hwif1561drivers/block/ide.cif (irq == hwgroup->hwif->irq && (handler = hwgroup->handler) != NULL) {
hwif1584drivers/block/ide.cide_hwif_t  *hwif = &ide_hwifs[h];
hwif1585drivers/block/ide.cif (hwif->present && major == hwif->major) {
hwif1588drivers/block/ide.cide_drive_t *drive = &hwif->drives[unit];
hwif2271drivers/block/ide.cstatic void probe_for_drives (ide_hwif_t *hwif)
hwif2275drivers/block/ide.cif (check_region(hwif->io_base,8) || check_region(hwif->ctl_port,1)) {
hwif2278drivers/block/ide.cide_drive_t *drive = &hwif->drives[unit];
hwif2286drivers/block/ide.cprintk("%s: ports already in use, skipping probe\n", hwif->name);
hwif2292drivers/block/ide.cprintk("%s: probing for first 2 of %d possible drives\n", hwif->name, MAX_DRIVES);
hwif2300drivers/block/ide.cide_drive_t *drive = &hwif->drives[unit];
hwif2308drivers/block/ide.cide_drive_t *drive = &hwif->drives[unit];
hwif2310drivers/block/ide.chwif->present = 1;
hwif2311drivers/block/ide.crequest_region(hwif->io_base,  8, hwif->name);
hwif2312drivers/block/ide.crequest_region(hwif->ctl_port, 1, hwif->name);
hwif2524drivers/block/ide.cide_hwif_t *hwif;
hwif2541drivers/block/ide.chwif = &ide_hwifs[hw];
hwif2542drivers/block/ide.cdrive = &hwif->drives[unit];
hwif2549drivers/block/ide.chwif->noprobe = 0;
hwif2554drivers/block/ide.chwif->noprobe = 0;
hwif2565drivers/block/ide.chwif->noprobe = 0;
hwif2577drivers/block/ide.chwif = &ide_hwifs[hw];
hwif2600drivers/block/ide.crequest_region(0x3e6, 1, hwif->name);
hwif2617drivers/block/ide.chwif->noprobe = 1;
hwif2624drivers/block/ide.chwif->io_base  = vals[0];
hwif2625drivers/block/ide.chwif->ctl_port = vals[1];
hwif2626drivers/block/ide.chwif->irq      = vals[2];
hwif2627drivers/block/ide.chwif->noprobe = 0;
hwif2700drivers/block/ide.cstatic void probe_cmos_for_drives (ide_hwif_t *hwif)
hwif2711drivers/block/ide.cide_drive_t *drive = &hwif->drives[unit];
hwif2733drivers/block/ide.cstatic int init_irq (ide_hwif_t *hwif)
hwif2743drivers/block/ide.cif (request_irq(hwif->irq, ide_intr, SA_INTERRUPT, hwif->name)) {
hwif2752drivers/block/ide.cif ((hwgroup = irq_to_hwgroup[hwif->irq]) == NULL) {
hwif2754drivers/block/ide.cirq_to_hwgroup[hwif->irq] = hwgroup;
hwif2755drivers/block/ide.chwgroup->hwif    = hwif->next = hwif;
hwif2767drivers/block/ide.chwif->next = hwgroup->hwif->next;
hwif2768drivers/block/ide.chwgroup->hwif->next = hwif;
hwif2770drivers/block/ide.chwif->hwgroup = hwgroup;
hwif2774drivers/block/ide.cprintk("%s at 0x%03x-0x%03x,0x%03x on irq %d", hwif->name,
hwif2775drivers/block/ide.chwif->io_base, hwif->io_base+7, hwif->ctl_port, hwif->irq);
hwif2776drivers/block/ide.cif (hwgroup->hwif != hwif) {
hwif2777drivers/block/ide.cchar *name = hwgroup->hwif->name;
hwif2778drivers/block/ide.cif (hwgroup->hwif->irq == hwif->irq)
hwif2922drivers/block/ide.cide_hwif_t *hwif = &ide_hwifs[h];
hwif2923drivers/block/ide.cif (!hwif->noprobe) {
hwif2924drivers/block/ide.cif (hwif->io_base == HD_DATA)
hwif2925drivers/block/ide.cprobe_cmos_for_drives (hwif);
hwif2926drivers/block/ide.cprobe_for_drives (hwif);
hwif2928drivers/block/ide.cif (hwif->present) {
hwif2929drivers/block/ide.cif (!hwif->irq) {
hwif2930drivers/block/ide.cif (!(hwif->irq = default_irqs[h])) {
hwif2931drivers/block/ide.cprintk("%s: DISABLED, NO IRQ\n", hwif->name);
hwif2932drivers/block/ide.chwif->present = 0;
hwif2937drivers/block/ide.cif (hwif->irq == HD_IRQ && hwif->io_base != HD_DATA) {
hwif2938drivers/block/ide.cprintk("%s: CANNOT SHARE IRQ WITH OLD HARDDISK DRIVER (hd.c)\n", hwif->name);
hwif2939drivers/block/ide.chwif->present = 0;
hwif2950drivers/block/ide.cide_hwif_t *hwif = &ide_hwifs[h];
hwif2951drivers/block/ide.cif (!hwif->present)
hwif2953drivers/block/ide.chwif->present = 0; /* we set it back to 1 if all is ok below */
hwif2956drivers/block/ide.cif (irq_to_hwgroup[hwif->irq] != NULL) {
hwif2957drivers/block/ide.cprintk("%s: SERIALIZE BUG!\n", hwif->name);
hwif2960drivers/block/ide.cirq_to_hwgroup[hwif->irq] = irq_to_hwgroup[ide_hwifs[1].irq];
hwif2963drivers/block/ide.cswitch (hwif->major) {
hwif2969drivers/block/ide.cprintk("%s: request_fn NOT DEFINED\n", hwif->name);
hwif2972drivers/block/ide.cif (register_blkdev (hwif->major, hwif->name, &ide_fops)) {
hwif2973drivers/block/ide.cprintk("%s: UNABLE TO GET MAJOR NUMBER %d\n", hwif->name, hwif->major);
hwif2974drivers/block/ide.c} else if (init_irq (hwif)) {
hwif2975drivers/block/ide.cprintk("%s: UNABLE TO GET IRQ %d\n", hwif->name, hwif->irq);
hwif2976drivers/block/ide.c(void) unregister_blkdev (hwif->major, hwif->name);
hwif2978drivers/block/ide.cinit_gendisk(hwif);
hwif2979drivers/block/ide.cblk_dev[hwif->major].request_fn = rfn;
hwif2980drivers/block/ide.cread_ahead[hwif->major] = 8;  /* (4kB) */
hwif2981drivers/block/ide.chwif->present = 1;  /* success */
hwif80drivers/block/ide.h#define HWIF(drive)    ((ide_hwif_t *)drive->hwif)
hwif262drivers/block/ide.hvoid    *hwif;    /* actually (ide_hwif_t *) */
hwif333drivers/block/ide.hide_hwif_t    *hwif;  /* ptr to current hwif in linked-list */
hwif333drivers/block/triton.cide_hwif_t *hwif = &ide_hwifs[h];
hwif335drivers/block/triton.cif (hwif->io_base == 0x1f0 && (timings & 0x8000)) {
hwif338drivers/block/triton.c} else if (hwif->io_base == 0x170 && (timings & 0x80000000)) {
hwif343drivers/block/triton.cprintk("    %s: BusMaster DMA at 0x%04x-0x%04x", hwif->name, base, base+7);
hwif348drivers/block/triton.crequest_region(base, 8, hwif->name);
hwif349drivers/block/triton.chwif->dma_base  = base;
hwif351drivers/block/triton.chwif->dmatable = table;
hwif353drivers/block/triton.chwif->dmaproc  = &triton_dmaproc;
hwif356drivers/block/triton.chwif->name, time, ((~time>>12)&3)+2, ((~time>>8)&3)+1);