162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */ 262306a36Sopenharmony_ci/* 362306a36Sopenharmony_ci * Copyright IBM Corp. 2007, 2012 462306a36Sopenharmony_ci * Author(s): Peter Oberparleiter <peter.oberparleiter@de.ibm.com> 562306a36Sopenharmony_ci */ 662306a36Sopenharmony_ci 762306a36Sopenharmony_ci#ifndef S390_IDSET_H 862306a36Sopenharmony_ci#define S390_IDSET_H 962306a36Sopenharmony_ci 1062306a36Sopenharmony_ci#include <asm/schid.h> 1162306a36Sopenharmony_ci 1262306a36Sopenharmony_cistruct idset; 1362306a36Sopenharmony_ci 1462306a36Sopenharmony_civoid idset_free(struct idset *set); 1562306a36Sopenharmony_civoid idset_fill(struct idset *set); 1662306a36Sopenharmony_ci 1762306a36Sopenharmony_cistruct idset *idset_sch_new(void); 1862306a36Sopenharmony_civoid idset_sch_add(struct idset *set, struct subchannel_id id); 1962306a36Sopenharmony_civoid idset_sch_del(struct idset *set, struct subchannel_id id); 2062306a36Sopenharmony_civoid idset_sch_del_subseq(struct idset *set, struct subchannel_id schid); 2162306a36Sopenharmony_ciint idset_sch_contains(struct idset *set, struct subchannel_id id); 2262306a36Sopenharmony_ciint idset_is_empty(struct idset *set); 2362306a36Sopenharmony_civoid idset_add_set(struct idset *to, struct idset *from); 2462306a36Sopenharmony_ci 2562306a36Sopenharmony_ci#endif /* S390_IDSET_H */ 26