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 /* scimac has an annoying MTU limit of 64k */
47 #define SCIMACNAL_MTU 65536
48 #if PTL_MTU > SCIMACNAL_MTU
49 #error Max MTU of ScaMAC is 64k, PTL_MTU is bigger.
63 lib_msg_t *ktx_cookie;
65 /* To be able to kunmap() kmap():ed pages */
66 struct page *ktx_kpages[PTL_MD_MAX_IOV];
73 char ksci_shuttingdown;
76 spinlock_t ksci_dispatch_lock;
77 mac_handle_t *ksci_machandle;
80 extern kscimacnal_data_t kscimacnal_data;
81 extern nal_t kscimacnal_api;
82 extern nal_cb_t kscimacnal_lib;
84 void kscimacnal_fwd_packet (void *arg, kpr_fwd_desc_t *fwd);
85 void kscimacnal_rx(mac_handle_t *handle, mac_mblk_t *msg, mac_msg_type_t type, void *userdata);
88 #endif /* _SCIMACNAL_H */