Linux Kernel
3.7.1
|
#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_info * | info |
struct raw3215_req * | next |
struct raw3215_info | __attribute__ |
enum raw3215_type |
|
read |
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.
module_exit | ( | tty3215_exit | ) |
module_init | ( | tty3215_init | ) |
struct ccw1 ccws[RAW3215_NR_CCWS] |
struct raw3215_info* info |
struct raw3215_req* next |
enum raw3215_type type |