From ec6d8361cd31c122ae03a68cbaf608e8095df751 Mon Sep 17 00:00:00 2001 From: Hartmut Brandt Date: Fri, 25 Jul 2003 12:40:03 +0000 Subject: [PATCH] When deciding whether to download the microcode or not look at the API rather than at the vendor. We have three different Fore cards and only the PCA200 need the microcode. Look also at the RAM address and load the code only if it is not zero. A zero RAM address means either a bug in the driver or this is a interface created by harp(4) in which case fatm(4) handles the microcode issue. --- sbin/atm/fore_dnld/fore_dnld.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sbin/atm/fore_dnld/fore_dnld.c b/sbin/atm/fore_dnld/fore_dnld.c index 22ce59ee261..aefb304b3b3 100644 --- a/sbin/atm/fore_dnld/fore_dnld.c +++ b/sbin/atm/fore_dnld/fore_dnld.c @@ -1036,7 +1036,7 @@ char *argv[]; */ air = (struct air_cfg_rsp *)buf; - if (air->acp_vendor == VENDOR_FORE ) + if (air->acp_vendapi == VENDAPI_FORE_1 && air->acp_ram != 0) { /* * Create /dev name