Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
raw3270.h File Reference
#include <asm/idals.h>
#include <asm/ioctl.h>

Go to the source code of this file.

Data Structures

struct  raw3270_iocb
 
struct  raw3270_request
 
struct  raw3270_fn
 
struct  raw3270_view
 
struct  string
 

Macros

#define TUBICMD   _IO('3', 3) /* set ccw command for fs reads. */
 
#define TUBOCMD   _IO('3', 4) /* set ccw command for fs writes. */
 
#define TUBGETI   _IO('3', 7) /* get ccw command for fs reads. */
 
#define TUBGETO   _IO('3', 8) /* get ccw command for fs writes. */
 
#define TUBSETMOD   _IO('3',12) /* FIXME: what does it do ?*/
 
#define TUBGETMOD   _IO('3',13) /* FIXME: what does it do ?*/
 
#define TC_WRITE   0x01 /* Write */
 
#define TC_RDBUF   0x02 /* Read Buffer */
 
#define TC_EWRITE   0x05 /* Erase write */
 
#define TC_READMOD   0x06 /* Read modified */
 
#define TC_EWRITEA   0x0d /* Erase write alternate */
 
#define TC_WRITESF   0x11 /* Write structured field */
 
#define TO_SF   0x1d /* Start field */
 
#define TO_SBA   0x11 /* Set buffer address */
 
#define TO_IC   0x13 /* Insert cursor */
 
#define TO_PT   0x05 /* Program tab */
 
#define TO_RA   0x3c /* Repeat to address */
 
#define TO_SFE   0x29 /* Start field extended */
 
#define TO_EUA   0x12 /* Erase unprotected to address */
 
#define TO_MF   0x2c /* Modify field */
 
#define TO_SA   0x28 /* Set attribute */
 
#define TF_INPUT   0x40 /* Visible input */
 
#define TF_INPUTN   0x4c /* Invisible input */
 
#define TF_INMDT   0xc1 /* Visible, Set-MDT */
 
#define TF_LOG   0x60
 
#define TAT_RESET   0x00
 
#define TAT_FIELD   0xc0
 
#define TAT_EXTHI   0x41
 
#define TAT_COLOR   0x42
 
#define TAT_CHARS   0x43
 
#define TAT_TRANS   0x46
 
#define TAX_RESET   0x00
 
#define TAX_BLINK   0xf1
 
#define TAX_REVER   0xf2
 
#define TAX_UNDER   0xf4
 
#define TAR_RESET   0x00
 
#define TAC_RESET   0x00
 
#define TAC_BLUE   0xf1
 
#define TAC_RED   0xf2
 
#define TAC_PINK   0xf3
 
#define TAC_GREEN   0xf4
 
#define TAC_TURQ   0xf5
 
#define TAC_YELLOW   0xf6
 
#define TAC_WHITE   0xf7
 
#define TAC_DEFAULT   0x00
 
#define TW_NONE   0x40 /* No particular action */
 
#define TW_KR   0xc2 /* Keyboard restore */
 
#define TW_PLUSALARM   0x04 /* Add this bit for alarm */
 
#define RAW3270_FIRSTMINOR   1 /* First minor number */
 
#define RAW3270_MAXDEVS   255 /* Max number of 3270 devices */
 
#define RAW3270_IO_DONE   0 /* request finished */
 
#define RAW3270_IO_BUSY   1 /* request still active */
 
#define RAW3270_IO_RETRY   2 /* retry current request */
 
#define RAW3270_IO_STOP   3 /* kill current request */
 

Functions

struct raw3270_requestraw3270_request_alloc (size_t size)
 
struct raw3270_requestraw3270_request_alloc_bootmem (size_t size)
 
void raw3270_request_free (struct raw3270_request *)
 
void raw3270_request_reset (struct raw3270_request *)
 
void raw3270_request_set_cmd (struct raw3270_request *, u8 cmd)
 
int raw3270_request_add_data (struct raw3270_request *, void *, size_t)
 
void raw3270_request_set_data (struct raw3270_request *, void *, size_t)
 
void raw3270_request_set_idal (struct raw3270_request *, struct idal_buffer *)
 
void raw3270_buffer_address (struct raw3270 *, char *, unsigned short)
 
int raw3270_add_view (struct raw3270_view *, struct raw3270_fn *, int)
 
int raw3270_activate_view (struct raw3270_view *)
 
void raw3270_del_view (struct raw3270_view *)
 
void raw3270_deactivate_view (struct raw3270_view *)
 
struct raw3270_viewraw3270_find_view (struct raw3270_fn *, int)
 
int raw3270_start (struct raw3270_view *, struct raw3270_request *)
 
int raw3270_start_locked (struct raw3270_view *, struct raw3270_request *)
 
int raw3270_start_irq (struct raw3270_view *, struct raw3270_request *)
 
int raw3270_reset (struct raw3270_view *)
 
struct raw3270_viewraw3270_view (struct raw3270_view *)
 
