18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */ 28c2ecf20Sopenharmony_ci/* 38c2ecf20Sopenharmony_ci * Copyright IBM Corp. 2007, 2012 48c2ecf20Sopenharmony_ci * Author(s): Peter Oberparleiter <peter.oberparleiter@de.ibm.com> 58c2ecf20Sopenharmony_ci */ 68c2ecf20Sopenharmony_ci 78c2ecf20Sopenharmony_ci#ifndef S390_IDSET_H 88c2ecf20Sopenharmony_ci#define S390_IDSET_H 98c2ecf20Sopenharmony_ci 108c2ecf20Sopenharmony_ci#include <asm/schid.h> 118c2ecf20Sopenharmony_ci 128c2ecf20Sopenharmony_cistruct idset; 138c2ecf20Sopenharmony_ci 148c2ecf20Sopenharmony_civoid idset_free(struct idset *set); 158c2ecf20Sopenharmony_civoid idset_fill(struct idset *set); 168c2ecf20Sopenharmony_ci 178c2ecf20Sopenharmony_cistruct idset *idset_sch_new(void); 188c2ecf20Sopenharmony_civoid idset_sch_add(struct idset *set, struct subchannel_id id); 198c2ecf20Sopenharmony_civoid idset_sch_del(struct idset *set, struct subchannel_id id); 208c2ecf20Sopenharmony_civoid idset_sch_del_subseq(struct idset *set, struct subchannel_id schid); 218c2ecf20Sopenharmony_ciint idset_sch_contains(struct idset *set, struct subchannel_id id); 228c2ecf20Sopenharmony_ciint idset_is_empty(struct idset *set); 238c2ecf20Sopenharmony_civoid idset_add_set(struct idset *to, struct idset *from); 248c2ecf20Sopenharmony_ci 258c2ecf20Sopenharmony_ci#endif /* S390_IDSET_H */ 26