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