Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
pmcc4_sysdep.h
Go to the documentation of this file.
1 #ifndef _INC_PMCC4_SYSDEP_H_
2 #define _INC_PMCC4_SYSDEP_H_
3 
4 /*-----------------------------------------------------------------------------
5  * pmcc4_sysdep.h -
6  *
7  * Copyright (C) 2005 SBE, Inc.
8  *
9  * This program is free software; you can redistribute it and/or modify
10  * it under the terms of the GNU General Public License as published by
11  * the Free Software Foundation; either version 2 of the License, or
12  * (at your option) any later version.
13  *
14  * This program is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17  * GNU General Public License for more details.
18  */
19 
20 /* reduce multiple autoconf entries to a single definition */
21 
22 #ifdef CONFIG_SBE_PMCC4_HDLC_V7_MODULE
23 #undef CONFIG_SBE_PMCC4_HDLC_V7
24 #define CONFIG_SBE_PMCC4_HDLC_V7 1
25 #endif
26 
27 #ifdef CONFIG_SBE_PMCC4_NCOMM_MODULE
28 #undef CONFIG_SBE_PMCC4_NCOMM
29 #define CONFIG_SBE_PMCC4_NCOMM 1
30 #endif
31 
32 
33 /* FLUSH MACROS - if using ioremap_nocache(), then these can be NOOPS,
34  * otherwise a memory barrier needs to be inserted.
35  */
36 
37 #define FLUSH_PCI_READ() rmb()
38 #define FLUSH_PCI_WRITE() wmb()
39 #define FLUSH_MEM_READ() rmb()
40 #define FLUSH_MEM_WRITE() wmb()
41 
42 
43 /*
44  * System dependent callbacks routines, not inlined...
45  * For inlined system dependent routines, see include/sbecom_inlinux_linux.h
46  */
47 
48 /*
49  * passes received memory token back to the system, <user> is parameter from
50  * sd_new_chan() used to create the channel which the data arrived on
51  */
52 
53 void sd_recv_consume(void *token, size_t len, void *user);
54 
55 void sd_disable_xmit (void *user);
56 void sd_enable_xmit (void *user);
57 int sd_line_is_ok (void *user);
58 void sd_line_is_up (void *user);
59 void sd_line_is_down (void *user);
60 int sd_queue_stopped (void *user);
61 
62 #endif /*** _INC_PMCC4_SYSDEP_H_ ***/