Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(255)

Side by Side Diff: chromeos/drivers/ath6kl/include/common/epping_test.h

Issue 3579004: ath6kl: Bringing in the upstream version (Closed) Base URL: http://git.chromium.org/git/kernel.git
Patch Set: Created 10 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 //------------------------------------------------------------------------------ 1 //------------------------------------------------------------------------------
2 // <copyright file="epping_test.h" company="Atheros"> 2 // Copyright (c) 2009-2010 Atheros Corporation. All rights reserved.
3 // Copyright (c) 2009 Atheros Corporation. All rights reserved.
4 // 3 //
5 // This program is free software; you can redistribute it and/or modify
6 // it under the terms of the GNU General Public License version 2 as
7 // published by the Free Software Foundation;
8 // 4 //
9 // Software distributed under the License is distributed on an "AS 5 // Permission to use, copy, modify, and/or distribute this software for any
10 // IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or 6 // purpose with or without fee is hereby granted, provided that the above
11 // implied. See the License for the specific language governing 7 // copyright notice and this permission notice appear in all copies.
12 // rights and limitations under the License. 8 //
9 // THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10 // WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11 // MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12 // ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13 // WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14 // ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
15 // OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
13 // 16 //
14 // 17 //
15 //------------------------------------------------------------------------------ 18 //------------------------------------------------------------------------------
16 //============================================================================== 19 //==============================================================================
17 // Author(s): ="Atheros" 20 // Author(s): ="Atheros"
18 // 21 //
19 22
20 /* This file contains shared definitions for the host/target endpoint ping test */ 23 /* This file contains shared definitions for the host/target endpoint ping test */
21 24
22 #ifndef EPPING_TEST_H_ 25 #ifndef EPPING_TEST_H_
23 #define EPPING_TEST_H_ 26 #define EPPING_TEST_H_
24 27
25 #ifndef ATH_TARGET 28 #ifndef ATH_TARGET
26 #include "athstartpack.h" 29 #include "athstartpack.h"
27 #endif 30 #endif
28 31
29 /* alignment to 4-bytes */ 32 /* alignment to 4-bytes */
30 #define EPPING_ALIGNMENT_PAD (((sizeof(HTC_FRAME_HDR) + 3) & (~0x3)) - sizeof(H TC_FRAME_HDR)) 33 #define EPPING_ALIGNMENT_PAD (((sizeof(HTC_FRAME_HDR) + 3) & (~0x3)) - sizeof(H TC_FRAME_HDR))
31 34
35 #ifndef A_OFFSETOF
32 #define A_OFFSETOF(type,field) (int)(&(((type *)NULL)->field)) 36 #define A_OFFSETOF(type,field) (int)(&(((type *)NULL)->field))
37 #endif
33 38
34 #define EPPING_RSVD_FILL 0xCC 39 #define EPPING_RSVD_FILL 0xCC
35 40
36 #define HCI_RSVD_EXPECTED_PKT_TYPE_RECV_OFFSET 7 41 #define HCI_RSVD_EXPECTED_PKT_TYPE_RECV_OFFSET 7
37 42
38 typedef PREPACK struct { 43 typedef PREPACK struct {
39 A_UINT8 _HCIRsvd[8]; /* reserved for HCI packet header (GMBOX) testing */ 44 A_UINT8 _HCIRsvd[8]; /* reserved for HCI packet header (GMBOX) testing */
40 A_UINT8 StreamEcho_h; /* stream no. to echo this packet on (fil led by host) */ 45 A_UINT8 StreamEcho_h; /* stream no. to echo this packet on (fil led by host) */
41 A_UINT8 StreamEchoSent_t; /* stream no. packet was echoed to (fille d by target) 46 A_UINT8 StreamEchoSent_t; /* stream no. packet was echoed to (fille d by target)
42 When echoed: StreamEchoSent_t == Strea mEcho_h */ 47 When echoed: StreamEchoSent_t == Strea mEcho_h */
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 111
107 #define HCI_TRANSPORT_STREAM_NUM 16 /* this number is higher than the define W MM AC classes so we 112 #define HCI_TRANSPORT_STREAM_NUM 16 /* this number is higher than the define W MM AC classes so we
108 can use this to distinguish packets */ 113 can use this to distinguish packets */
109 114
110 #ifndef ATH_TARGET 115 #ifndef ATH_TARGET
111 #include "athendpack.h" 116 #include "athendpack.h"
112 #endif 117 #endif
113 118
114 119
115 #endif /*EPPING_TEST_H_*/ 120 #endif /*EPPING_TEST_H_*/
OLDNEW
« no previous file with comments | « chromeos/drivers/ath6kl/include/common/dsetid.h ('k') | chromeos/drivers/ath6kl/include/common/gmboxif.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698