~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/include/linux/if_ec.h

Version: ~ [ linux-5.10-rc5 ] ~ [ linux-5.9.10 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.79 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.159 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.208 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.245 ] ~ [ linux-4.8.17 ] ~ [ linux-4.7.10 ] ~ [ linux-4.6.7 ] ~ [ linux-4.5.7 ] ~ [ linux-4.4.245 ] ~ [ linux-4.3.6 ] ~ [ linux-4.2.8 ] ~ [ linux-4.1.52 ] ~ [ linux-4.0.9 ] ~ [ linux-3.19.8 ] ~ [ linux-3.18.140 ] ~ [ linux-3.17.8 ] ~ [ linux-3.16.85 ] ~ [ linux-3.15.10 ] ~ [ linux-3.14.79 ] ~ [ linux-3.13.11 ] ~ [ linux-3.12.74 ] ~ [ linux-3.11.10 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.5 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  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 
  8 struct ec_addr
  9 {
 10   unsigned char station;                /* Station number.  */
 11   unsigned char net;                    /* Network number.  */
 12 };
 13 
 14 struct 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 #ifdef __KERNEL__
 36 
 37 #define EC_HLEN                         6
 38 
 39 /* This is what an Econet frame looks like on the wire. */
 40 struct ec_framehdr 
 41 {
 42   unsigned char dst_stn;
 43   unsigned char dst_net;
 44   unsigned char src_stn;
 45   unsigned char src_net;
 46   unsigned char cb;
 47   unsigned char port;
 48 };
 49 
 50 struct econet_opt
 51 {
 52   unsigned char cb;
 53   unsigned char port;
 54   unsigned char station;
 55   unsigned char net;
 56   unsigned short num;
 57 };
 58 
 59 #define ec_sk(__sk) ((struct econet_opt *)(__sk)->sk_protinfo)
 60 
 61 struct ec_device
 62 {
 63   unsigned char station, net;           /* Econet protocol address */
 64 };
 65 
 66 #endif
 67 
 68 #endif
 69 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | Wiki (Japanese) | Wiki (English) | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

osdn.jp