linux-pci.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* One chart on pci bridge and its bus and their children
@ 2012-06-05  3:26 Richard Yang
  2012-06-05  4:11 ` Ram Pai
  0 siblings, 1 reply; 19+ messages in thread
From: Richard Yang @ 2012-06-05  3:26 UTC (permalink / raw)
  To: linux-pci; +Cc: Ram Pai, Gavin Shan


All, 

I draw a chart on the relationship of bridge/bus/devics.

I am not sure it is exact, so please correct me if it is not correct.

BTW, the pci_bus->self, pci_bus->bridge seem to point the same thing.
So this is really necessary to do this?

                            Bus 0(pci_bus)                      
                            +--------------------+<----+
                            |                    |     |
                            +--------------------+     |
                                                       |
                                                       |
                             Bridge(pci_dev)           |                     
                            +--------------------+<----|---+--------------+
                            |subordinate(pci_bus)|-+   |   |              |
                            +--------------------+ |   |   |              |
                                                   |   |   |              |
                                                   |   |   |              |
                                                   |   |   |              |
                            Bus 1(pci_bus)         |   |   |              |
                       +--->+-------------------+<-+   |   |              |
                       |    |parent(pci_bus)    |------+   |              |
                       |    +-------------------+          |              |
                       |    |self(pci_dev)      |----------+              |
                       |    |bridge(device)     |                         |
                       |    +-------------------+                         |
                       |    |devices(list_head) |                         |
                       |    +--------+----------+                         |
                       |             |                                    |
                       |      ----+--+---+----                            |
   pci_dev             |          |      |          pci_dev               |
   +---------------+<--|----------+      +--------->+-----------------+   |
   |bus(pci_bus)   |---+                            |bus(pci_bus)     |   |
   +---------------+                                +-----------------+   |
   |dev.parent     |                                |dev.parent       |---+
   +---------------+                                +-----------------+
-- 
Richard Yang
Help you, Help me


^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2012-06-06  7:58 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-05  3:26 One chart on pci bridge and its bus and their children Richard Yang
2012-06-05  4:11 ` Ram Pai
2012-06-05  4:37   ` Bjorn Helgaas
2012-06-05  5:18     ` Yinghai Lu
2012-06-05  5:20       ` Yinghai Lu
2012-06-05  5:41         ` Richard Yang
2012-06-05  6:35         ` Ram Pai
2012-06-05 14:41           ` Jiang Liu
2012-06-05 16:40             ` Ram Pai
2012-06-06  1:58               ` Ram Pai
2012-06-05 19:38           ` Yinghai Lu
2012-06-06  5:28             ` Richard Yang
2012-06-06  7:58               ` Richard Yang
2012-06-05 21:52         ` Gavin Shan
2012-06-05  6:02       ` Richard Yang
2012-06-05 14:32         ` Jiang Liu
2012-06-05 14:37         ` Jiang Liu
2012-06-05 19:41         ` Yinghai Lu
2012-06-05  5:33   ` Richard Yang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).