Lines Matching refs:ahc
48 aic7770_map_registers(struct ahc_softc *ahc, u_int port)
55 ahc->tag = BUS_SPACE_PIO;
56 ahc->bsh.ioport = port;
61 aic7770_map_int(struct ahc_softc *ahc, u_int irq)
67 if ((ahc->flags & AHC_EDGE_INTERRUPT) == 0)
70 error = request_irq(irq, ahc_linux_isr, shared, "aic7xxx", ahc);
72 ahc->platform_data->irq = irq;
82 struct ahc_softc *ahc;
92 ahc = ahc_alloc(&aic7xxx_driver_template, name);
93 if (ahc == NULL)
95 error = aic7770_config(ahc, aic7770_ident_table + edev->id.driver_data,
98 ahc->bsh.ioport = 0;
99 ahc_free(ahc);
103 dev_set_drvdata(dev, ahc);
105 error = ahc_linux_register_host(ahc, &aic7xxx_driver_template);
112 struct ahc_softc *ahc = dev_get_drvdata(dev);
115 if (ahc->platform_data && ahc->platform_data->host)
116 scsi_remove_host(ahc->platform_data->host);
118 ahc_lock(ahc, &s);
119 ahc_intr_enable(ahc, FALSE);
120 ahc_unlock(ahc, &s);
122 ahc_free(ahc);