[BACK]Return to ultrix_tty.h CVS log [TXT][DIR] Up to [local] / sys / compat / ultrix

File: [local] / sys / compat / ultrix / ultrix_tty.h (download)

Revision 1.1.1.1 (vendor branch), Tue Mar 4 16:09:29 2008 UTC (16 years, 2 months ago) by nbrk
Branch: OPENBSD_4_2_BASE, MAIN
CVS Tags: jornada-partial-support-wip, HEAD
Changes since 1.1: +0 -0 lines

Import of OpenBSD 4.2 release kernel tree with initial code to support 
Jornada 720/728, StrongARM 1110-based handheld PC.
At this point kernel roots on NFS and boots into vfs_mountroot() and traps.
What is supported:
- glass console, Jornada framebuffer (jfb) works in 16bpp direct color mode
(needs some palette tweaks for non black/white/blue colors, i think)
- saic, SA11x0 interrupt controller (needs cleanup)
- sacom, SA11x0 UART (supported only as boot console for now)
- SA11x0 GPIO controller fully supported (but can't handle multiple interrupt
handlers on one gpio pin)
- sassp, SSP port on SA11x0 that attaches spibus
- Jornada microcontroller (jmcu) to control kbd, battery, etc throught
the SPI bus (wskbd attaches on jmcu, but not tested)
- tod functions seem work
- initial code for SA-1111 (chip companion) : this is TODO

Next important steps, i think:
- gpio and intc on sa1111
- pcmcia support for sa11x0 (and sa1111 help logic)
- REAL root on nfs when we have PCMCIA support (we may use any of supported pccard NICs)
- root on wd0! (using already supported PCMCIA-ATA)

/*	$OpenBSD: ultrix_tty.h,v 1.3 1996/08/02 20:35:54 niklas Exp $	*/
/*	$NetBSD: ultrix_tty.h,v 1.2 1996/01/04 19:03:36 jonathan Exp $	*/

/* From:  NetBSD sunos.h,v 1.4 1995/03/04 09:50:00 pk Exp 	*/


struct ultrix_ttysize {
	int	ts_row;
	int	ts_col;
};

/*
 *  Ultrix includes (BRL-derived?)  SysV compatibile termio
 * as well as termios.  This is the termio structure.
 */

struct ultrix_termio {
	u_short	c_iflag;
	u_short	c_oflag;
	u_short	c_cflag;
	u_short	c_lflag;
	char	c_line;
	unsigned char c_cc[10];	/* 8 for SunOS */
};
#define ULTRIX_TCGETA	_IOR('t', 91, struct ultrix_termio)
#define ULTRIX_TCSETA	_IOW('t', 90, struct ultrix_termio)
#define ULTRIX_TCSETAW	_IOW('t', 89, struct ultrix_termio)
#define ULTRIX_TCSETAF	_IOW('t', 88, struct ultrix_termio)

/*
 * Ultrix POSIX-compatible termios.
 * Very similar to SunOS but with more c_cc entries (gag)
 */
struct ultrix_termios {
	u_long	c_iflag;
	u_long	c_oflag;
	u_long	c_cflag;
	u_long	c_lflag;
	u_char	c_cc[19]; /* 17 for Sun */
	u_char	c_line;
};

#define ULTRIX_TCXONC	_IO('T', 6)
#define ULTRIX_TCFLSH	_IO('T', 7)
#define ULTRIX_TCGETS	_IOR('t', 85, struct ultrix_termios)
#define ULTRIX_TCSETS	_IOW('t', 84, struct ultrix_termios) /* set termios */
#define ULTRIX_TCSETSW	_IOW('t', 83, struct ultrix_termios) /* Drain&set,*/
#define ULTRIX_TCSETSF	_IOW('t', 82, struct ultrix_termios) /*Drainflush,set*/
#define ULTRIX_TCSNDBRK	_IO('T', 12)
#define ULTRIX_TCDRAIN	_IO('T', 13)