Changeset a35b458 in mainline for kernel/genarch/src/ofw/pci.c
- Timestamp:
- 2018-03-02T20:10:49Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f1380b7
- Parents:
- 3061bc1
- git-author:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-02-28 17:38:31)
- git-committer:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-03-02 20:10:49)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/genarch/src/ofw/pci.c
r3061bc1 ra35b458 63 63 return false; 64 64 } 65 65 66 66 ranges = prop->size / sizeof(ofw_pci_range_t); 67 67 range = prop->value; 68 68 69 69 unsigned int i; 70 70 71 71 for (i = 0; i < ranges; i++) { 72 72 if ((reg->space & PCI_SPACE_MASK) != … … 95 95 return true; 96 96 } 97 97 98 98 ofw_tree_property_t *prop; 99 99 ofw_pci_reg_t *assigned_address; 100 100 size_t assigned_addresses; 101 101 102 102 prop = ofw_tree_getprop(node, "assigned-addresses"); 103 103 if (!prop) 104 104 panic("Cannot find 'assigned-addresses' property."); 105 105 106 106 assigned_addresses = prop->size / sizeof(ofw_pci_reg_t); 107 107 assigned_address = prop->value; 108 108 109 109 unsigned int i; 110 110 111 111 for (i = 0; i < assigned_addresses; i++) { 112 112 if ((assigned_address[i].space & PCI_REG_MASK) == … … 118 118 } 119 119 } 120 120 121 121 return false; 122 122 }
Note:
See TracChangeset
for help on using the changeset viewer.