From owner-cvs-all@FreeBSD.ORG Fri Jan 6 21:29:53 2006 Return-Path: X-Original-To: cvs-all@FreeBSD.org Delivered-To: cvs-all@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 074D416A41F; Fri, 6 Jan 2006 21:29:53 +0000 (GMT) (envelope-from jhb@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id C804443D45; Fri, 6 Jan 2006 21:29:52 +0000 (GMT) (envelope-from jhb@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id k06LTq85051789; Fri, 6 Jan 2006 21:29:52 GMT (envelope-from jhb@repoman.freebsd.org) Received: (from jhb@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id k06LTqIK051788; Fri, 6 Jan 2006 21:29:52 GMT (envelope-from jhb) Message-Id: <200601062129.k06LTqIK051788@repoman.freebsd.org> From: John Baldwin Date: Fri, 6 Jan 2006 21:29:52 +0000 (UTC) To: doc-committers@FreeBSD.org, cvs-doc@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: doc/en_US.ISO8859-1/books/arch-handbook/pci chapter.sgml X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Jan 2006 21:29:53 -0000 jhb 2006-01-06 21:29:52 UTC FreeBSD doc repository Modified files: en_US.ISO8859-1/books/arch-handbook/pci chapter.sgml Log: Various and sundry cleanups to the sample PCI driver: - Split the first section into sub-sections instead of just paragraphs. - Include a makefile for a kernel module for the sample driver and explain how to use 'make', 'make load', and 'make unload'. - Use 'struct cdev *' rather than 'dev_t'. - Add missing d_version to cdevsw. - Explain how to use si_drv1 in struct cdev to get from a cdev back to the softc. - Add a softc and move the cdev pointer into the softc. Given the cdev a unique name and minor number for each device. - Use better comments in several places. - Actually call device_set_desc() in probe, and use BUS_PROBE_DEFAULT rather than 0. - Add missing call to destroy_dev() in detach. - Use DEFINE_CLASS_0. PR: docs/90830 Submitted by: Marius Nuennerich marius dot nuennerich at gmx dot net Revision Changes Path 1.23 +102 -52 doc/en_US.ISO8859-1/books/arch-handbook/pci/chapter.sgml