int aspmatch(struct device *parent, struct cfdata *cf, void *aux) { struct confargs *ca = aux; if (ca->ca_type.iodc_type != HPPA_TYPE_BHA || ca->ca_type.iodc_sv_model != HPPA_BHA_ASP) return 0; /* Make sure we have an IRQ. */ if (ca->ca_irq == HP700CF_IRQ_UNDEF) ca->ca_irq = hp700_intr_allocate_bit(&int_reg_cpu); /* * Forcibly mask the HPA down to the start of the ASP * chip address space. */ ca->ca_hpa &= ~(ASP_BANK_SZ - 1); return 1; }
int waxmatch(struct device *parent, struct cfdata *cf, void *aux) { struct confargs *ca = aux; /* there will be only one */ if (wax_attached || ca->ca_type.iodc_type != HPPA_TYPE_BHA || ca->ca_type.iodc_sv_model != HPPA_BHA_WAX) return 0; /* Make sure we have an IRQ. */ if (ca->ca_irq == HP700CF_IRQ_UNDEF) { ca->ca_irq = hp700_intr_allocate_bit(&int_reg_cpu); if (ca->ca_irq == HP700CF_IRQ_UNDEF) { aprint_normal("waxmatch: Can't allocate IRQ\n"); return 0; } } return 1; }