1*607ca46eSDavid Howells /* 2*607ca46eSDavid Howells * INET An implementation of the TCP/IP protocol suite for the LINUX 3*607ca46eSDavid Howells * operating system. INET is implemented using the BSD Socket 4*607ca46eSDavid Howells * interface as the means of communication with the user level. 5*607ca46eSDavid Howells * 6*607ca46eSDavid Howells * Global definitions for Fibre Channel. 7*607ca46eSDavid Howells * 8*607ca46eSDavid Howells * Version: @(#)if_fc.h 0.0 11/20/98 9*607ca46eSDavid Howells * 10*607ca46eSDavid Howells * Author: Fred N. van Kempen, <waltje@uWalt.NL.Mugnet.ORG> 11*607ca46eSDavid Howells * Donald Becker, <becker@super.org> 12*607ca46eSDavid Howells * Peter De Schrijver, <stud11@cc4.kuleuven.ac.be> 13*607ca46eSDavid Howells * Vineet Abraham, <vma@iol.unh.edu> 14*607ca46eSDavid Howells * 15*607ca46eSDavid Howells * This program is free software; you can redistribute it and/or 16*607ca46eSDavid Howells * modify it under the terms of the GNU General Public License 17*607ca46eSDavid Howells * as published by the Free Software Foundation; either version 18*607ca46eSDavid Howells * 2 of the License, or (at your option) any later version. 19*607ca46eSDavid Howells */ 20*607ca46eSDavid Howells #ifndef _LINUX_IF_FC_H 21*607ca46eSDavid Howells #define _LINUX_IF_FC_H 22*607ca46eSDavid Howells 23*607ca46eSDavid Howells #include <linux/types.h> 24*607ca46eSDavid Howells 25*607ca46eSDavid Howells #define FC_ALEN 6 /* Octets in one ethernet addr */ 26*607ca46eSDavid Howells #define FC_HLEN (sizeof(struct fch_hdr)+sizeof(struct fcllc)) 27*607ca46eSDavid Howells #define FC_ID_LEN 3 /* Octets in a Fibre Channel Address */ 28*607ca46eSDavid Howells 29*607ca46eSDavid Howells /* LLC and SNAP constants */ 30*607ca46eSDavid Howells #define EXTENDED_SAP 0xAA 31*607ca46eSDavid Howells #define UI_CMD 0x03 32*607ca46eSDavid Howells 33*607ca46eSDavid Howells /* This is NOT the Fibre Channel frame header. The FC frame header is 34*607ca46eSDavid Howells * constructed in the driver as the Tachyon needs certain fields in 35*607ca46eSDavid Howells * certains positions. So, it can't be generalized here.*/ 36*607ca46eSDavid Howells 37*607ca46eSDavid Howells struct fch_hdr { 38*607ca46eSDavid Howells __u8 daddr[FC_ALEN]; /* destination address */ 39*607ca46eSDavid Howells __u8 saddr[FC_ALEN]; /* source address */ 40*607ca46eSDavid Howells }; 41*607ca46eSDavid Howells 42*607ca46eSDavid Howells /* This is a Fibre Channel LLC structure */ 43*607ca46eSDavid Howells struct fcllc { 44*607ca46eSDavid Howells __u8 dsap; /* destination SAP */ 45*607ca46eSDavid Howells __u8 ssap; /* source SAP */ 46*607ca46eSDavid Howells __u8 llc; /* LLC control field */ 47*607ca46eSDavid Howells __u8 protid[3]; /* protocol id */ 48*607ca46eSDavid Howells __be16 ethertype; /* ether type field */ 49*607ca46eSDavid Howells }; 50*607ca46eSDavid Howells 51*607ca46eSDavid Howells #endif /* _LINUX_IF_FC_H */ 52