File: iph5526_ip.h

package info (click to toggle)
kernel-source-2.2.19 2.2.19.1-4woody1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 92,100 kB
  • ctags: 276,892
  • sloc: ansic: 1,710,384; asm: 58,709; makefile: 10,198; sh: 2,398; perl: 907; tcl: 570; lisp: 218; cpp: 186; awk: 133; sed: 72
file content (25 lines) | stat: -rw-r--r-- 966 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#ifndef IPH5526_IP_H
#define IPH5526_IP_H

#define LLC_SNAP_LEN		0x8

/* Offsets into the ARP frame */
#define ARP_OPCODE_0	(0x6 + LLC_SNAP_LEN)
#define ARP_OPCODE_1	(0x7 + LLC_SNAP_LEN)

int iph5526_probe(struct device *dev);
static int fcdev_init(struct device *dev);
static int iph5526_open(struct device *dev);
static int iph5526_close(struct device *dev);
static int iph5526_send_packet(struct sk_buff *skb, struct device *dev);
static struct net_device_stats * iph5526_get_stats(struct device *dev);
static int iph5526_change_mtu(struct device *dev, int mtu);


static void rx_net_packet(struct fc_info *fi, u_char *buff_addr, int payload_size);
static void rx_net_mfs_packet(struct fc_info *fi, struct sk_buff *skb);
unsigned short fc_type_trans(struct sk_buff *skb, struct device *dev); 
static int tx_ip_packet(struct sk_buff *skb, unsigned long len, struct fc_info *fi);
static int tx_arp_packet(char *data, unsigned long len, struct fc_info *fi);
#endif