Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
wl_pci.h
Go to the documentation of this file.
1 /*******************************************************************************
2  * Agere Systems Inc.
3  * Wireless device driver for Linux (wlags49).
4  *
5  * Copyright (c) 1998-2003 Agere Systems Inc.
6  * All rights reserved.
7  * http://www.agere.com
8  *
9  * Initially developed by TriplePoint, Inc.
10  * http://www.triplepoint.com
11  *
12  *------------------------------------------------------------------------------
13  *
14  * Header describing information required for the driver to support PCI.
15  *
16  *------------------------------------------------------------------------------
17  *
18  * SOFTWARE LICENSE
19  *
20  * This software is provided subject to the following terms and conditions,
21  * which you should read carefully before using the software. Using this
22  * software indicates your acceptance of these terms and conditions. If you do
23  * not agree with these terms and conditions, do not use the software.
24  *
25  * Copyright © 2003 Agere Systems Inc.
26  * All rights reserved.
27  *
28  * Redistribution and use in source or binary forms, with or without
29  * modifications, are permitted provided that the following conditions are met:
30  *
31  * . Redistributions of source code must retain the above copyright notice, this
32  * list of conditions and the following Disclaimer as comments in the code as
33  * well as in the documentation and/or other materials provided with the
34  * distribution.
35  *
36  * . Redistributions in binary form must reproduce the above copyright notice,
37  * this list of conditions and the following Disclaimer in the documentation
38  * and/or other materials provided with the distribution.
39  *
40  * . Neither the name of Agere Systems Inc. nor the names of the contributors
41  * may be used to endorse or promote products derived from this software
42  * without specific prior written permission.
43  *
44  * Disclaimer
45  *
46  * THIS SOFTWARE IS PROVIDED “AS IS” AND ANY EXPRESS OR IMPLIED WARRANTIES,
47  * INCLUDING, BUT NOT LIMITED TO, INFRINGEMENT AND THE IMPLIED WARRANTIES OF
48  * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. ANY
49  * USE, MODIFICATION OR DISTRIBUTION OF THIS SOFTWARE IS SOLELY AT THE USERS OWN
50  * RISK. IN NO EVENT SHALL AGERE SYSTEMS INC. OR CONTRIBUTORS BE LIABLE FOR ANY
51  * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
52  * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
53  * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
54  * ON ANY THEORY OF LIABILITY, INCLUDING, BUT NOT LIMITED TO, CONTRACT, STRICT
55  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
56  * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
57  * DAMAGE.
58  *
59  ******************************************************************************/
60 
61 #ifndef __WL_PCI_H__
62 #define __WL_PCI_H__
63 
64 
65 
66 
67 /*******************************************************************************
68  * constant definitions
69  ******************************************************************************/
70 #define PCI_VENDOR_IDWL_LKM 0x11C1 /* Lucent Microelectronics */
71 #define PCI_DEVICE_ID_WL_LKM_0 0xAB30 /* Mini PCI */
72 #define PCI_DEVICE_ID_WL_LKM_1 0xAB34 /* Mini PCI */
73 #define PCI_DEVICE_ID_WL_LKM_2 0xAB11 /* WARP CardBus */
74 
75 
76 
77 
78 /*******************************************************************************
79  * function prototypes
80  ******************************************************************************/
81 int wl_adapter_init_module( void );
82 
83 void wl_adapter_cleanup_module( void );
84 
85 int wl_adapter_insert( struct net_device *dev );
86 
87 int wl_adapter_open( struct net_device *dev );
88 
89 int wl_adapter_close( struct net_device *dev );
90 
91 int wl_adapter_is_open( struct net_device *dev );
92 
93 
94 #ifdef ENABLE_DMA
95 
96 void wl_pci_dma_hcf_supply( struct wl_private *lp );
97 
98 void wl_pci_dma_hcf_reclaim( struct wl_private *lp );
99 
100 DESC_STRCT * wl_pci_dma_get_tx_packet( struct wl_private *lp );
101 
102 void wl_pci_dma_put_tx_packet( struct wl_private *lp, DESC_STRCT *desc );
103 
104 void wl_pci_dma_hcf_reclaim_tx( struct wl_private *lp );
105 
106 #endif // ENABLE_DMA
107 
108 
109 #endif // __WL_PCI_H__