Main Page | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals

dz.h File Reference

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define DZ_TRDY   0x8000
#define DZ_TIE   0x4000
#define DZ_RDONE   0x0080
#define DZ_RIE   0x0040
#define DZ_MSE   0x0020
#define DZ_CLR   0x0010
#define DZ_MAINT   0x0008
#define DZ_RBUF_MASK   0x00FF
#define DZ_LINE_MASK   0x0300
#define DZ_DVAL   0x8000
#define DZ_OERR   0x4000
#define DZ_FERR   0x2000
#define DZ_PERR   0x1000
#define LINE(x)   (x & DZ_LINE_MASK) >> 8
#define UCHAR(x)   (unsigned char)(x & DZ_RBUF_MASK)
#define DZ_LINE_KEYBOARD   0x0001
#define DZ_LINE_MOUSE   0x0002
#define DZ_LINE_MODEM   0x0004
#define DZ_LINE_PRINTER   0x0008
#define DZ_MODEM_DTR   0x0400
#define DZ_MODEM_DSR   0x0200
#define DZ_BRK0   0x0100
#define DZ_BRK1   0x0200
#define DZ_BRK2   0x0400
#define DZ_BRK3   0x0800
#define DZ_KEYBOARD   0x0000
#define DZ_MOUSE   0x0001
#define DZ_MODEM   0x0002
#define DZ_PRINTER   0x0003
#define DZ_CSIZE   0x0018
#define DZ_CS5   0x0000
#define DZ_CS6   0x0008
#define DZ_CS7   0x0010
#define DZ_CS8   0x0018
#define DZ_CSTOPB   0x0020
#define DZ_PARENB   0x0040
#define DZ_PARODD   0x0080
#define DZ_CBAUD   0x0E00
#define DZ_B50   0x0000
#define DZ_B75   0x0100
#define DZ_B110   0x0200
#define DZ_B134   0x0300
#define DZ_B150   0x0400
#define DZ_B300   0x0500
#define DZ_B600   0x0600
#define DZ_B1200   0x0700
#define DZ_B1800   0x0800
#define DZ_B2000   0x0900
#define DZ_B2400   0x0A00
#define DZ_B3600   0x0B00
#define DZ_B4800   0x0C00
#define DZ_B7200   0x0D00
#define DZ_B9600   0x0E00
#define DZ_CREAD   0x1000
#define DZ_RXENAB   0x1000
#define DZ_CSR   0x00
#define DZ_RBUF   0x08
#define DZ_LPR   0x08
#define DZ_TCR   0x10
#define DZ_MSR   0x18
#define DZ_TDR   0x18
#define DZ_NB_PORT   4
#define DZ_XMIT_SIZE   4096
#define WAKEUP_CHARS   DZ_XMIT_SIZE/4
#define DZ_EVENT_WRITE_WAKEUP   0
#define MIN(a, b)   ((a) < (b) ? (a) : (b))
#define DZ_INITIALIZED   0x80000000
#define DZ_CALLOUT_ACTIVE   0x40000000
#define DZ_NORMAL_ACTIVE   0x20000000
#define DZ_BOOT_AUTOCONF   0x10000000
#define DZ_CLOSING   0x08000000
#define DZ_CTS_FLOW   0x04000000
#define DZ_CHECK_CD   0x02000000
#define DZ_CLOSING_WAIT_INF   0
#define DZ_CLOSING_WAIT_NONE   65535
#define DZ_SPLIT_TERMIOS   0x0008
#define DZ_SESSION_LOCKOUT   0x0100
#define DZ_PGRP_LOCKOUT   0x0200

Functions

