From owner-freebsd-hackers@freebsd.org Tue Jun 5 21:00: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 89E82FF68E5 for ; Tue, 5 Jun 2018 21:00:59 +0000 (UTC) (envelope-from cse.cem@gmail.com) Received: from mail-it0-f46.google.com (mail-it0-f46.google.com [209.85.214.46]) (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 F2F4F724D2 for ; Tue, 5 Jun 2018 21:00:58 +0000 (UTC) (envelope-from cse.cem@gmail.com) Received: by mail-it0-f46.google.com with SMTP id 76-v6so5287091itx.4 for ; Tue, 05 Jun 2018 14:00:58 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:reply-to:in-reply-to:references :from:date:message-id:subject:to:cc:content-transfer-encoding; bh=MG4sdivGUL0FICdHi3XRyCvvTP6qHGQKSq3r25RE70A=; b=VHqNx1bGgP1np14/5IoOXf1+NdE+HnC+gYkvumoh/OkRkbRghwZUcvtNvYWpGSt4yM eEafJkgm9uNvxjWTNCUeG1alA7yaTRCvvTs+5gN3RtBtrs8O0n95m1CrJAqJkxLcOl4z PCRJU9Uw7xvGWQlmsnL9LftEaQEo/sDxkct5H/6CNSCJFnM1TZzAVxix4PbxtC0zEaWT UkBL9E/QEQK9pBduQ3getuAZHTYY35Sx1l9dhk8WGGsB6cXiCVWR0fQIWJ98IHLo85Yg GRElY3IDwBIt0dYEJ8ROzeNRqeGpFKIidNMqIikTQqBV9glnvkNABLxeL5PFOfJQqrgn kdeA== X-Gm-Message-State: APt69E2J87SxHV6fKY2ZoQiJn4X8XeYSLfiNuDgIsq9ZyxLEVsJqcYRN nUyJFHj0eB9HHA5nXiJ24r+pRyE8 X-Google-Smtp-Source: ADUXVKKEMJJhV+HwIbix3kDMyZb+tmI3XAq3rtpJrnPEgqByddyaz9Y2JFXfPH7vx5uOfSWDWTkarA== X-Received: by 2002:a24:3a0a:: with SMTP id m10-v6mr828119itm.45.1528230863816; Tue, 05 Jun 2018 13:34:23 -0700 (PDT) Received: from mail-it0-f52.google.com (mail-it0-f52.google.com. [209.85.214.52]) by smtp.gmail.com with ESMTPSA id k130-v6sm1090801itb.0.2018.06.05.13.34.23 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 05 Jun 2018 13:34:23 -0700 (PDT) Received: by mail-it0-f52.google.com with SMTP id 144-v6so5158501iti.5 for ; Tue, 05 Jun 2018 13:34:23 -0700 (PDT) X-Received: by 2002:a24:5594:: with SMTP id e142-v6mr816192itb.46.1528230863327; Tue, 05 Jun 2018 13:34:23 -0700 (PDT) MIME-Version: 1.0 Reply-To: cem@freebsd.org Received: by 2002:a02:5995:0:0:0:0:0 with HTTP; Tue, 5 Jun 2018 13:34:22 -0700 (PDT) In-Reply-To: <32229.1528222775@critter.freebsd.dk> References: <32229.1528222775@critter.freebsd.dk> From: Conrad Meyer Date: Tue, 5 Jun 2018 13:34:22 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: cy PCI driver - possible device id's To: Poul-Henning Kamp Cc: "freebsd-hackers@freebsd.org" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 21:00:59 -0000 We already have exactly this =E2=80=94 a precise convention ("MODULE_PNP_INFO") and tool ("kldxref" for extracting the data, and "devmatch" for suggesting matches), initiated by Warner. This work has been ongoing, in stops and starts, for years. Lakhan is converting non-compliant drivers to the convention. Conrad On Tue, Jun 5, 2018 at 11:19 AM, Poul-Henning Kamp wro= te: > -------- > 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 incompetenc= e. > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org= "