vmcp.c (3f4298427ad521fdc74fb991b17d84959513218a) vmcp.c (ef267938f07197fc011e3aada67ac70a3c65c2ff)
1/*
2 * Copyright IBM Corp. 2004, 2010
3 * Interface implementation for communication with the z/VM control program
4 *
5 * Author(s): Christian Borntraeger <borntraeger@de.ibm.com>
6 *
7 * z/VMs CP offers the possibility to issue commands via the diagnose code 8
8 * this driver implements a character device that issues these commands and

--- 11 unchanged lines hidden (view full) ---

20#include <linux/uaccess.h>
21#include <linux/export.h>
22#include <linux/mutex.h>
23#include <linux/cma.h>
24#include <linux/mm.h>
25#include <asm/compat.h>
26#include <asm/cpcmd.h>
27#include <asm/debug.h>
1/*
2 * Copyright IBM Corp. 2004, 2010
3 * Interface implementation for communication with the z/VM control program
4 *
5 * Author(s): Christian Borntraeger <borntraeger@de.ibm.com>
6 *
7 * z/VMs CP offers the possibility to issue commands via the diagnose code 8
8 * this driver implements a character device that issues these commands and

--- 11 unchanged lines hidden (view full) ---

20#include <linux/uaccess.h>
21#include <linux/export.h>
22#include <linux/mutex.h>
23#include <linux/cma.h>
24#include <linux/mm.h>
25#include <asm/compat.h>
26#include <asm/cpcmd.h>
27#include <asm/debug.h>
28#include "vmcp.h"
28#include <asm/vmcp.h>
29
29
30struct vmcp_session {
31 char *response;
32 unsigned int bufsize;
33 unsigned int cma_alloc : 1;
34 int resp_size;
35 int resp_code;
36 struct mutex mutex;
37};
38
30static debug_info_t *vmcp_debug;
31
32static unsigned long vmcp_cma_size __initdata = CONFIG_VMCP_CMA_SIZE * 1024 * 1024;
33static struct cma *vmcp_cma;
34
35static int __init early_parse_vmcp_cma(char *p)
36{
37 vmcp_cma_size = ALIGN(memparse(p, NULL), PAGE_SIZE);

--- 231 unchanged lines hidden ---
39static debug_info_t *vmcp_debug;
40
41static unsigned long vmcp_cma_size __initdata = CONFIG_VMCP_CMA_SIZE * 1024 * 1024;
42static struct cma *vmcp_cma;
43
44static int __init early_parse_vmcp_cma(char *p)
45{
46 vmcp_cma_size = ALIGN(memparse(p, NULL), PAGE_SIZE);

--- 231 unchanged lines hidden ---