static unsigned short dz_in (struct dz_serial *, unsigned)
static void dz_out (struct dz_serial *, unsigned, unsigned short)
static void dz_sched_event (struct dz_serial *, int)
static void receive_chars (struct dz_serial *)
static void transmit_chars (struct dz_serial *)
static void check_modem_status (struct dz_serial *)
static void dz_stop (struct tty_struct *)
static void dz_start (struct tty_struct *)
static void dz_interrupt (int, void *, struct pt_regs *)
static void do_serial_bh (void)
static void do_softint (void *)
static void do_serial_hangup (void *)
static void change_speed (struct dz_serial *)
static void dz_flush_chars (struct tty_struct *)
static void dz_console_print (struct console *, const char *, unsigned int)
static void dz_flush_buffer (struct tty_struct *)
static void dz_throttle (struct tty_struct *)
static void dz_unthrottle (struct tty_struct *)
static void dz_send_xchar (struct tty_struct *, char)
static void shutdown (struct dz_serial *)
static void send_break (struct dz_serial *, int)
static void dz_set_termios (struct tty_struct *, struct termios *)
static void dz_close (struct tty_struct *, struct file *)
static void dz_hangup (struct tty_struct *)
static void show_serial_version (void)
static int dz_write (struct tty_struct *, int, const unsigned char *, int)
static int dz_write_room (struct tty_struct *)
static int dz_chars_in_buffer (struct tty_struct *)
static int startup (struct dz_serial *)
static int get_serial_info (struct dz_serial *, struct serial_struct *)
static int set_serial_info (struct dz_serial *, struct serial_struct *)
static int get_lsr_info (struct dz_serial *, unsigned int *)
static int dz_ioctl (struct tty_struct *, struct file *, unsigned int, unsigned long)
static int block_til_ready (struct tty_struct *, struct file *, struct dz_serial *)
static int dz_open (struct tty_struct *, struct file *)

Variables

static struct dz_serial multi [DZ_NB_PORT]
static struct dz_serialdz_console
static struct tty_driver serial_driver callout_driver
static struct tty_struct * serial_table [DZ_NB_PORT]
static struct termiosserial_termios [DZ_NB_PORT]
static struct termiosserial_termios_locked [DZ_NB_PORT]
static int serial_refcount
static unsigned char * tmp_buf
static struct semaphore tmp_buf_sem = MUTEX
static char * dz_name = "DECstation DZ serial driver version "
static char * dz_version = "1.02"


Define Documentation

#define DZ_B110   0x0200
 

Definition at line 82 of file dz.h.

Referenced by change_speed().

#define DZ_B1200   0x0700
 

Definition at line 87 of file dz.h.

Referenced by change_speed().

#define DZ_B134   0x0300
 

Definition at line 83 of file dz.h.

Referenced by change_speed().

#define DZ_B150   0x0400
 

Definition at line 84 of file dz.h.

Referenced by change_speed().

#define DZ_B1800   0x0800
 

Definition at line 88 of file dz.h.

Referenced by change_speed().

#define DZ_B2000   0x0900
 

Definition at line 89 of file dz.h.

Referenced by change_speed().

#define DZ_B2400   0x0A00
 

Definition at line 90 of file dz.h.

Referenced by change_speed().

#define DZ_B300   0x0500
 

Definition at line 85 of file dz.h.

Referenced by change_speed().

#define DZ_B3600   0x0B00
 

Definition at line 91 of file dz.h.

Referenced by change_speed().

#define DZ_B4800   0x0C00
 

Definition at line 92 of file dz.h.

Referenced by change_speed().

#define DZ_B50   0x0000
 

Definition at line 80 of file dz.h.

Referenced by change_speed().

#define DZ_B600   0x0600
 

Definition at line 86 of file dz.h.

Referenced by change_speed().

#define DZ_B7200   0x0D00
 

Definition at line 93 of file dz.h.

Referenced by change_speed().

#define DZ_B75   0x0100
 

Definition at line 81 of file dz.h.

Referenced by change_speed().

#define DZ_B9600   0x0E00
 

Definition at line 94 of file dz.h.

Referenced by change_speed().

#define DZ_BOOT_AUTOCONF   0x10000000
 

Definition at line 122 of file dz.h.

#define DZ_BRK0   0x0100
 

Definition at line 55 of file dz.h.

#define DZ_BRK1   0x0200
 

Definition at line 56 of file dz.h.

#define DZ_BRK2   0x0400
 

Definition at line 57 of file dz.h.

#define DZ_BRK3   0x0800
 

Definition at line 58 of file dz.h.

#define DZ_CALLOUT_ACTIVE   0x40000000
 

Definition at line 120 of file dz.h.

Referenced by block_til_ready(), dz_close(), and dz_hangup().

#define DZ_CBAUD   0x0E00
 

Definition at line 79 of file dz.h.

#define DZ_CHECK_CD   0x02000000
 

Definition at line 125 of file dz.h.

#define DZ_CLOSING   0x08000000
 

Definition at line 123 of file dz.h.

Referenced by block_til_ready(), and dz_close().

