Re: [PATCH] Simple tidy up of puc(4) bus driver

From: Boris Samorodov <bsam_at_ipt.ru>
Date: Tue, 14 Jun 2011 20:56:31 +0400
On Fri, 10 Jun 2011 15:11:02 -0400 John Baldwin wrote:

> On Monday, May 23, 2011 10:39:02 am John Baldwin wrote:
> > This small patch makes the puc(4) bus drivers a little more friendly.  It 
> > should now list the port for each child device in the boot messages, and 
> > devinfo -v should list the type and port of each child device in its output as 
> > well:

> Can I get a volunteer to test these changes?

Seems to be OK:
-----
% uname -a
FreeBSD bb.ipt.ru 9.0-CURRENT FreeBSD 9.0-CURRENT #3 r223003M: Tue Jun 14 20:37:38 MSD 2011     root_at_bb.ipt.ru:/usr/obj/usr/src/sys/BB  i386
-----

Messages and devinfo from the patched kernel:
-----
puc0: <Oxford Semiconductor OX16PCI958 UARTs> port 0xec00-0xec7f,0xe880-0xe8bf,0xe800-0xe80f mem 0xfebffc00-0xfebffc7f,0xfebff800-0xfebff83f,0xfebff400-0xfebff40f irq 16 at device 0.0 on pci5
uart2: <16550 or compatible> at port 1 on puc0
uart3: <16550 or compatible> at port 2 on puc0
uart4: <16550 or compatible> at port 3 on puc0
uart5: <16550 or compatible> at port 4 on puc0
uart6: <16550 or compatible> at port 5 on puc0
uart7: <16550 or compatible> at port 6 on puc0
uart8: <16550 or compatible> at port 7 on puc0
uart9: <16550 or compatible> at port 8 on puc0
---
          pci5
            puc0 pnpinfo vendor=0x1415 device=0x9538 subvendor=0x1415 subdevice=0x0671 class=0x070200 at slot=0 function=0
              uart2 pnpinfo type=1 at port=1
              uart3 pnpinfo type=1 at port=2
              uart4 pnpinfo type=1 at port=3
              uart5 pnpinfo type=1 at port=4
              uart6 pnpinfo type=1 at port=5
              uart7 pnpinfo type=1 at port=6
              uart8 pnpinfo type=1 at port=7
              uart9 pnpinfo type=1 at port=8
-----

-- 
WBR, Boris Samorodov (bsam)
Research Engineer, http://www.ipt.ru Telephone & Internet SP
FreeBSD Committer, http://www.FreeBSD.org The Power To Serve
Received on Tue Jun 14 2011 - 15:29:16 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:14 UTC