Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions | Variables
con3215.c File Reference
#include <linux/module.h>
#include <linux/types.h>
#include <linux/kdev_t.h>
#include <linux/tty.h>
#include <linux/tty_flip.h>
#include <linux/vt_kern.h>
#include <linux/init.h>
#include <linux/console.h>
#include <linux/interrupt.h>
#include <linux/err.h>
#include <linux/reboot.h>
#include <linux/serial.h>
#include <linux/slab.h>
#include <asm/ccwdev.h>
#include <asm/cio.h>
#include <asm/io.h>
#include <asm/ebcdic.h>
#include <asm/uaccess.h>
#include <asm/delay.h>
#include <asm/cpcmd.h>
#include <asm/setup.h>
#include "ctrlchar.h"

Go to the source code of this file.

Data Structures

struct  raw3215_req
 
struct  raw3215_info
 

Macros

#define NR_3215   1
 
#define NR_3215_REQ   (4*NR_3215)
 
#define RAW3215_BUFFER_SIZE   65536 /* output buffer size */
 
#define RAW3215_INBUF_SIZE   256 /* input buffer size */
 
#define RAW3215_MIN_SPACE   128 /* minimum free space for wakeup */
 
#define RAW3215_MIN_WRITE   1024 /* min. length for immediate output */
 
#define RAW3215_MAX_BYTES   3968 /* max. bytes to write with one ssch */
 
#define RAW3215_MAX_NEWLINE   50 /* max. lines to write with one ssch */
 
#define RAW3215_NR_CCWS   3
 
#define RAW3215_TIMEOUT   HZ/10 /* time for delayed output */
 
#define RAW3215_WORKING   4 /* set if a request is being worked on */
 
#define RAW3215_THROTTLED   8 /* set if reading is disabled */
 
#define RAW3215_STOPPED   16 /* set if writing is disabled */
 
#define RAW3215_TIMER_RUNS   64 /* set if the output delay timer is on */
 
#define RAW3215_FLUSHING   128 /* set to flush buffer (no delay) */
 
#define TAB_STOP_SIZE   8 /* tab stop size */
 

Enumerations

enum  raw3215_type { RAW3215_FREE, RAW3215_READ, RAW3215_WRITE }
 

Functions

struct raw3215_req __attribute__ ((aligned(8)))
 Packet vector entry.
 
 module_init (tty3215_init)
 
 module_exit (tty3215_exit)
 

Variables

enum raw3215_type type
 
int start
 
int len
 
int delayable
 
int residual
 
struct ccw1 ccws [RAW3215_NR_CCWS]
 
struct raw3215_infoinfo
 
struct raw3215_reqnext
 
struct raw3215_info __attribute__
 

Macro Definition Documentation

#define NR_3215   1

Definition at line 36 of file con3215.c.

#define NR_3215_REQ   (4*NR_3215)

Definition at line 37 of file con3215.c.

#define RAW3215_BUFFER_SIZE   65536 /* output buffer size */

Definition at line 38 of file con3215.c.

#define RAW3215_FLUSHING   128 /* set to flush buffer (no delay) */

Definition at line 51 of file con3215.c.

#define RAW3215_INBUF_SIZE   256 /* input buffer size */

Definition at line 39 of file con3215.c.

#define RAW3215_MAX_BYTES   3968 /* max. bytes to write with one ssch */

Definition at line 42 of file con3215.c.

#define RAW3215_MAX_NEWLINE   50 /* max. lines to write with one ssch */

Definition at line 43 of file con3215.c.

#define RAW3215_MIN_SPACE   128 /* minimum free space for wakeup */

Definition at line 40 of file con3215.c.

#define RAW3215_MIN_WRITE   1024 /* min. length for immediate output */

Definition at line 41 of file con3215.c.

#define RAW3215_NR_CCWS   3

Definition at line 44 of file con3215.c.

#define RAW3215_STOPPED   16 /* set if writing is disabled */

Definition at line 49 of file con3215.c.

#define RAW3215_THROTTLED   8 /* set if reading is disabled */

Definition at line 48 of file con3215.c.

#define RAW3215_TIMEOUT   HZ/10 /* time for delayed output */

Definition at line 45 of file con3215.c.

#define RAW3215_TIMER_RUNS   64 /* set if the output delay timer is on */

Definition at line 50 of file con3215.c.

#define RAW3215_WORKING   4 /* set if a request is being worked on */

Definition at line 47 of file con3215.c.

#define TAB_STOP_SIZE   8 /* tab stop size */

Definition at line 53 of file con3215.c.

Enumeration Type Documentation

Enumerator:
RAW3215_FREE 
RAW3215_READ 
RAW3215_WRITE 

Definition at line 58 of file con3215.c.

Function Documentation

Packet vector entry.

This data structure is used with netio_send_packet_vector() to send multiple packets with one NetIO call. The structure should be initialized by calling netio_pkt_vector_set(), rather than by setting the fields directly.

This structure is guaranteed to be a power of two in size, no bigger than one L2 cache line, and to be aligned modulo its size.

Reserved for use by the user application. When initialized with the netio_set_pkt_vector_entry() function, this field is guaranteed to be visible to readers only after all other fields are already visible. This way it can be used as a valid flag or generation counter.

Low 8 bits of the packet address to send. The high bits are acquired from the 'handle' field.

Number of bytes to transmit.

The raw handle from a netio_pkt_t. If this is NETIO_PKT_HANDLE_NONE, this vector entry will be skipped and no packet will be transmitted.

Definition at line 9 of file extable.c.

module_exit ( tty3215_exit  )
module_init ( tty3215_init  )

Variable Documentation

Definition at line 78 of file con3215.c.

int delayable

Definition at line 76 of file con3215.c.

Definition at line 79 of file con3215.c.

int len

Definition at line 75 of file con3215.c.

Definition at line 80 of file con3215.c.

int residual

Definition at line 77 of file con3215.c.

int start

Definition at line 75 of file con3215.c.

Definition at line 74 of file con3215.c.