#define DZ_CLOSING_WAIT_INF   0
 

Definition at line 127 of file dz.h.

#define DZ_CLOSING_WAIT_NONE   65535
 

Definition at line 128 of file dz.h.

Referenced by dz_close().

#define DZ_CLR   0x0010
 

Definition at line 21 of file dz.h.

Referenced by __initfunc().

#define DZ_CREAD   0x1000
 

Definition at line 96 of file dz.h.

Referenced by shutdown().

#define DZ_CS5   0x0000
 

Definition at line 69 of file dz.h.

Referenced by change_speed().

#define DZ_CS6   0x0008
 

Definition at line 70 of file dz.h.

Referenced by change_speed().

#define DZ_CS7   0x0010
 

Definition at line 71 of file dz.h.

Referenced by change_speed().

#define DZ_CS8   0x0018
 

Definition at line 72 of file dz.h.

Referenced by change_speed().

#define DZ_CSIZE   0x0018
 

Definition at line 68 of file dz.h.

#define DZ_CSR   0x00
 

Definition at line 101 of file dz.h.

Referenced by __initfunc(), dz_interrupt(), and startup().

#define DZ_CSTOPB   0x0020
 

Definition at line 74 of file dz.h.

Referenced by change_speed().

#define DZ_CTS_FLOW   0x04000000
 

Definition at line 124 of file dz.h.

#define DZ_DVAL   0x8000
 

Definition at line 29 of file dz.h.

Referenced by receive_chars().

#define DZ_EVENT_WRITE_WAKEUP   0
 

Definition at line 114 of file dz.h.

Referenced by do_softint(), and transmit_chars().

#define DZ_FERR   0x2000
 

Definition at line 31 of file dz.h.

Referenced by change_speed(), and receive_chars().

#define DZ_INITIALIZED   0x80000000
 

Definition at line 119 of file dz.h.

#define DZ_KEYBOARD   0x0000
 

Definition at line 63 of file dz.h.

Referenced by dz_open().

#define DZ_LINE_KEYBOARD   0x0001
 

Definition at line 40 of file dz.h.

#define DZ_LINE_MASK   0x0300
 

Definition at line 28 of file dz.h.

#define DZ_LINE_MODEM   0x0004
 

Definition at line 42 of file dz.h.

#define DZ_LINE_MOUSE   0x0002
 

Definition at line 41 of file dz.h.

#define DZ_LINE_PRINTER   0x0008
 

Definition at line 43 of file dz.h.

#define DZ_LPR   0x08
 

Definition at line 103 of file dz.h.

Referenced by change_speed(), get_lsr_info(), and shutdown().

#define DZ_MAINT   0x0008
 

Definition at line 22 of file dz.h.

#define DZ_MODEM   0x0002
 

Definition at line 65 of file dz.h.

Referenced by check_modem_status().

#define DZ_MODEM_DSR   0x0200
 

Definition at line 50 of file dz.h.

#define DZ_MODEM_DTR   0x0400
 

Definition at line 45 of file dz.h.

Referenced by shutdown().

#define DZ_MOUSE   0x0001
 

Definition at line 64 of file dz.h.

Referenced by dz_open().

#define DZ_MSE   0x0020
 

Definition at line 20 of file dz.h.

Referenced by __initfunc(), and startup().

#define DZ_MSR   0x18
 

Definition at line 105 of file dz.h.

Referenced by check_modem_status().

#define DZ_NB_PORT   4
 

Definition at line 109 of file dz.h.

Referenced by __initfunc(), and dz_open().

#define DZ_NORMAL_ACTIVE   0x20000000
 

Definition at line 121 of file dz.h.

Referenced by block_til_ready(), dz_close(), and dz_hangup().

#define DZ_OERR   0x4000
 

Definition at line 30 of file dz.h.

Referenced by change_speed(), and receive_chars().

#define DZ_PARENB   0x0040
 

Definition at line 76 of file dz.h.

Referenced by change_speed().

#define DZ_PARODD   0x0080
 

Definition at line 77 of file dz.h.

Referenced by change_speed().

#define DZ_PERR   0x1000
 

Definition at line 32 of file dz.h.

Referenced by change_speed(), and receive_chars().

#define DZ_PGRP_LOCKOUT   0x0200
 

Definition at line 132 of file dz.h.

Referenced by block_til_ready().

