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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [ecos-2.0/] [packages/] [net/] [tcpip/] [v2_0/] [include/] [sys/] [sockio.h] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1254 phoenix
//==========================================================================
2
//
3
//      include/sys/sockio.h
4
//
5
//      
6
//
7
//==========================================================================
8
//####BSDCOPYRIGHTBEGIN####
9
//
10
// -------------------------------------------
11
//
12
// Portions of this software may have been derived from OpenBSD or other sources,
13
// and are covered by the appropriate copyright disclaimers included herein.
14
//
15
// -------------------------------------------
16
//
17
//####BSDCOPYRIGHTEND####
18
//==========================================================================
19
//#####DESCRIPTIONBEGIN####
20
//
21
// Author(s):    gthomas
22
// Contributors: gthomas
23
// Date:         2000-01-10
24
// Purpose:      
25
// Description:  
26
//              
27
//
28
//####DESCRIPTIONEND####
29
//
30
//==========================================================================
31
 
32
 
33
/*      $OpenBSD: sockio.h,v 1.10 1999/12/08 06:50:24 itojun Exp $      */
34
/*      $NetBSD: sockio.h,v 1.5 1995/08/23 00:40:47 thorpej Exp $       */
35
 
36
/*-
37
 * Copyright (c) 1982, 1986, 1990, 1993, 1994
38
 *      The Regents of the University of California.  All rights reserved.
39
 *
40
 * Redistribution and use in source and binary forms, with or without
41
 * modification, are permitted provided that the following conditions
42
 * are met:
43
 * 1. Redistributions of source code must retain the above copyright
44
 *    notice, this list of conditions and the following disclaimer.
45
 * 2. Redistributions in binary form must reproduce the above copyright
46
 *    notice, this list of conditions and the following disclaimer in the
47
 *    documentation and/or other materials provided with the distribution.
48
 * 3. All advertising materials mentioning features or use of this software
49
 *    must display the following acknowledgement:
50
 *      This product includes software developed by the University of
51
 *      California, Berkeley and its contributors.
52
 * 4. Neither the name of the University nor the names of its contributors
53
 *    may be used to endorse or promote products derived from this software
54
 *    without specific prior written permission.
55
 *
56
 * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
57
 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
58
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
59
 * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
60
 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
61
 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
62
 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
63
 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
64
 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
65
 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
66
 * SUCH DAMAGE.
67
 *
68
 *      @(#)sockio.h    8.1 (Berkeley) 3/28/94
69
 */
70
 
71
#ifndef _SYS_SOCKIO_H_
72
#define _SYS_SOCKIO_H_
73
 
74
#include <sys/ioccom.h>
75
 
76
/* Socket ioctl's. */
77
#define SIOCSHIWAT       _IOW('s',  0, int)             /* set high watermark */
78
#define SIOCGHIWAT       _IOR('s',  1, int)             /* get high watermark */
79
#define SIOCSLOWAT       _IOW('s',  2, int)             /* set low watermark */
80
#define SIOCGLOWAT       _IOR('s',  3, int)             /* get low watermark */
81
#define SIOCATMARK       _IOR('s',  7, int)             /* at oob mark? */
82
#define SIOCSPGRP        _IOW('s',  8, int)             /* set process group */
83
#define SIOCGPGRP        _IOR('s',  9, int)             /* get process group */
84
 
85
#ifdef __ECOS
86
#define SIOCADDRT        _IOW('r', 10, struct ecos_rtentry)     /* add route */
87
#define SIOCDELRT        _IOW('r', 11, struct ecos_rtentry)     /* delete route */
88
#else
89
#define SIOCADDRT        _IOW('r', 10, struct ortentry) /* add route */
90
#define SIOCDELRT        _IOW('r', 11, struct ortentry) /* delete route */
91
#endif
92
 
93
#define SIOCSIFADDR      _IOW('i', 12, struct ifreq)    /* set ifnet address */
94
#define OSIOCGIFADDR    _IOWR('i', 13, struct ifreq)    /* get ifnet address */
95
#define SIOCGIFADDR     _IOWR('i', 33, struct ifreq)    /* get ifnet address */
96
#define SIOCGIFHWADDR   _IOWR('i', 15, struct ifreq)    /* get MAC address */
97
#ifdef __ECOS
98
#define SIOCSIFHWADDR    _IOW('i',101, struct ifreq)    /* set MAC address */
99
/* NB these two take a struct ifreq followed by the useful data */
100
#define SIOCGIFSTATSUD  _IOWR('i',102, struct ifreq)    /* get uptodate if stats */
101
#define SIOCGIFSTATS    _IOWR('i',103, struct ifreq)    /* get interface stats */
102
#endif
103
#define SIOCSIFDSTADDR   _IOW('i', 14, struct ifreq)    /* set p-p address */
104
#define OSIOCGIFDSTADDR _IOWR('i', 15, struct ifreq)    /* get p-p address */
105
#define SIOCGIFDSTADDR  _IOWR('i', 34, struct ifreq)    /* get p-p address */
106
#define SIOCSIFFLAGS     _IOW('i', 16, struct ifreq)    /* set ifnet flags */
107
#define SIOCGIFFLAGS    _IOWR('i', 17, struct ifreq)    /* get ifnet flags */
108
#define OSIOCGIFBRDADDR _IOWR('i', 18, struct ifreq)    /* get broadcast addr */
109
#define SIOCGIFBRDADDR  _IOWR('i', 35, struct ifreq)    /* get broadcast addr */
110
#define SIOCSIFBRDADDR   _IOW('i', 19, struct ifreq)    /* set broadcast addr */
111
#define OSIOCGIFCONF    _IOWR('i', 20, struct ifconf)   /* get ifnet list */
112
#define SIOCGIFCONF     _IOWR('i', 36, struct ifconf)   /* get ifnet list */
113
#define OSIOCGIFNETMASK _IOWR('i', 21, struct ifreq)    /* get net addr mask */
114
#define SIOCGIFNETMASK  _IOWR('i', 37, struct ifreq)    /* get net addr mask */
115
#define SIOCSIFNETMASK   _IOW('i', 22, struct ifreq)    /* set net addr mask */
116
#define SIOCGIFMETRIC   _IOWR('i', 23, struct ifreq)    /* get IF metric */
117
#define SIOCSIFMETRIC    _IOW('i', 24, struct ifreq)    /* set IF metric */
118
#define SIOCDIFADDR      _IOW('i', 25, struct ifreq)    /* delete IF addr */
119
#define SIOCAIFADDR      _IOW('i', 26, struct ifaliasreq)/* add/chg IF alias */
120
#define SIOCGIFDATA     _IOWR('i', 27, struct ifreq)    /* get if_data */
121
 
