Changeset 992b47ea in mainline for uspace/drv/bus/pci/pciintel/pci.c
- Timestamp:
- 2011-10-28T10:49:00Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- cb94e69b
- Parents:
- 1d53a78
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/pci/pciintel/pci.c
r1d53a78 r992b47ea 766 766 bool pci_alloc_resource_list(pci_fun_t *fun) 767 767 { 768 fun->hw_resources.resources = 769 (hw_resource_t *) malloc(PCI_MAX_HW_RES * sizeof(hw_resource_t)); 770 return fun->hw_resources.resources != NULL; 768 fun->hw_resources.resources = fun->resources; 769 return true; 771 770 } 772 771 773 772 void pci_clean_resource_list(pci_fun_t *fun) 774 773 { 775 if (fun->hw_resources.resources != NULL) { 776 free(fun->hw_resources.resources); 777 fun->hw_resources.resources = NULL; 778 } 774 fun->hw_resources.resources = NULL; 779 775 } 780 776
Note:
See TracChangeset
for help on using the changeset viewer.