#define DZ_PRINTER   0x0003
 

Definition at line 66 of file dz.h.

#define DZ_RBUF   0x08
 

Definition at line 102 of file dz.h.

Referenced by receive_chars().

#define DZ_RBUF_MASK   0x00FF
 

Definition at line 27 of file dz.h.

#define DZ_RDONE   0x0080
 

Definition at line 18 of file dz.h.

Referenced by dz_interrupt().

#define DZ_RIE   0x0040
 

Definition at line 19 of file dz.h.

Referenced by startup().

#define DZ_RXENAB   0x1000
 

Definition at line 97 of file dz.h.

Referenced by change_speed().

#define DZ_SESSION_LOCKOUT   0x0100
 

Definition at line 131 of file dz.h.

Referenced by block_til_ready().

#define DZ_SPLIT_TERMIOS   0x0008
 

Definition at line 130 of file dz.h.

Referenced by dz_open().

#define DZ_TCR   0x10
 

Definition at line 104 of file dz.h.

Referenced by dz_start(), dz_stop(), send_break(), and shutdown().

#define DZ_TDR   0x18
 

Definition at line 106 of file dz.h.

Referenced by transmit_chars().

#define DZ_TIE   0x4000
 

Definition at line 17 of file dz.h.

Referenced by startup().

#define DZ_TRDY   0x8000
 

Definition at line 16 of file dz.h.

Referenced by dz_interrupt().

#define DZ_XMIT_SIZE   4096
 

Definition at line 111 of file dz.h.

Referenced by dz_write(), dz_write_room(), and transmit_chars().

#define LINE x   )     (x & DZ_LINE_MASK) >> 8
 

Definition at line 34 of file dz.h.

Referenced by dz_interrupt(), and receive_chars().

#define MIN a,
 )     ((a) < (b) ? (a) : (b))
 

Definition at line 117 of file dz.h.

#define UCHAR x   )     (unsigned char)(x & DZ_RBUF_MASK)
 

Definition at line 35 of file dz.h.

Referenced by Alarm(), Atapi2Scsi(), AtapiRequestSense(), autoCmdCmplt(), build_FCP_payload(), BuildLinkServicePayload(), busMstrSGDataXferStart(), CalcLrc(), cpqfcTS_GetNVRAM_data(), cpqfcTS_intr_handler(), cpqfcTSBuildExchange(), cpqfcTSCheckandSnoopFCP(), cpqfcTSCompleteExchange(), CpqTsInitializeTachLite(), CpqTsProcessIMQEntry(), CpqTsReadWriteNVRAM(), CpqTsReadWriteWWN(), dataXferProcessor(), dc390_add_dev(), dc390_BuildSRB(), dc390_CheckEEpromCheckSum(), dc390_CommandPhase(), dc390_DataIn_0(), dc390_DataIO_Comm(), dc390_DataOut_0(), DC390_detect(), dc390_Disconnect(), dc390_DoingSRB_Done(), dc390_EEprom_Override(), dc390_EEpromGetData1(), dc390_EEpromInDO(), dc390_EEpromOutDI(), dc390_EnDisableCE(), DC390_init(), dc390_initACB(), dc390_initAdapter(), dc390_initDCB(), DC390_Interrupt(), dc390_MsgIn_set_sync(), dc390_MsgOutPhase(), dc390_Prepare(), dc390_ReadEEprom(), dc390_Reselect(), DC390_reset(), dc390_restore_ptr(), dc390_set_master(), dc390_SetXferRate(), dc390_SRBdone(), dc390_StartSCSI(), dc390_tagq_blacklist(), DecodeError(), DiagBusMaster(), DiagEEPROM(), DiagXbow(), fcParseLinkStatusCounters(), get_FW_version(), i91u_detect(), IdeCmd(), IdeCmdBoth(), inia100_detect(), inisci(), init_orchid(), initAFlag(), InitFailover(), InlineReadSignature(), Irq_Handler(), IssueReportLunsCommand(), load_FW(), LoadWWN(), MuteAlarm(), orc_abort_srb(), orc_alloc_scb(), orc_device_reset(), orc_release_scb(), Pci2000_Detect(), Pci2000_QueueCommand(), Pci2220i_Detect(), Pci2220i_QueueCommand(), phaseBusFree(), phaseCommand(), phaseDecode(), phaseMsgIn(), phaseMsgOut(), ProcessELS_Reply(), ProcessELS_Request(), Psi240i_Detect(), Psi240i_QueueCommand(), queueFlushSccb(), queueFlushTargSccb(), queueSearchSelect(), queueSelectFail(), ReadChipMemory(), ReadFlash(), receive_chars(), ReconTimerExpiry(), RNVRamData(), scasid(), SccbMgr_abort_sccb(), SccbMgr_bad_isr(), SccbMgr_config_adapter(), SccbMgr_isr(), SccbMgr_scsi_reset(), SccbMgr_sense_adapter(), SccbMgr_start_sccb(), SccbMgr_unload_card(), SccbMgrTableInitAll(), SccbMgrTableInitCard(), SccbMgrTableInitTarget(), schkdd(), scini(), sciso(), scmachid(), scsavdi(), scsel(), scsendi(), Scsi2Atapi(), ScsiReportLunsDone(), scvalq(), scwirod(), scwiros(), scxferc(), sdecm(), se2_rd_all(), se2_update_all(), SendLogins(), SetLoginFields(), setup_SCBs(), sfm(), shandem(), sinits(), sisyncn(), siwidn(), sres(), sresb(), ssel(), ssenss(), sssyncv(), stsyncn(), stwidn(), sxfrp(), TimerExpiry(), tl_i2c_rx_byte(), tl_i2c_tx_byte(), tl_read_i2c_data(), tul_read_eeprom(), tul_se2_instr(), tul_se2_rd(), tul_se2_wait(), tul_se2_wr(), utilEEReadOrg(), utilEESendCmdAddr(), utilEEWrite(), utilEEWriteOnOff(), verify_PLOGI(), verify_PRLI(), Wait(), Wait1Second(), WaitDrq(), WaitReady(), WaitReadyReset(), WalkScatGath(), WriteDataBoth(), WriteSignature(), and XbowInit().

