Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 7 Oct 2000 09:23:22 +0200 (CEST)
From:      hm@kts.org (Hellmuth Michaelis)
To:        email@iainweir.co.uk (Iain M Weir)
Cc:        freebsd-isdn@FreeBSD.ORG
Subject:   Re: Asuscom p-in-100-st-d
Message-ID:  <20001007072322.E17769B20@bert.kts.org>
In-Reply-To: <t5fstsck13b1ts2dohr4bdhscml2na736p@4ax.com> from Iain M Weir at "Oct 6, 2000 10:20:43 pm"

next in thread | previous in thread | raw e-mail | index | archive | help
Iain M Weir wrote:

> I am having trouble getting this card recognised.
> Using FreeBSD 4.1-R with i4b-00.95.00.
> 
> At boot I get:
> Oct  6 22:42:44 zev /kernel: pci0: <unknown card> (vendor=0x0675,
> dev=0x1702) at 9.0 irq 12
> 
> From my kernel config:
> 
> device		iwic0

Are you shure this is a Winbond-chip based card ? If yes, the probe
has a bug in 0.95 - try this one please:

/*---------------------------------------------------------------------------*
 *	iwic PCI probe
 *---------------------------------------------------------------------------*/
static int
iwic_pci_probe(device_t dev)
{
	u_int32_t type = pci_get_devid(dev);
	u_int32_t sv = pci_get_subvendor(dev);
	u_int32_t sd = pci_get_subdevice(dev);
	
	struct winids *wip = win_ids;

	while(wip->type)
	{
		if(wip->type == type)
		{
			if(((wip->sv == -1) && (wip->sd == -1)) ||
			   ((wip->sv == sv) && (wip->sd == sd)))
				break;
		}
		++wip;
	}

	if(wip->desc)
	{
		if(bootverbose)
		{
			printf("iwic_pci_probe: vendor = 0x%x, device = 0x%x\n", pci_get_vendor(dev), pci_get_device(dev));
			printf("iwic_pci_probe: subvendor = 0x%x, subdevice = 0x%x\n", sv, sd);
		}
		device_set_desc(dev, wip->desc);
		return(0);
	}
	else
	{
		return(ENXIO);
	}
}

hellmuth
-- 
Hellmuth Michaelis                hm@kts.org                   Hamburg, Europe
 We all live in a yellow subroutine, yellow subroutine, yellow subroutine ...



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-isdn" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20001007072322.E17769B20>