Restructure the code
commitf6fe3c48adee8bafb30f1f23c47413e6c3b62ea3
authorDizzyOfCRN <DizzyOfCRN@fb15a70f-31f2-0310-bbcc-cdcc74a49acc>
Sun, 10 Aug 2014 16:38:28 +0000 (10 16:38 +0000)
committerDizzyOfCRN <DizzyOfCRN@fb15a70f-31f2-0310-bbcc-cdcc74a49acc>
Sun, 10 Aug 2014 16:38:28 +0000 (10 16:38 +0000)
tree1c0b81ce7b49e380379b070fdcec9acb923eca68
parentb49baf9914f2c6b1f6afb40e8b0a0485fc2dc4f2
Restructure the code
Removed redundant unit count. Open checks the list for valid unit.
Enumerator tries to obtain the pci device before any use and then checks if the device has a valid intline before adding it to the list. This makes the rest of the code much cleaner in PCIXHCI_Discover() function as no list parsing needs to be done.
Init and Expunge allocate/deallocate resources for pci usage.

git-svn-id: https://svn.aros.org/svn/aros/trunk/AROS@49297 fb15a70f-31f2-0310-bbcc-cdcc74a49acc
rom/usb/pciusbhc/xhci/pcixhci_device.c
rom/usb/pciusbhc/xhci/pcixhci_discover.c
rom/usb/pciusbhc/xhci/pcixhci_intern.h