source: svn/trunk/newcon3bcm2_21bu/toolchain/mips-linux-uclibc/include/linux/if_ec.h

Last change on this file was 2, checked in by phkim, 11 years ago

1.phkim

  1. revision copy newcon3sk r27
  • Property svn:executable set to *
File size: 900 bytes
Line 
1/* Definitions for Econet sockets. */
2
3#ifndef __LINUX_IF_EC
4#define __LINUX_IF_EC
5
6/* User visible stuff. Glibc provides its own but libc5 folk will use these */
7
8struct ec_addr
9{
10  unsigned char station;                /* Station number.  */
11  unsigned char net;                    /* Network number.  */
12};
13
14struct sockaddr_ec
15{
16  unsigned short sec_family;
17  unsigned char port;                   /* Port number.  */
18  unsigned char cb;                     /* Control/flag byte.  */
19  unsigned char type;                   /* Type of message.  */
20  struct ec_addr addr;
21  unsigned long cookie;
22};
23
24#define ECTYPE_PACKET_RECEIVED          0       /* Packet received */
25#define ECTYPE_TRANSMIT_STATUS          0x10    /* Transmit completed,
26                                                   low nibble holds status */
27
28#define ECTYPE_TRANSMIT_OK              1
29#define ECTYPE_TRANSMIT_NOT_LISTENING   2
30#define ECTYPE_TRANSMIT_NET_ERROR       3
31#define ECTYPE_TRANSMIT_NO_CLOCK        4
32#define ECTYPE_TRANSMIT_LINE_JAMMED     5
33#define ECTYPE_TRANSMIT_NOT_PRESENT     6
34
35#endif
Note: See TracBrowser for help on using the repository browser.