From nobody Wed Jun 26 15:25:38 2024 X-Original-To: freebsd-bluetooth@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4W8QWj1bLbz5Pjtk for ; Wed, 26 Jun 2024 15:25:53 +0000 (UTC) (envelope-from jonmaser8@gmail.com) Received: from mail-ej1-x631.google.com (mail-ej1-x631.google.com [IPv6:2a00:1450:4864:20::631]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4W8QWg6GMmz4npB for ; Wed, 26 Jun 2024 15:25:51 +0000 (UTC) (envelope-from jonmaser8@gmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20230601 header.b=WLwYOZOs; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of jonmaser8@gmail.com designates 2a00:1450:4864:20::631 as permitted sender) smtp.mailfrom=jonmaser8@gmail.com Received: by mail-ej1-x631.google.com with SMTP id a640c23a62f3a-a72510ebc3fso550366766b.2 for ; Wed, 26 Jun 2024 08:25:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1719415550; x=1720020350; darn=freebsd.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=70/T9d8Ccjdrz3xMEKaCqcrUjSjplev8J5cnlr7Fhdw=; b=WLwYOZOsvYDteGGnQK31Vkvi2s/WsEpWUThgY6n+JlfspvhadXqMP8fSqOY3YcA7Jb 6uKo/D3pznfjN3kBvMg7R6DzZZTPhnORfQfra5qv1zApQNLk0QGChnqQCjsQAGPPzeEi sauOiZU3mzFf81PEw7BDePzqNZu39v2GKpwK4zrRCxKPYckxqtc/XC6tku04NHV0iuGb kdq9d1WOEbm/f0I3Umho+Q4QgwXsa5NwdJ0vKs7acOFCH3/ErDhFMGEF8cwi4A++qK7I /tWX5+ygudTFSPTjlA1rT7fNytHshLK63sLTJCem0MFAPLuwP8RrwhiJYH5lwVqnNedU hL6g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719415550; x=1720020350; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=70/T9d8Ccjdrz3xMEKaCqcrUjSjplev8J5cnlr7Fhdw=; b=iSrTOH8eWKZcUXugJmzj3f4JehMsZ1xImPb9di61+Z52kW4CKhr/ikPpjGrjNgwz5z hW0X3pYv7lZS4HAcca08fkjyWC+obN8KXyhCE18/VoDnDUZnvxH9UE4KvKZC65hLfhTm YWMwNnu9WxYYRZd6dDZjluzh7EXYDUaG36yjx28FtvIU6S+je8o+o9CCX0ncNsFabyBx 2ualk6D+91qoPwBg3tC0M4T3S6l5nyxh5kP8jauaDF6BBVnIOejFoyfYY+O7wBgqqFkj rSiJUFqXqTibE3hC8yuNJV9M47JDWg6Uwl4M0DSEuqv2cWUeS1cYYawXBmyVohrfETDi w+1w== X-Gm-Message-State: AOJu0YxNUtb8mbvYRfhY1L+yQe93Kgm0SriPvsDs8UtwKiQvqW28eJOo 3vYcIVZ/4YHWzm7HrVU5hlDrJ3nrfujUvMIJLkE2jC2M8HVaqxIAeAeV2faBu9dJLk9Hl7gzCqa bK65mVK1fp3yAnZn62pg0PHQ4BJYerBM1 X-Google-Smtp-Source: AGHT+IEq+yrzXW7PqBwo2/8BwNsT68CC3ApaG/DSfNChKez+ZgpGXcAALQ8K6sSn81PAx8C2FkmRbuJfrx8FSet9f7w= X-Received: by 2002:a17:906:c1d0:b0:a6f:5922:54e7 with SMTP id a640c23a62f3a-a7242d29bfemr853789566b.65.1719415550128; Wed, 26 Jun 2024 08:25:50 -0700 (PDT) List-Id: Using Bluetooth in FreeBSD environments List-Archive: https://lists.freebsd.org/archives/freebsd-bluetooth List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bluetooth@FreeBSD.org MIME-Version: 1.0 From: Jon Maser Date: Wed, 26 Jun 2024 08:25:38 -0700 Message-ID: Subject: porting linux bt drivers/system to freebsd To: freebsd-bluetooth@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.95 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-0.999]; NEURAL_HAM_SHORT(-0.95)[-0.953]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20230601]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36:c]; MIME_GOOD(-0.10)[text/plain]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCVD_TLS_LAST(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; MIME_TRACE(0.00)[0:+]; ARC_NA(0.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; FREEMAIL_FROM(0.00)[gmail.com]; DKIM_TRACE(0.00)[gmail.com:+]; FROM_HAS_DN(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; PREVIOUSLY_DELIVERED(0.00)[freebsd-bluetooth@freebsd.org]; TO_DN_NONE(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; MISSING_XM_UA(0.00)[]; MID_RHS_MATCH_FROMTLD(0.00)[]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; MLMMJ_DEST(0.00)[freebsd-bluetooth@freebsd.org]; RCVD_COUNT_ONE(0.00)[1]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::631:from] X-Rspamd-Queue-Id: 4W8QWg6GMmz4npB im guessing it would be as trivial as rewriting the linux system calls to freebsd system calls and retaining the data required to communicate with bt devices if hacketry needed, we can run some sort of layer over the linux emulation layer which allows the linux drivers to be emulated on freebsd, not sure if linuxulator does drivers though or we can just have a module with linux emulator bits thats just for the bt stack