1 #ifndef IPH5526_IP_H
2 #define IPH5526_IP_H
3 
4 #define LLC_SNAP_LEN		0x8
5 
6 /* Offsets into the ARP frame */
7 #define ARP_OPCODE_0	(0x6 + LLC_SNAP_LEN)
8 #define ARP_OPCODE_1	(0x7 + LLC_SNAP_LEN)
9 
10 int iph5526_probe(struct net_device *dev);
11 static int fcdev_init(struct net_device *dev);
12 static int iph5526_open(struct net_device *dev);
13 static int iph5526_close(struct net_device *dev);
14 static int iph5526_send_packet(struct sk_buff *skb, struct net_device *dev);
15 static struct net_device_stats * iph5526_get_stats(struct net_device *dev);
16 static int iph5526_change_mtu(struct net_device *dev, int mtu);
17 
18 
19 static void rx_net_packet(struct fc_info *fi, u_char *buff_addr, int payload_size);
20 static void rx_net_mfs_packet(struct fc_info *fi, struct sk_buff *skb);
21 static int tx_ip_packet(struct sk_buff *skb, unsigned long len, struct fc_info *fi);
22 static int tx_arp_packet(char *data, unsigned long len, struct fc_info *fi);
23 #endif
24 
25