#define WAKEUP_CHARS   DZ_XMIT_SIZE/4
 

Definition at line 112 of file dz.h.


Function Documentation

static int block_til_ready struct tty_struct *  ,
struct file ,
struct dz_serial
[static]
 

static void change_speed struct dz_serial  )  [static]
 

static void check_modem_status struct dz_serial  )  [inline, static]
 

static void do_serial_bh void   )  [static]
 

static void do_serial_hangup void *   )  [static]
 

static void do_softint void *   )  [static]
 

static int dz_chars_in_buffer struct tty_struct *   )  [static]
 

static void dz_close struct tty_struct *  ,
struct file
[static]
 

static void dz_console_print struct console ,
const char *  ,
unsigned  int
[static]
 

static void dz_flush_buffer struct tty_struct *   )  [static]
 

static void dz_flush_chars struct tty_struct *   )  [static]
 

static void dz_hangup struct tty_struct *   )  [static]
 

static unsigned short dz_in struct dz_serial ,
unsigned 
[inline, static]
 

static void dz_interrupt int  ,
void *  ,
struct pt_regs
[static]
 

static int dz_ioctl struct tty_struct *  ,
struct file ,
unsigned  int,
unsigned  long
[static]
 

static int dz_open struct tty_struct *  ,
struct file
[static]
 

static void dz_out struct dz_serial ,
unsigned  ,
unsigned  short
[inline, static]
 

static void dz_sched_event struct dz_serial ,
int 
[inline, static]
 

static void dz_send_xchar struct tty_struct *  ,
char 
[static]
 

static void dz_set_termios struct tty_struct *  ,
struct termios
[static]
 

static void dz_start struct tty_struct *   )  [static]
 

static void dz_stop struct tty_struct *   )  [static]
 

static void dz_throttle struct tty_struct *   )  [static]
 

static void dz_unthrottle struct tty_struct *   )  [static]
 

static int dz_write struct tty_struct *  ,
int  ,
const unsigned char *  ,
int 
[static]
 

static int dz_write_room struct tty_struct *   )  [static]
 

static int get_lsr_info struct dz_serial ,
unsigned int * 
[static]
 

static int get_serial_info struct dz_serial ,
struct serial_struct
[static]
 

static void receive_chars struct dz_serial  )  [inline, static]
 

static void send_break struct dz_serial ,
int 
[static]
 

static int set_serial_info struct dz_serial ,
struct serial_struct
[static]
<