From owner-svn-doc-head@FreeBSD.ORG Sun Jan 13 05:54:06 2013 Return-Path: Delivered-To: svn-doc-head@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id C059F6D1; Sun, 13 Jan 2013 05:54:06 +0000 (UTC) (envelope-from eadler@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id A2445850; Sun, 13 Jan 2013 05:54:06 +0000 (UTC) Received: from svn.freebsd.org (svn.FreeBSD.org [8.8.178.70]) by svn.freebsd.org (8.14.5/8.14.5) with ESMTP id r0D5s6Ok025659; Sun, 13 Jan 2013 05:54:06 GMT (envelope-from eadler@svn.freebsd.org) Received: (from eadler@localhost) by svn.freebsd.org (8.14.5/8.14.5/Submit) id r0D5s6OM025658; Sun, 13 Jan 2013 05:54:06 GMT (envelope-from eadler@svn.freebsd.org) Message-Id: <201301130554.r0D5s6OM025658@svn.freebsd.org> From: Eitan Adler Date: Sun, 13 Jan 2013 05:54:06 +0000 (UTC) To: doc-committers@freebsd.org, svn-doc-all@freebsd.org, svn-doc-head@freebsd.org Subject: svn commit: r40596 - head/en_US.ISO8859-1/books/faq X-SVN-Group: doc-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-doc-head@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the doc tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Jan 2013 05:54:06 -0000 Author: eadler Date: Sun Jan 13 05:54:06 2013 New Revision: 40596 URL: http://svnweb.freebsd.org/changeset/doc/40596 Log: Actually correct and still right, but PNP ISA cards aren't relevant anymore. Noted by: imp Approved by: bcr (mentor) Modified: head/en_US.ISO8859-1/books/faq/book.xml Modified: head/en_US.ISO8859-1/books/faq/book.xml ============================================================================== --- head/en_US.ISO8859-1/books/faq/book.xml Sun Jan 13 05:52:35 2013 (r40595) +++ head/en_US.ISO8859-1/books/faq/book.xml Sun Jan 13 05:54:06 2013 (r40596) @@ -2611,136 +2611,6 @@ bindkey ^[[3~ delete-char # for xterm

- - Why is my PnP card not found (or found as - unknown)? - - - - The reasons for this behavior are explained by the - following email, posted to the &a.questions; by &a.peter;, in - answer to a question about an internal modem that was no - longer found after an upgrade to - &os; 4.X (the comments in - [] have been added to clarify the - context). - - - The contents of this quotation has been updated from - its original text. - - -
- The PNP bios preconfigured it [the modem] and left it - laying around in port space, so [in - 3.X] the old-style ISA probes - found it there. - - Under 4.0, the ISA code is much more PnP-centric. It - was possible [in 3.X] for an ISA - probe to find a stray device and then for - the PNP device ID to match and then fail due to resource - conflicts. So, it disables the programmable cards first - so this double probing cannot happen. It also means that - it needs to know the PnP IDs for supported PnP hardware. - Making this more user tweakable is on the TODO - list. -
- - To get the device working again requires finding its PnP - ID and adding it to the list that the ISA probes use to - identify PnP devices. This is obtained using - &man.pnpinfo.8; to probe the device, for example this is the - output from &man.pnpinfo.8; for an internal modem: - - &prompt.root; pnpinfo -Checking for Plug-n-Play devices... - -Card assigned CSN #1 -Vendor ID PMC2430 (0x3024a341), Serial Number 0xffffffff -PnP Version 1.0, Vendor Version 0 -Device Description: Pace 56 Voice Internal Plug & Play Modem - -Logical Device ID: PMC2430 0x3024a341 #0 - Device supports I/O Range Check -TAG Start DF - I/O Range 0x3f8 .. 0x3f8, alignment 0x8, len 0x8 - [16-bit addr] - IRQ: 4 - only one type (true/edge) - - [more TAG lines elided] - - TAG End DF -End Tag - -Successfully got 31 resources, 1 logical fdevs --- card select # 0x0001 - -CSN PMC2430 (0x3024a341), Serial Number 0xffffffff - -Logical device #0 -IO: 0x03e8 0x03e8 0x03e8 0x03e8 0x03e8 0x03e8 0x03e8 0x03e8 -IRQ 5 0 -DMA 4 0 -IO range check 0x00 activate 0x01 - - The information you require is in the Vendor - ID line at the start of the output. The - hexadecimal number in parentheses - (0x3024a341 in this example) is the PnP - ID and the string immediately before this - (PMC2430) is a unique ASCII ID. - - Alternatively, if &man.pnpinfo.8; does not list the card - in question, &man.pciconf.8; can be used instead. This is - part of the output from pciconf -vl for - an onboard sound chip: - - &prompt.root; pciconf -vl -chip1@pci0:31:5: class=0x040100 card=0x00931028 chip=0x24158086 rev=0x02 hdr=0x00 - vendor = 'Intel Corporation' - device = '82801AA 8xx Chipset AC'97 Audio Controller' - class = multimedia - subclass = audio - - Here, you would use the chip value, - 0x24158086. - - This information (Vendor ID or - chip value) needs adding to the file - /usr/src/sys/dev/sio/sio_isa.c. - - You should first make a backup of - sio_isa.c just in case things go wrong. - You will also need it to make the patch to submit with your - PR (you are going to submit a PR, are you not?) then edit - sio_isa.c and search for the - line: - - static struct isa_pnp_id sio_ids[] = { - - Then scroll down to find the correct place to add the - entry for your device. The entries look like this, and are - sorted on the ASCII Vendor ID string which should be - included in the comment to the right of the line of code - along with all (if it will fit) or part of the - Device Description from the output of - &man.pnpinfo.8;: - - {0x0f804f3f, NULL}, /* OZO800f - Zoom 2812 (56k Modem) */ -{0x39804f3f, NULL}, /* OZO8039 - Zoom 56k flex */ -{0x3024a341, NULL}, /* PMC2430 - Pace 56 Voice Internal Modem */ -{0x1000eb49, NULL}, /* ROK0010 - Rockwell ? */ -{0x5002734a, NULL}, /* RSS0250 - 5614Jx3(G) Internal Modem */ - - Add the hexadecimal Vendor ID for your device in the - correct place, save the file, rebuild your kernel, and - reboot. Your device should now be found as an - sio device. -
-
- - Why do I get the error nlist failed when running, for example,