OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [tags/] [LINUX_2_4_26_OR32/] [linux/] [linux-2.4/] [include/] [linux/] [rocket.h] - Rev 1765

Compare with Previous | Blame | View Log

/*
 * This file contains the exported interface of the rocket driver to
 * its configuration program.
 */
 
struct rocket_config {
	int	line;
	int	flags;
	int	closing_wait;
	int	close_delay;
	int	port;
	int	reserved[32];
};
 
struct rocket_ports {
	int	tty_major;
	int	callout_major;
	int	port_bitmap[4];
	int	reserved[32];
};
 
/*
 * Rocketport flags
 */
#define ROCKET_CALLOUT_NOHUP    0x00000001
#define ROCKET_FORCE_CD		0x00000002
#define ROCKET_HUP_NOTIFY	0x00000004
#define ROCKET_SPLIT_TERMIOS	0x00000008
#define ROCKET_SPD_MASK		0x00000070
#define ROCKET_SPD_HI		0x00000010 /* Use 56000 instead of 38400 bps */
#define ROCKET_SPD_VHI		0x00000020 /* Use 115200 instead of 38400 bps*/
#define ROCKET_SPD_SHI		0x00000030 /* Use 230400 instead of 38400 bps*/
#define ROCKET_SPD_WARP	        0x00000040 /* Use 460800 instead of 38400 bps*/
#define ROCKET_SAK		0x00000080
#define ROCKET_SESSION_LOCKOUT	0x00000100
#define ROCKET_PGRP_LOCKOUT	0x00000200
 
#define ROCKET_FLAGS		0x000003FF
 
#define ROCKET_USR_MASK 0x0071	/* Legal flags that non-privileged
				 * users can set or reset */
 
/*
 * For closing_wait and closing_wait2
 */
#define ROCKET_CLOSING_WAIT_NONE	65535
#define ROCKET_CLOSING_WAIT_INF		0
 
/*
 * Rocketport ioctls -- "RP"
 */
#define RCKP_GET_STRUCT		0x00525001
#define RCKP_GET_CONFIG		0x00525002
#define RCKP_SET_CONFIG		0x00525003
#define RCKP_GET_PORTS		0x00525004
 

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.