From owner-freebsd-hackers@freebsd.org Tue Jun 5 20:17:59 2018 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 156B3FF4D6E for ; Tue, 5 Jun 2018 20:17:59 +0000 (UTC) (envelope-from lakhanshiva@gmail.com) Received: from mail-oi0-x242.google.com (mail-oi0-x242.google.com [IPv6:2607:f8b0:4003:c06::242]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 89BBC70048; Tue, 5 Jun 2018 20:17:58 +0000 (UTC) (envelope-from lakhanshiva@gmail.com) Received: by mail-oi0-x242.google.com with SMTP id b130-v6so3290827oif.12; Tue, 05 Jun 2018 13:17:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=3LKSpuIzTvG29EU53hVIgCb2M3q4viZd0bCS4cLmfaY=; b=RMiHISsm348uY7fciWy+g/pvKxsf9gvKXwoZP1KU1hF9x3KOSttxLKpU/HjOgcRvwr +5o2JmjBWJdS2Jnpqv3QO8GmQm7ZFONGmcNWdsVMLbbh1elVxJdO9UHWkmartRk0XZfU Lh6bZeEWV3pD0eUWXnSDT/ch2PcmDSFCCe7FHm2VpyHaJZnlF8XJGmSHg0ev1GmGiDHj a0OGf/TtyRnGBYxAS2LM/JWpNakERkwKJYt0ShotlAvFYha4XMLlzKi2pa0sBaxquQCW ce33NBXpCYvxNlIYNIGdu/k8PKCBS/xLm7GtACyiuGvXgbZKhPa+CenTFCLDoFUSIYUQ w/qA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=3LKSpuIzTvG29EU53hVIgCb2M3q4viZd0bCS4cLmfaY=; b=I4NvoUuLqJtR+lMD0cNehPCu33NptfxyR0eKTk5gFVTOVIL+aCcl0ulmFX+V8/HbKO /o0NfFDwrAXDY9CXhOQKuVSc2BF8n8+4FObf+kHGObt13sYUDF2Nvx7L1XwqNtk8j5g5 60sJF/Bwe7eiDDywpwCZmTFUO604KhHckt8Ed6ffjMB/4pmVuLjXjvXGMkn13KJz9AUy W4iEw4WNFrMjv4hp6xv/BaBKQephzaf4zP1q/VMbqAXg+XrdJW08Fqf+4paRZXkPcRHf 2sLEf5z5fwfxvAmy8EQKaqB2aaazYrRQ33/rTp7ZYz6G60fJ1sTfnNV5wYNyBXwipBIm 67KQ== X-Gm-Message-State: APt69E0LZJYoYWOBLS+VJcRMZBNwWidpN57BtD/nZIwMQ5eFsiMRGQ0m fRwIrvFHK+JNO7QubEFU8/xYniWwSvPaZXUmJSEKcg== X-Google-Smtp-Source: ADUXVKKuemLKls3GdFRMh68VE1i39p9ALr91nI83v5ylxpW4d1XtMzCCxSJ4Bp3IqA5mZrp/Q2LzN2g58nam5rakGu4= X-Received: by 2002:aca:cf84:: with SMTP id f126-v6mr64659oig.131.1528229877826; Tue, 05 Jun 2018 13:17:57 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a9d:4a35:0:0:0:0:0 with HTTP; Tue, 5 Jun 2018 13:17:56 -0700 (PDT) Received: by 2002:a9d:4a35:0:0:0:0:0 with HTTP; Tue, 5 Jun 2018 13:17:56 -0700 (PDT) In-Reply-To: <32229.1528222775@critter.freebsd.dk> References: <32229.1528222775@critter.freebsd.dk> From: Lakhan Shiva Date: Wed, 6 Jun 2018 01:47:56 +0530 Message-ID: Subject: Re: cy PCI driver - possible device id's To: Poul-Henning Kamp Cc: chuck@freebsd.org, freebsd-hackers@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.26 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Jun 2018 20:17:59 -0000 At present we have devmatch infrastructure, which looks at all unattached devices on the system and compares their plug and play data to that which has been recorded by kldxref in linker hints and suggests modules to load. Now, this work is to support this project achieve this in the case of PCI drivers. Ref: https://wiki.freebsd.org/AutoLoad Thanks, Lakhan On Jun 5, 2018 11:49 PM, "Poul-Henning Kamp" wrote: -------- In message , Lakhan Shiva writes: >I am working on converting PCI drivers attachments to be table driven. Can we please invent some kind of "typographic" convention which allows these tables to be extracted from the kernel source code, so that we can have an utility which suggests which drivers to load, by consulting such an extracted table ? -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence.