ia64/kvm: compilation fix. export account_system_vtime.
[pv_ops_mirror.git] / drivers / s390 / cio / schid.h
blob54328fec5adea77dab793ff8fbdbd636e0710714
1 #ifndef S390_SCHID_H
2 #define S390_SCHID_H
4 struct subchannel_id {
5 __u32 reserved:13;
6 __u32 ssid:2;
7 __u32 one:1;
8 __u32 sch_no:16;
9 } __attribute__ ((packed,aligned(4)));
12 /* Helper function for sane state of pre-allocated subchannel_id. */
13 static inline void
14 init_subchannel_id(struct subchannel_id *schid)
16 memset(schid, 0, sizeof(struct subchannel_id));
17 schid->one = 1;
20 static inline int
21 schid_equal(struct subchannel_id *schid1, struct subchannel_id *schid2)
23 return !memcmp(schid1, schid2, sizeof(struct subchannel_id));
26 #endif /* S390_SCHID_H */