struct raw3270raw3270_setup_console (struct ccw_device *cdev)
 
void raw3270_wait_cons_dev (struct raw3270 *)
 
int raw3270_register_notifier (void(*notifier)(int, int))
 
void raw3270_unregister_notifier (void(*notifier)(int, int))
 
void raw3270_pm_unfreeze (struct raw3270_view *)
 
struct string __attribute__ ((aligned(8)))
 Packet vector entry.
 

Variables

struct raw3270_iocb __attribute__
 
wait_queue_head_t raw3270_wait_queue
 
struct list_head list
 
struct list_head update
 
unsigned long size
 
unsigned long len
 
char string [0]
 

Macro Definition Documentation

#define RAW3270_FIRSTMINOR   1 /* First minor number */

Definition at line 79 of file raw3270.h.

#define RAW3270_IO_BUSY   1 /* request still active */

Definition at line 129 of file raw3270.h.

#define RAW3270_IO_DONE   0 /* request finished */

Definition at line 128 of file raw3270.h.

#define RAW3270_IO_RETRY   2 /* retry current request */

Definition at line 130 of file raw3270.h.

#define RAW3270_IO_STOP   3 /* kill current request */

Definition at line 131 of file raw3270.h.

#define RAW3270_MAXDEVS   255 /* Max number of 3270 devices */

Definition at line 80 of file raw3270.h.

#define TAC_BLUE   0xf1

Definition at line 65 of file raw3270.h.

#define TAC_DEFAULT   0x00

Definition at line 72 of file raw3270.h.

#define TAC_GREEN   0xf4

Definition at line 68 of file raw3270.h.

#define TAC_PINK   0xf3

Definition at line 67 of file raw3270.h.

#define TAC_RED   0xf2

Definition at line 66 of file raw3270.h.

#define TAC_RESET   0x00

Definition at line 64 of file raw3270.h.

#define TAC_TURQ   0xf5

Definition at line 69 of file raw3270.h.

#define TAC_WHITE   0xf7

Definition at line 71 of file raw3270.h.

#define TAC_YELLOW   0xf6

Definition at line 70 of file raw3270.h.

#define TAR_RESET   0x00

Definition at line 61 of file raw3270.h.

#define TAT_CHARS   0x43

Definition at line 51 of file raw3270.h.

#define TAT_COLOR   0x42

Definition at line 50 of file raw3270.h.

#define TAT_EXTHI   0x41

Definition at line 49 of file raw3270.h.

#define TAT_FIELD   0xc0

Definition at line 48 of file raw3270.h.

#define TAT_RESET   0x00

Definition at line 47 of file raw3270.h.

#define TAT_TRANS   0x46

Definition at line 52 of file raw3270.h.

#define TAX_BLINK   0xf1

Definition at line 56 of file raw3270.h.

#define TAX_RESET   0x00

Definition at line 55 of file raw3270.h.

#define TAX_REVER   0xf2

Definition at line 57 of file raw3270.h.

#define TAX_UNDER   0xf4

Definition at line 58 of file raw3270.h.

#define TC_EWRITE   0x05 /* Erase write */

Definition at line 24 of file raw3270.h.

#define TC_EWRITEA   0x0d /* Erase write alternate */

Definition at line 26 of file raw3270.h.

#define TC_RDBUF   0x02 /* Read Buffer */

Definition at line 23 of file raw3270.h.

#define TC_READMOD   0x06 /* Read modified */

Definition at line 25 of file raw3270.h.

#define TC_WRITE   0x01 /* Write */

Definition at line 22 of file raw3270.h.

#define TC_WRITESF   0x11 /* Write structured field */

Definition at line 27 of file raw3270.h.

#define TF_INMDT   0xc1 /* Visible, Set-MDT */

Definition at line 43 of file raw3270.h.

#define TF_INPUT   0x40 /* Visible input */

Definition at line 41 of file raw3270.h.

#define TF_INPUTN   0x4c /* Invisible input */

Definition at line 42 of file raw3270.h.

#define TF_LOG   0x60

Definition at line 44 of file raw3270.h.

#define TO_EUA   0x12 /* Erase unprotected to address */

Definition at line 36 of file raw3270.h.

#define TO_IC   0x13 /* Insert cursor */

Definition at line 32 of file raw3270.h.

#define TO_MF   0x2c /* Modify field */

Definition at line 37 of file raw3270.h.

#define TO_PT   0x05 /* Program tab */

Definition at line 33 of file raw3270.h.

#define TO_RA   0x3c /* Repeat to address */

Definition at line 34 of file raw3270.h.

#define TO_SA   0x28 /* Set attribute */

Definition at line 38 of file raw3270.h.

#define TO_SBA   0x11 /* Set buffer address */

Definition at line 31 of file raw3270.h.

#define TO_SF   0x1d /* Start field */

Definition at line 30 of file raw3270.h.

#define TO_SFE   0x29 /* Start field extended */

Definition at line 35 of file raw3270.h.

