mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-21 21:53:28 +07:00
ab08ff34b4
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iQIVAwUAUHPmWxOxKuMESys7AQKOvw//XnLQRzin9nWB91Dx9G5ZAZ3f1t5YFI31 mocFdgeuP1+qg1w4/dED1xnqODh9Sbi6gBsFa3wIAIcK/qkqwu8TCbFQDkjZsJkZ j/ZghiyrrMuFn71m2+cWpAcyoEKdtmfsd352lXOW6ACP21Yth/64GsJJpdM7ywVo K0mqtXcA0GDGioF9bc6p/fk/fS1V4X5dYle1hx9Pvsk1qxFrYNpkvBLkMxccn0Sf SUNLO1p4NIlfSjyO/7A5FwDGGkP4RzDAZ/Sno9+4tBqZ3wyTftfBRiocnK4VTfAW NhDWinIHwa+uAXK5A0wusPHHpmrVv7Caqda2pkkNmU8MtbB8NRJsMhM+xG+xZN8C UAESm69Ey2xbR8QNG7HQadCXywcIlDGGvvXbUgQA0q+WYL23gkUb5JtoEsWn39ce +m89dCzxz1QpQ0m4uTrCwR7cgs8URfozRFp9UO5yGHX3tNc6oiyeZl2wt/UUm8TJ oE2xbUuHB+OGxFw8FalJ92mM9cZcfKJxXSSZpUsb8CEIHNEvtNleG4KohynCwowQ IeRBZaGpDWttgNAia+suK1cunJ7Idvqx0T/aWGDBxAjxrJWLqmh9rMwVigmVf4RP 2TCrQW0cwfEMYvBLwszcfutrbzx/yfLhX+hhP9MTyroHzb6u1oyR1mh3uB4WXLKE BnMyXQjQOOE= =sTs2 -----END PGP SIGNATURE----- Merge tag 'disintegrate-s390-20121009' of git://git.infradead.org/users/dhowells/linux-headers Pull UAPI patchset from David Howells: "Can you merge the following branch into the s390 tree please. This is to complete part of the UAPI disintegration for which the preparatory patches were pulled recently." Conflicts: arch/s390/include/asm/chpid.h
40 lines
812 B
C
40 lines
812 B
C
/*
|
|
* Copyright IBM Corp. 2007, 2012
|
|
* Author(s): Peter Oberparleiter <peter.oberparleiter@de.ibm.com>
|
|
*/
|
|
#ifndef _ASM_S390_CHPID_H
|
|
#define _ASM_S390_CHPID_H
|
|
|
|
#include <uapi/asm/chpid.h>
|
|
#include <asm/cio.h>
|
|
|
|
static inline void chp_id_init(struct chp_id *chpid)
|
|
{
|
|
memset(chpid, 0, sizeof(struct chp_id));
|
|
}
|
|
|
|
static inline int chp_id_is_equal(struct chp_id *a, struct chp_id *b)
|
|
{
|
|
return (a->id == b->id) && (a->cssid == b->cssid);
|
|
}
|
|
|
|
static inline void chp_id_next(struct chp_id *chpid)
|
|
{
|
|
if (chpid->id < __MAX_CHPID)
|
|
chpid->id++;
|
|
else {
|
|
chpid->id = 0;
|
|
chpid->cssid++;
|
|
}
|
|
}
|
|
|
|
static inline int chp_id_is_valid(struct chp_id *chpid)
|
|
{
|
|
return (chpid->cssid <= __MAX_CSSID);
|
|
}
|
|
|
|
|
|
#define chp_id_for_each(c) \
|
|
for (chp_id_init(c); chp_id_is_valid(c); chp_id_next(c))
|
|
#endif /* _ASM_S390_CHPID_H */
|