From owner-freebsd-bluetooth@FreeBSD.ORG Wed Feb 4 18:00:20 2009 Return-Path: Delivered-To: freebsd-bluetooth@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3C488106566B for ; Wed, 4 Feb 2009 18:00:20 +0000 (UTC) (envelope-from maksim.yevmenkin@gmail.com) Received: from yw-out-2324.google.com (yw-out-2324.google.com [74.125.46.30]) by mx1.freebsd.org (Postfix) with ESMTP id E65898FC16 for ; Wed, 4 Feb 2009 18:00:19 +0000 (UTC) (envelope-from maksim.yevmenkin@gmail.com) Received: by yw-out-2324.google.com with SMTP id 9so1064993ywe.13 for ; Wed, 04 Feb 2009 10:00:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=zlI95izaS96pWtYVRWYFt+kwehq9RlKA/nwUO3WDLuA=; b=HRA+YYirPf983xZwSk/DpkvwGWMchPJdXTYScxuocDo9DtQDQVzEg/ejL+RL8OVmIr 9lqOagRlaS/K/7ByqH2dihR+/Xsdvee3brt7MgbZv2rnpEFV78fepSIHAQV900L5w4XZ NQYn4BgA7KkEMfljnaQ68Z2xSkMmBuPlCMx4Y= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=VjeFXms8sZYLOMlrMPhYny9u5I5mXlpxyhzczQVdZH9yDatKaKIS805TCe22JJqYcr /d3bsv6S2HYz9xgzCnlrTSXu8vo5i0tSPenW84MvYoV2d9Y8++zfC7QjT8J7vk5Ef2jx AUvGR7U6Ycv8majenTZ7+hXSkoOWNzRSY6vQM= MIME-Version: 1.0 Received: by 10.231.14.141 with SMTP id g13mr924699iba.38.1233770418879; Wed, 04 Feb 2009 10:00:18 -0800 (PST) In-Reply-To: <1233758519.360141.162.nullmailer@galant.ukfsn.org> References: <1233365217.00068654.1233354838@10.7.7.3> <4988DCCC.80201@mavhome.dp.ua> <4988EBAC.3080202@mavhome.dp.ua> <1233758519.360141.162.nullmailer@galant.ukfsn.org> Date: Wed, 4 Feb 2009 10:00:18 -0800 Message-ID: From: Maksim Yevmenkin To: Iain Hibbert Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: "freebsd-bluetooth@freebsd.org" Subject: Re: libhci (was Re: pan profile support in freebsd) X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Feb 2009 18:00:20 -0000 On Wed, Feb 4, 2009 at 6:41 AM, Iain Hibbert wrote: > On Tue, 3 Feb 2009, Maksim Yevmenkin wrote: > >> i have plan to implement libhci (a-la linux bluez etc.) shim >> eventually :) if someone feels like beating me to it, i would >> certainly not object to it :) > > what api would you envisage? i was thinking about doing most of the http://git.kernel.org/?p=bluetooth/bluez.git;a=blob_plain;f=lib/hci.c;hb=1fa3750cb917358a6fb6bc718429c9000dd61ab3 starting from int hci_inquiry(...) and all the way down to the end of the file :) basically map dev_id to unit numbers, i.e. dev_id 0 is "ubt0" node, etc. i'm a bit concerned that if we follow linux too closely someone might throw a hissy fit about bsd stealing linux's code and not using gpl :) so we have to tread lightly here, imo :) and, btw, i do not think i'm going to create a separate libhci for this. existing libbluetooth is perfectly fine. thanks, max