From owner-freebsd-usb@FreeBSD.ORG Wed Jun 1 10:41:22 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 BFFE9106566B; Wed, 1 Jun 2011 10:41:22 +0000 (UTC) (envelope-from lev@FreeBSD.org) Received: from onlyone.friendlyhosting.spb.ru (onlyone.friendlyhosting.spb.ru [IPv6:2a01:4f8:131:60a2::2]) by mx1.freebsd.org (Postfix) with ESMTP id 5BA3E8FC0C; Wed, 1 Jun 2011 10:41:22 +0000 (UTC) Received: from lion.home.serebryakov.spb.ru (unknown [IPv6:2001:470:923f:1:d929:8867:6867:1b37]) (Authenticated sender: lev@serebryakov.spb.ru) by onlyone.friendlyhosting.spb.ru (Postfix) with ESMTPA id 4326E4AC1C; Wed, 1 Jun 2011 14:41:20 +0400 (MSD) Date: Wed, 1 Jun 2011 14:41:17 +0400 From: Lev Serebryakov Organization: FreeBSD Project X-Priority: 3 (Normal) Message-ID: <388749638.20110601144117@serebryakov.spb.ru> To: Nick Hibma In-Reply-To: <10256681-CB7D-4330-8533-9D64949A4C47@van-laarhoven.org> References: <1618757683.20110601001251@serebryakov.spb.ru> <10256681-CB7D-4330-8533-9D64949A4C47@van-laarhoven.org> MIME-Version: 1.0 Content-Type: text/plain; charset=windows-1251 Content-Transfer-Encoding: quoted-printable Cc: lev@FreeBSD.org, 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 Reply-To: lev@FreeBSD.org List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Jun 2011 10:41:22 -0000 Hello, Nick. You wrote 1 =E8=FE=ED=FF 2011 =E3., 10:40:55: > ABI's change. You need to use __FreeBSD_version. See /usr/include/osrelda= te.h. Hm, I look at this: http://svnweb.freebsd.org/base?view=3Drevision&revision=3D221612 And I don't see any changes to "sys/sys/param.h" which contains "master" value for __FreeBSD_version, so I can not understand, how should I know proper value of __FreeBSD_version for this change. Also, http://svnweb.freebsd.org/base/stable/8/sys/sys/param.h doesn't show any commits related to USB serial code changes -- only KHook, KPI, TCP congestion control modularization, gcc, etc. I affraid, that there is no notes about this in `doc/en_US.ISO8859-1/books/porters-handbook/book.sgml' too, as it seems, that many people forgot to update it even after param.h update. > But could we include the driver in the kernel? That way it would be updat= ed when needed. Yes, of course :) I'll be very glad to see my driver in base system. Latest code (not adapted for new version yet, but it is trivial change, of course) is in `comms/umcs7840' port. License is FreeBSD-compatible (2-clause BSD + AS-IS), code is `clear', as it is written by me from scratches according to vendor datasheet, not adapted/ported from Linux or any other OS or source. It is prepared to build as module via our bsd.*.mk system, so it doesn't need to be ported from auto*-framework or any exotic make version. I've tried to make code style(9) compatible too, but I will not swear, that it 100% style(9)-proof :) --=20 // Black Lion AKA Lev Serebryakov