122
/* KAME IPv6 */
123
/* SIOCAIFALIAS? */
124
#define SIOCALIFADDR     _IOW('i', 28, struct if_laddrreq) /* add IF addr */
125
#define SIOCGLIFADDR    _IOWR('i', 29, struct if_laddrreq) /* get IF addr */
126
#define SIOCDLIFADDR     _IOW('i', 30, struct if_laddrreq) /* delete IF addr */
127
 
128
#define SIOCADDMULTI     _IOW('i', 49, struct ifreq)    /* add m'cast addr */
129
#define SIOCDELMULTI     _IOW('i', 50, struct ifreq)    /* del m'cast addr */
130
#define SIOCGETVIFCNT   _IOWR('u', 51, struct sioc_vif_req)/* vif pkt cnt */
131
#define SIOCGETSGCNT    _IOWR('u', 52, struct sioc_sg_req) /* sg pkt cnt */
132
 
133
#define SIOCSIFMEDIA    _IOWR('i', 53, struct ifreq)    /* set net media */
134
#define SIOCGIFMEDIA    _IOWR('i', 54, struct ifmediareq) /* get net media */
135
 
136
#define SIOCSIFPHYADDR   _IOW('i', 70, struct ifaliasreq) /* set gif addres */
137
#define SIOCGIFPSRCADDR _IOWR('i', 71, struct ifreq)    /* get gif psrc addr */
138
#define SIOCGIFPDSTADDR _IOWR('i', 72, struct ifreq)    /* get gif pdst addr */
139
 
140
#define SIOCBRDGADD     _IOWR('i', 60, struct ifbreq)   /* add bridge ifs */
141
#define SIOCBRDGDEL     _IOWR('i', 61, struct ifbreq)   /* del bridge ifs */
142
#define SIOCBRDGGIFFLGS _IOWR('i', 62, struct ifbreq)   /* get brdg if flags */
143
#define SIOCBRDGSIFFLGS _IOWR('i', 63, struct ifbreq)   /* set brdg if flags */
144
#define SIOCBRDGSCACHE  _IOWR('i', 64, struct ifbcachereq) /* set cache size */
145
#define SIOCBRDGGCACHE  _IOWR('i', 65, struct ifbcachereq) /* get cache size */
146
#define SIOCBRDGIFS     _IOWR('i', 66, struct ifbreq)   /* get member ifs */
147
#define SIOCBRDGRTS     _IOWR('i', 67, struct ifbaconf) /* get addresses */
148
#define SIOCBRDGSADDR   _IOWR('i', 68, struct ifbareq)  /* set addr flags */
149
#define SIOCBRDGSTO     _IOWR('i', 69, struct ifbcachetoreq) /* cache timeout */
150
#define SIOCBRDGGTO     _IOWR('i', 70, struct ifbcachetoreq) /* cache timeout */
151
#define SIOCBRDGDADDR   _IOWR('i', 71, struct ifbareq)  /* delete addr */
152
#define SIOCBRDGFLUSH   _IOWR('i', 72, struct ifbreq)   /* flush addr cache */
153
 
154
#define SIOCBRDGARL     _IOWR('i', 77, struct ifbrlreq) /* add bridge rule */
155
#define SIOCBRDGFRL     _IOWR('i', 78, struct ifbrlreq) /* flush brdg rules */
156
#define SIOCBRDGGRL     _IOWR('i', 79, struct ifbrlconf)/* get bridge rules */
157
 
158
#define SIOCSIFMTU       _IOW('i', 127, struct ifreq)   /* set ifnet mtu */
159
#define SIOCGIFMTU      _IOWR('i', 126, struct ifreq)   /* get ifnet mtu */
160
#define SIOCSIFASYNCMAP  _IOW('i', 125, struct ifreq)   /* set ppp asyncmap */
161
#define SIOCGIFASYNCMAP _IOWR('i', 124, struct ifreq)   /* get ppp asyncmap */
162
 
163
#ifdef __ECOS
164
#define FIONBIO          _IOW('s', 80, int)             /* set non-blocking I/O */
165
#define FIOASYNC         _IOW('s', 81, int)             /* set async I/O */
166
#define FIONREAD         _IOR('s', 82, int)             /* get number of avail chars */
167
#endif
168
 
169
#endif /* !_SYS_SOCKIO_H_ */

powered by: WebSVN 2.1.0

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