qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 0/4] Redesign of pciinit.c (take 3)
@ 2012-03-28  4:25 Alexey Korolev
  2012-03-28  4:28 ` [Qemu-devel] [PATCH 1/4] Add basic linked list operations Alexey Korolev
                   ` (3 more replies)
  0 siblings, 4 replies; 13+ messages in thread
From: Alexey Korolev @ 2012-03-28  4:25 UTC (permalink / raw)
  To: kevin, seabios; +Cc: sfd, qemu-devel

Hi,

This patch series redesigns the existing pciinit.c code and introduces
linked list operations.
Changes are more about structures definitions rather than functionality.
There are no more arrays of bases and counts in new implementation. The
new implementation is based on dynamic allocation of pci_region_entry
structures. 
Each pci_region_entry structure could be a PCI bar or a downstream PCI
region (bridge). Each entry has a set of attributes: type (IO, MEM,
PREFMEM), is64bit, size, base address, PCI device owner, and a
pointer to the pci_bus it belongs to.

1. Introduce List operations
2. Add pci_region_entry and linked lists operations in place while still
using the array system to do the allocations. 
3. Switch to lists operations
4. Get rid of size element from bus->r structure, now we use entry->size
   for the same purpose


 src/pci.h     |    5 -
 src/pciinit.c |  258 ++++++++++++++++++++++++++-------------------------------
 src/util.h    |   21 +++++
 3 files changed, 137 insertions(+), 147 deletions(-)

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

end of thread, other threads:[~2012-04-04  3:31 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-28  4:25 [Qemu-devel] [PATCH 0/4] Redesign of pciinit.c (take 3) Alexey Korolev
2012-03-28  4:28 ` [Qemu-devel] [PATCH 1/4] Add basic linked list operations Alexey Korolev
2012-03-28 14:39   ` [Qemu-devel] [SeaBIOS] " Gerd Hoffmann
2012-03-29  2:03     ` Alexey Korolev
2012-03-29  2:27     ` Kevin O'Connor
2012-03-29 10:41       ` Ian Campbell
2012-03-28  4:41 ` [Qemu-devel] [PATCH 2/4] Added a pci_region_entry structure Alexey Korolev
2012-03-28  4:54 ` [Qemu-devel] [PATCH 3/4] Switch from array based resource allocation to list Alexey Korolev
2012-04-01  7:28   ` Kevin O'Connor
2012-04-01  8:44     ` Kevin O'Connor
2012-04-03  6:39       ` Alexey Korolev
2012-04-04  3:31         ` Kevin O'Connor
2012-03-28  4:56 ` [Qemu-devel] [PATCH 4/4] Get rid of size element of pci_bus->r structure Alexey Korolev

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).