#define TUBGETI   _IO('3', 7) /* get ccw command for fs reads. */

Definition at line 16 of file raw3270.h.

#define TUBGETMOD   _IO('3',13) /* FIXME: what does it do ?*/

Definition at line 19 of file raw3270.h.

#define TUBGETO   _IO('3', 8) /* get ccw command for fs writes. */

Definition at line 17 of file raw3270.h.

#define TUBICMD   _IO('3', 3) /* set ccw command for fs reads. */

Definition at line 14 of file raw3270.h.

#define TUBOCMD   _IO('3', 4) /* set ccw command for fs writes. */

Definition at line 15 of file raw3270.h.

#define TUBSETMOD   _IO('3',12) /* FIXME: what does it do ?*/

Definition at line 18 of file raw3270.h.

#define TW_KR   0xc2 /* Keyboard restore */

Definition at line 76 of file raw3270.h.

#define TW_NONE   0x40 /* No particular action */

Definition at line 75 of file raw3270.h.

#define TW_PLUSALARM   0x04 /* Add this bit for alarm */

Definition at line 77 of file raw3270.h.

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.

int raw3270_activate_view ( struct raw3270_view )

Definition at line 883 of file raw3270.c.

int raw3270_add_view ( struct raw3270_view ,
struct raw3270_fn ,
int   
)

Definition at line 964 of file raw3270.c.

void raw3270_buffer_address ( struct raw3270 ,
char ,
unsigned  short 
)

Definition at line 101 of file raw3270.c.

void raw3270_deactivate_view ( struct raw3270_view )

Definition at line 931 of file raw3270.c.

void raw3270_del_view ( struct raw3270_view )

Definition at line 1034 of file raw3270.c.

struct raw3270_view* raw3270_find_view ( struct raw3270_fn ,
int   
)
read

Definition at line 1001 of file raw3270.c.

void raw3270_pm_unfreeze ( struct raw3270_view )

Definition at line 1360 of file raw3270.c.

int raw3270_register_notifier ( void(*)(int, int notifier)

Definition at line 1181 of file raw3270.c.

int raw3270_request_add_data ( struct raw3270_request ,
void ,
size_t   
)

Definition at line 183 of file raw3270.c.

struct raw3270_request* raw3270_request_alloc ( size_t  size)
read

Definition at line 116 of file raw3270.c.

struct raw3270_request* raw3270_request_alloc_bootmem ( size_t  size)
read
void raw3270_request_free ( struct raw3270_request )

Definition at line 149 of file raw3270.c.

void raw3270_request_reset ( struct raw3270_request )

Definition at line 159 of file raw3270.c.

void raw3270_request_set_cmd ( struct raw3270_request ,
u8  cmd 
)

Definition at line 174 of file raw3270.c.

void raw3270_request_set_data ( struct raw3270_request ,
void ,
size_t   
)

Definition at line 196 of file raw3270.c.

void raw3270_request_set_idal ( struct raw3270_request ,
struct idal_buffer  
)

Definition at line 206 of file raw3270.c.

int raw3270_reset ( struct raw3270_view )

Definition at line 733 of file raw3270.c.

struct raw3270* raw3270_setup_console ( struct ccw_device cdev)
read
int raw3270_start ( struct raw3270_view ,
struct raw3270_request  
)

Definition at line 273 of file raw3270.c.

int raw3270_start_irq ( struct raw3270_view ,
struct raw3270_request  
)

Definition at line 310 of file raw3270.c.

int raw3270_start_locked ( struct raw3270_view ,
struct raw3270_request  
)

Definition at line 293 of file raw3270.c.

void raw3270_unregister_notifier ( void(*)(int, int notifier)

Definition at line 1200 of file raw3270.c.

void raw3270_wait_cons_dev ( struct raw3270 )

Variable Documentation

unsigned long len

Definition at line 213 of file raw3270.h.

Definition at line 210 of file raw3270.h.

wait_queue_head_t raw3270_wait_queue
unsigned long size

Definition at line 212 of file raw3270.h.

Definition at line 214 of file raw3270.h.

:feature negotiation list to update

dccp_feat_propagate_ccid - Resolve dependencies of features on choice of CCID

: CCID number to track : whether TX CCID (1) or RX CCID (0) is meant

This function needs to be called after registering all other features.

dccp_feat_change_recv - Process incoming ChangeL/R options

: whether the Change was preceded by a Mandatory option : DCCPO_CHANGE_L or DCCPO_CHANGE_R : one of dccp_feature_numbers : NN value or SP value/preference list : length of in bytes : whether this node is the server (1) or the client (0)

dccp_feat_confirm_recv - Process received Confirm options

: whether was preceded by a Mandatory option : DCCPO_CONFIRM_L or DCCPO_CONFIRM_R : one of dccp_feature_numbers : NN value or SP value/preference list : length of in bytes : whether this node is server (1) or client (0)

Definition at line 211 of file raw3270.h.