.. | .. |
---|
35 | 35 | void *devfdt_get_addr_ptr(struct udevice *dev); |
---|
36 | 36 | |
---|
37 | 37 | /** |
---|
| 38 | + * devfdt_remap_addr_index() - Return indexed pointer to the memory-mapped |
---|
| 39 | + * I/O address of the reg property of a device |
---|
| 40 | + * @index: the 'reg' property can hold a list of <addr, size> pairs |
---|
| 41 | + * and @index is used to select which one is required |
---|
| 42 | + * |
---|
| 43 | + * @dev: Pointer to a device |
---|
| 44 | + * |
---|
| 45 | + * Return: Pointer to addr, or NULL if there is no such property |
---|
| 46 | + */ |
---|
| 47 | +void *devfdt_remap_addr_index(struct udevice *dev, int index); |
---|
| 48 | + |
---|
| 49 | +/** |
---|
38 | 50 | * devfdt_map_physmem() - Read device address from reg property of the |
---|
39 | 51 | * device node and map the address into CPU address |
---|
40 | 52 | * space. |
---|