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
10int iph5526_probe(struct net_device *dev);
11static int fcdev_init(struct net_device *dev);
12static int iph5526_open(struct net_device *dev);
13static int iph5526_close(struct net_device *dev);
14static int iph5526_send_packet(struct sk_buff *skb, struct net_device *dev);
15static struct net_device_stats * iph5526_get_stats(struct net_device *dev);
16static int iph5526_change_mtu(struct net_device *dev, int mtu);
17
18
19static void rx_net_packet(struct fc_info *fi, u_char *buff_addr, int payload_size);
20static void rx_net_mfs_packet(struct fc_info *fi, struct sk_buff *skb);
21unsigned short fc_type_trans(struct sk_buff *skb, struct net_device *dev);
22static int tx_ip_packet(struct sk_buff *skb, unsigned long len, struct fc_info *fi);
23static int tx_arp_packet(char *data, unsigned long len, struct fc_info *fi);
24#endif
25
26