-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'for-linus' of git://git390.marist.edu/pub/scm/linux-2.6
* 'for-linus' of git://git390.marist.edu/pub/scm/linux-2.6: (81 commits) [S390] remove duplicated #includes [S390] cpumask: use mm_cpumask() wrapper [S390] cpumask: Use accessors code. [S390] cpumask: prepare for iterators to only go to nr_cpu_ids/nr_cpumask_bits. [S390] cpumask: remove cpu_coregroup_map [S390] fix clock comparator save area usage [S390] Add hwcap flag for the etf3 enhancement facility [S390] Ensure that ipl panic notifier is called late. [S390] fix dfp elf hwcap/facility bit detection [S390] smp: perform initial cpu reset before starting a cpu [S390] smp: fix memory leak on __cpu_up [S390] ipl: Improve checking logic and remove switch defaults. [S390] s390dbf: Remove needless check for NULL pointer. [S390] s390dbf: Remove redundant initilizations. [S390] use kzfree() [S390] BUG to BUG_ON changes [S390] zfcpdump: Prevent zcore from beeing built as a kernel module. [S390] Use csum_partial in checksum.h [S390] cleanup lowcore.h [S390] eliminate ipl_device from lowcore ...
- Loading branch information
Showing
99 changed files
with
4,059 additions
and
2,917 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
/* | ||
* Data definitions for channel report processing | ||
* Copyright IBM Corp. 2000,2009 | ||
* Author(s): Ingo Adlung <adlung@de.ibm.com>, | ||
* Martin Schwidefsky <schwidefsky@de.ibm.com>, | ||
* Cornelia Huck <cornelia.huck@de.ibm.com>, | ||
* Heiko Carstens <heiko.carstens@de.ibm.com>, | ||
*/ | ||
|
||
#ifndef _ASM_S390_CRW_H | ||
#define _ASM_S390_CRW_H | ||
|
||
#include <linux/types.h> | ||
|
||
/* | ||
* Channel Report Word | ||
*/ | ||
struct crw { | ||
__u32 res1 : 1; /* reserved zero */ | ||
__u32 slct : 1; /* solicited */ | ||
__u32 oflw : 1; /* overflow */ | ||
__u32 chn : 1; /* chained */ | ||
__u32 rsc : 4; /* reporting source code */ | ||
__u32 anc : 1; /* ancillary report */ | ||
__u32 res2 : 1; /* reserved zero */ | ||
__u32 erc : 6; /* error-recovery code */ | ||
__u32 rsid : 16; /* reporting-source ID */ | ||
} __attribute__ ((packed)); | ||
|
||
typedef void (*crw_handler_t)(struct crw *, struct crw *, int); | ||
|
||
extern int crw_register_handler(int rsc, crw_handler_t handler); | ||
extern void crw_unregister_handler(int rsc); | ||
extern void crw_handle_channel_report(void); | ||
|
||
#define NR_RSCS 16 | ||
|
||
#define CRW_RSC_MONITOR 0x2 /* monitoring facility */ | ||
#define CRW_RSC_SCH 0x3 /* subchannel */ | ||
#define CRW_RSC_CPATH 0x4 /* channel path */ | ||
#define CRW_RSC_CONFIG 0x9 /* configuration-alert facility */ | ||
#define CRW_RSC_CSS 0xB /* channel subsystem */ | ||
|
||
#define CRW_ERC_EVENT 0x00 /* event information pending */ | ||
#define CRW_ERC_AVAIL 0x01 /* available */ | ||
#define CRW_ERC_INIT 0x02 /* initialized */ | ||
#define CRW_ERC_TERROR 0x03 /* temporary error */ | ||
#define CRW_ERC_IPARM 0x04 /* installed parm initialized */ | ||
#define CRW_ERC_TERM 0x05 /* terminal */ | ||
#define CRW_ERC_PERRN 0x06 /* perm. error, fac. not init */ | ||
#define CRW_ERC_PERRI 0x07 /* perm. error, facility init */ | ||
#define CRW_ERC_PMOD 0x08 /* installed parameters modified */ | ||
|
||
static inline int stcrw(struct crw *pcrw) | ||
{ | ||
int ccode; | ||
|
||
asm volatile( | ||
" stcrw 0(%2)\n" | ||
" ipm %0\n" | ||
" srl %0,28\n" | ||
: "=d" (ccode), "=m" (*pcrw) | ||
: "a" (pcrw) | ||
: "cc" ); | ||
return ccode; | ||
} | ||
|
||
#endif /* _ASM_S390_CRW_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.