/* SPDX-License-Identifier: GPL-2.0 */ /* * Copyright IBM Corp. 2007, 2010 * Author(s): Peter Oberparleiter <peter.oberparleiter@de.ibm.com> */ #ifndef S390_CHP_H #define S390_CHP_H #include <linux/types.h> #include <linux/device.h> #include <linux/mutex.h> #include <asm/chpid.h> #include "chsc.h" #include "css.h" #define CHP_STATUS_STANDBY 0 #define CHP_STATUS_CONFIGURED 1 #define CHP_STATUS_RESERVED 2 #define CHP_STATUS_NOT_RECOGNIZED 3 #define CHP_ONLINE 0 #define CHP_OFFLINE 1 #define CHP_VARY_ON 2 #define CHP_VARY_OFF 3 struct chp_link { struct chp_id chpid; u32 fla_mask; u16 fla; };
static inline int chp_test_bit(u8 *bitmap, int num) { int byte = num >> 3; int mask = 128 >> (num & 7); return (bitmap[byte] & mask) ? 1 : 0; }Contributors
Person | Tokens | Prop | Commits | CommitProp |
Peter Oberparleiter | 46 | 100.00% | 1 | 100.00% |
Total | 46 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Sebastian Ott | 28 | 100.00% | 2 | 100.00% |
Total | 28 | 100.00% | 2 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Peter Oberparleiter | 206 | 67.76% | 4 | 25.00% |
Sebastian Ott | 50 | 16.45% | 7 | 43.75% |
Cornelia Huck | 46 | 15.13% | 3 | 18.75% |
Heiko Carstens | 1 | 0.33% | 1 | 6.25% |
Greg Kroah-Hartman | 1 | 0.33% | 1 | 6.25% |
Total | 304 | 100.00% | 16 | 100.00% |