Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions | Variables
hvc_iucv.c File Reference
#include <linux/types.h>
#include <linux/slab.h>
#include <asm/ebcdic.h>
#include <linux/ctype.h>
#include <linux/delay.h>
#include <linux/device.h>
#include <linux/init.h>
#include <linux/mempool.h>
#include <linux/moduleparam.h>
#include <linux/tty.h>
#include <linux/wait.h>
#include <net/iucv/iucv.h>
#include "hvc_console.h"

Go to the source code of this file.

Data Structures

struct  iucv_tty_msg
 
struct  hvc_iucv_private
 
struct  iucv_tty_buffer
 

Macros

#define KMSG_COMPONENT   "hvc_iucv"
 
#define pr_fmt(fmt)   KMSG_COMPONENT ": " fmt
 
#define HVC_IUCV_MAGIC   0xc9e4c3e5
 
#define MAX_HVC_IUCV_LINES   HVC_ALLOC_TTY_ADAPTERS
 
#define MEMPOOL_MIN_NR   (PAGE_SIZE / sizeof(struct iucv_tty_buffer)/4)
 
#define MSG_VERSION   0x02 /* Message version */
 
#define MSG_TYPE_ERROR   0x01 /* Error message */
 
#define MSG_TYPE_TERMENV   0x02 /* Terminal environment variable */
 
#define MSG_TYPE_TERMIOS   0x04 /* Terminal IO struct update */
 
#define MSG_TYPE_WINSIZE   0x08 /* Terminal window size update */
 
#define MSG_TYPE_DATA   0x10 /* Terminal data */
 
#define MSG_MAX_DATALEN   ((u16)(~0))
 
#define MSG_SIZE(s)   ((s) + offsetof(struct iucv_tty_msg, data))
 
#define SNDBUF_SIZE   (PAGE_SIZE) /* must be < MSG_MAX_DATALEN */
 
#define QUEUE_SNDBUF_DELAY   (HZ / 25)
 
#define IUCV_HVC_CON_IDX   (0)
 
#define MAX_VMID_FILTER   (500)
 
#define param_check_vmidfilter(name, p)   __param_check(name, p, void)
 

Enumerations

enum  iucv_state_t { IUCV_DISCONN = 0, IUCV_CONNECTED = 1, IUCV_SEVERED = 2 }
 
enum  tty_state_t { TTY_CLOSED = 0, TTY_OPENED = 1 }
 

Functions

struct iucv_tty_msg __attribute__ ((packed))
 
struct hvc_iucv_privatehvc_iucv_get_private (uint32_t num)
 
 device_initcall (hvc_iucv_init)
 
 __setup ("hvc_iucv=", hvc_iucv_config)
 
 core_param (hvc_iucv_allow, hvc_iucv_filter, vmidfilter, 0640)
 

Variables

u8 version
 
u8 type
 
u16 datalen
 
u8 data []
 
enum iucv_state_t __attribute__
 

Macro Definition Documentation

#define HVC_IUCV_MAGIC   0xc9e4c3e5

Definition at line 31 of file hvc_iucv.c.

#define IUCV_HVC_CON_IDX   (0)

Definition at line 101 of file hvc_iucv.c.

#define KMSG_COMPONENT   "hvc_iucv"

Definition at line 11 of file hvc_iucv.c.

#define MAX_HVC_IUCV_LINES   HVC_ALLOC_TTY_ADAPTERS

Definition at line 32 of file hvc_iucv.c.

#define MAX_VMID_FILTER   (500)

Definition at line 103 of file hvc_iucv.c.

#define MEMPOOL_MIN_NR   (PAGE_SIZE / sizeof(struct iucv_tty_buffer)/4)

Definition at line 33 of file hvc_iucv.c.

#define MSG_MAX_DATALEN   ((u16)(~0))

Definition at line 52 of file hvc_iucv.c.

#define MSG_SIZE (   s)    ((s) + offsetof(struct iucv_tty_msg, data))

Definition at line 50 of file hvc_iucv.c.

#define MSG_TYPE_DATA   0x10 /* Terminal data */

Definition at line 41 of file hvc_iucv.c.

#define MSG_TYPE_ERROR   0x01 /* Error message */

Definition at line 37 of file hvc_iucv.c.

#define MSG_TYPE_TERMENV   0x02 /* Terminal environment variable */

Definition at line 38 of file hvc_iucv.c.

#define MSG_TYPE_TERMIOS   0x04 /* Terminal IO struct update */

Definition at line 39 of file hvc_iucv.c.

#define MSG_TYPE_WINSIZE   0x08 /* Terminal window size update */

Definition at line 40 of file hvc_iucv.c.

#define MSG_VERSION   0x02 /* Message version */

Definition at line 36 of file hvc_iucv.c.

#define param_check_vmidfilter (   name,
  p 
)    __param_check(name, p, void)

Definition at line 1204 of file hvc_iucv.c.

#define pr_fmt (   fmt)    KMSG_COMPONENT ": " fmt

Definition at line 12 of file hvc_iucv.c.

#define QUEUE_SNDBUF_DELAY   (HZ / 25)

Definition at line 74 of file hvc_iucv.c.

#define SNDBUF_SIZE   (PAGE_SIZE) /* must be < MSG_MAX_DATALEN */

Definition at line 71 of file hvc_iucv.c.

Enumeration Type Documentation

Enumerator:
IUCV_DISCONN 
IUCV_CONNECTED 
IUCV_SEVERED 

Definition at line 52 of file hvc_iucv.c.

Enumerator:
TTY_CLOSED 
TTY_OPENED 

Definition at line 58 of file hvc_iucv.c.

Function Documentation

struct iucv_tty_msg __attribute__ ( (packed)  )
read

mcontroller : adapter info structure for old mimd_t apps

: base address : irq number : number of logical drives : pci bus : pci device : pci function : pci id : vendor id : slot number : unique id

Definition at line 171 of file esd_usb2.c.

__setup ( )
core_param ( hvc_iucv_allow  ,
hvc_iucv_filter  ,
vmidfilter  ,
0640   
)
device_initcall ( hvc_iucv_init  )
struct hvc_iucv_private* hvc_iucv_get_private ( uint32_t  num)
read

hvc_iucv_get_private() - Return a struct hvc_iucv_private instance. : The HVC virtual terminal number (vtermno)

This function returns the struct hvc_iucv_private instance that corresponds to the HVC virtual terminal number specified as parameter .

Definition at line 129 of file hvc_iucv.c.

Variable Documentation

u8 data[]

Definition at line 54 of file hvc_iucv.c.

u16 datalen

Definition at line 53 of file hvc_iucv.c.

Definition at line 51 of file hvc_iucv.c.

u8 version

Definition at line 50 of file hvc_iucv.c.