Changeset 992b47ea in mainline
- 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
- Location:
- uspace/drv/bus/pci/pciintel
- Files:
-
- 2 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 -
uspace/drv/bus/pci/pciintel/pci.h
r1d53a78 r992b47ea 65 65 uint8_t revision; 66 66 hw_resource_list_t hw_resources; 67 hw_resource_t resources[PCI_MAX_HW_RES]; 67 68 } pci_fun_t; 68 69
Note:
See TracChangeset
for help on using the changeset viewer.