From owner-freebsd-usb@FreeBSD.ORG Wed Jun 1 06:53:12 2011 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2D7F8106566B; Wed, 1 Jun 2011 06:53:12 +0000 (UTC) (envelope-from nick@van-laarhoven.org) Received: from cpsmtpb-ews02.kpnxchange.com (cpsmtpb-ews02.kpnxchange.com [213.75.39.5]) by mx1.freebsd.org (Postfix) with ESMTP id A8E298FC13; Wed, 1 Jun 2011 06:53:11 +0000 (UTC) Received: from cpbrm-ews17.kpnxchange.com ([10.94.84.148]) by cpsmtpb-ews02.kpnxchange.com with Microsoft SMTPSVC(6.0.3790.4675); Wed, 1 Jun 2011 08:41:00 +0200 Received: from CPSMTPM-CMT102.kpnxchange.com ([195.121.3.18]) by cpbrm-ews17.kpnxchange.com with Microsoft SMTPSVC(6.0.3790.4675); Wed, 1 Jun 2011 08:41:00 +0200 Received: from uitsmijter.van-laarhoven.org ([81.207.207.222]) by CPSMTPM-CMT102.kpnxchange.com with Microsoft SMTPSVC(7.0.6002.18264); Wed, 1 Jun 2011 08:40:59 +0200 Received: from [10.87.50.88] (unknown [80.187.193.111]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by uitsmijter.van-laarhoven.org (Postfix) with ESMTPSA id 19D824273; Wed, 1 Jun 2011 08:40:58 +0200 (CEST) Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii From: Nick Hibma In-Reply-To: <1618757683.20110601001251@serebryakov.spb.ru> Date: Wed, 1 Jun 2011 08:40:55 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: <10256681-CB7D-4330-8533-9D64949A4C47@van-laarhoven.org> References: <1618757683.20110601001251@serebryakov.spb.ru> To: lev@FreeBSD.org X-Mailer: Apple Mail (2.1084) X-OriginalArrivalTime: 01 Jun 2011 06:40:59.0914 (UTC) FILETIME=[DE6886A0:01CC2026] X-RcptDomain: freebsd.org Cc: n_hibma@FreeBSD.org, freebsd-usb@freebsd.org Subject: Re: Changes to usb/serial: how to distinguish between old and new interfaces in 8-STABLE and 9-CURRENT branches? X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Jun 2011 06:53:12 -0000 Lev, ABI's change. You need to use __FreeBSD_version. See = /usr/include/osreldate.h. But could we include the driver in the kernel? That way it would be = updated when needed. Nick Hibma nick@van-laarhoven.org Want to feel like going on a holiday tomorrow? Try GTD. On 31 May 2011, at 22:12, Lev Serebryakov wrote: > Hello, Freebsd-usb. >=20 > I'm author of `comms/umcs7840' port, which is module for usbcom, > like `uftdi' and `uplcom' in base system. >=20 > Last changes, committed to 8-STABLE (and, earlier to HEAD), breaks > some API/ABI for such modules. >=20 > I have tow questions: >=20 > (1) How could I detect which version have user at compile time? I > don't use any autoconf/automake framework, my build framework is baed > on FreeBSD-native bsd.*.mk framework, so I need some define or > something like this to distinguish these versions. I could not find > anything suitable in revision 221612 commit. >=20 > (2) WHY, OR WHY old module was loaded without problems?! ABI is > broken (ucom_detach()? size of struct ucom_softc) and old module > should complain on load, IMHO! Users will be very surprised when > computer will reboot after system update! >=20 > --=20 > // Black Lion AKA Lev Serebryakov >=20