Louis Mayencourt | b546900 | 2019-07-15 13:56:03 +0100 | [diff] [blame] | 1 | @startuml |
| 2 | |
Sandrine Bailleux | 03b274c | 2019-10-28 14:02:51 +0100 | [diff] [blame] | 3 | participant arm_io_storage |
| 4 | participant io_storage |
| 5 | participant io_fip |
| 6 | participant io_memmap |
Louis Mayencourt | b546900 | 2019-07-15 13:56:03 +0100 | [diff] [blame] | 7 | |
| 8 | -> arm_io_storage : arm_io_setup() |
| 9 | |
| 10 | group io dev registration |
| 11 | |
| 12 | arm_io_storage -> io_fip : register_io_dev_fip(&fip_dev_con) |
| 13 | io_fip -> io_storage : io_register_device(&dev_info_pool[]) |
| 14 | note over io_storage |
| 15 | devices[dev_count] = (fip_)dev_info_pool |
| 16 | dev_count++ |
| 17 | end note |
| 18 | |
| 19 | arm_io_storage -> io_memmap : register_io_dev_memmap(&memmap_dev_con) |
| 20 | io_memmap -> io_storage : io_register_device(&memmap_dev_info) |
| 21 | note over io_storage |
| 22 | devices[dev_count] = memmap_dev_info |
| 23 | dev_count++ |
| 24 | end note |
| 25 | |
| 26 | arm_io_storage -> io_storage : io_dev_open(fip_dev_con, NULL, fip_dev_handle) |
| 27 | io_storage -> io_storage : dev_open(dev_con, dev_spec, handle) |
| 28 | activate io_storage |
| 29 | opt dev_open() on fip device |
| 30 | io_storage -> io_fip : fip_dev_open(dev_spec, dev_info) |
| 31 | note over io_fip |
| 32 | dev_info = one of the |
| 33 | "fip_dev_info" from |
| 34 | dev_info_pool[] |
| 35 | end note |
| 36 | end opt |
| 37 | deactivate io_storage |
| 38 | |
| 39 | |
| 40 | arm_io_storage -> io_storage : io_dev_open(memmap_dev_con, NULL, memmap_dev_handle) |
| 41 | io_storage -> io_storage : dev_open(dev_con, dev_spec, handle) |
| 42 | activate io_storage |
| 43 | opt dev_open() on memmap device |
| 44 | io_storage -> io_memmap : memmap_dev_open(dev_spec, dev_info) |
| 45 | note over io_memmap |
| 46 | dev_info = memmap_dev_info |
| 47 | end note |
| 48 | end opt |
| 49 | deactivate io_storage |
| 50 | |
| 51 | end group |
| 52 | @enduml |