1 /* -*- mode: c; c-basic-offset: 8; indent-tabs-mode: nil; -*-
2 * vim:expandtab:shiftwidth=8:tabstop=8:cindent:
4 * Copyright (C) 2003 High Performance Computing Center North (HPC2N)
5 * Author: Niklas Edmundsson <nikke@hpc2n.umu.se>
12 #include <linux/config.h>
13 #include <linux/module.h>
14 #include <linux/kernel.h>
16 #include <linux/string.h>
17 #include <linux/stat.h>
18 #include <linux/errno.h>
19 #include <linux/locks.h>
20 #include <linux/unistd.h>
21 #include <linux/init.h>
23 #include <asm/system.h>
24 #include <asm/uaccess.h>
27 #include <linux/file.h>
28 #include <linux/stat.h>
29 #include <linux/list.h>
30 #include <asm/uaccess.h>
31 #include <asm/segment.h>
32 #include <asm/page.h> /* For PAGE_SIZE */
34 #define DEBUG_SUBSYSTEM S_UNDEFINED
36 #include <linux/kp30.h>
37 #include <portals/p30.h>
38 #include <portals/lib-p30.h>
42 #ifndef MAC_SAPID_LUSTRE
43 #define MAC_SAPID_LUSTRE MAC_SAPID_TEST1
44 #endif /* MAC_SAPID_LUSTRE */
46 #define SCIMACNAL_MTU 65536
47 /* FIXME: What is really the MTU of lustre? */
48 #if PTL_MD_MAX_IOV*PAGE_SIZE > SCIMACNAL_MTU
49 #error Max MTU of ScaMAC is 64k, PTL_MD_MAX_IOV*PAGE_SIZE is bigger.
63 lib_msg_t *ktx_cookie;
70 char ksci_shuttingdown;
73 spinlock_t ksci_dispatch_lock;
74 mac_handle_t *ksci_machandle;
77 extern kscimacnal_data_t kscimacnal_data;
78 extern nal_t kscimacnal_api;
79 extern nal_cb_t kscimacnal_lib;
81 void kscimacnal_fwd_packet (void *arg, kpr_fwd_desc_t *fwd);
82 void kscimacnal_rx(mac_handle_t *handle, mac_mblk_t *msg, mac_msg_type_t type, void *userdata);
85 #endif /* _SCIMACNAL_H */