printf(": %s\n", intrstr);
printf(": %s", intrstr);
ral_pci_attach(struct device *parent, struct device *self, void *aux){	struct ral_pci_softc *psc = (struct ral_pci_softc *)self;	struct ral_softc *sc = &psc->sc_sc;	struct pci_attach_args *pa = aux;	const char *intrstr;	bus_addr_t base;	pci_intr_handle_t ih;	pcireg_t reg;	int error;		sc->sc_dmat = pa->pa_dmat;	psc->sc_pc = pa->pa_pc;	printf("\n");	/* enable the appropriate bits in the PCI CSR */	reg = pci_conf_read(pa->pa_pc, pa->pa_tag, PCI_COMMAND_STATUS_REG);	reg |= PCI_COMMAND_MASTER_ENABLE | PCI_COMMAND_MEM_ENABLE;	pci_conf_write(pa->pa_pc, pa->pa_tag, PCI_COMMAND_STATUS_REG, reg);	/* map control/status registers */	error = pci_mapreg_map(pa, RAL_PCI_BAR0, PCI_MAPREG_TYPE_MEM |	    PCI_MAPREG_MEM_TYPE_32BIT, 0, &sc->sc_st, &sc->sc_sh, &base,	    &psc->sc_mapsize, 0);	if (error != 0) {		printf(": could not map memory space\n");		return;	}	if (pci_intr_map(pa, &ih) != 0) {		printf(": could not map interrupt\n");		return;	}	intrstr = pci_intr_string(psc->sc_pc, ih);	psc->sc_ih = pci_intr_establish(psc->sc_pc, ih, IPL_NET, ral_intr, sc,	    sc->sc_dev.dv_xname);	if (psc->sc_ih == NULL) {		printf(": could not establish interrupt");		if (intrstr != NULL)			printf(" at %s", intrstr);		printf("\n");		return;	}	printf(": %s\n", intrstr);	ral_attach(sc);}