diff options
| author | Jing Liu <liujbjl@linux.vnet.ibm.com> | 2016-09-19 09:10:43 +0200 |
|---|---|---|
| committer | Cornelia Huck <cornelia.huck@de.ibm.com> | 2017-05-04 10:34:37 +0200 |
| commit | 6c15e9bfb687f40cc92759536ef2a918fb04349b (patch) | |
| tree | d64cdf7abcede90f1a5709122e0886400a9c85ed /hw/usb/dev-hub.c | |
| parent | ae92cbd542086a508343dd88fd3b980f3be1b3af (diff) | |
| download | focaccia-qemu-6c15e9bfb687f40cc92759536ef2a918fb04349b.tar.gz focaccia-qemu-6c15e9bfb687f40cc92759536ef2a918fb04349b.zip | |
s390x/css: Add an algorithm to find a free chpid
This introduces a function named css_find_free_chpid() to find a free channel path. Because virtio-ccw device used zero as its channel path number, it would be sensible to skip the reserved one and search upwards. Signed-off-by: Jing Liu <liujbjl@linux.vnet.ibm.com> Reviewed-by: QingFeng Hao <haoqf@linux.vnet.ibm.com> Reviewed-by: Dong Jia Shi <bjsdjshi@linux.vnet.ibm.com> Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Diffstat (limited to 'hw/usb/dev-hub.c')
0 files changed, 0 insertions, 0 deletions