~ubuntu-branches/debian/wheezy/linux-2.6/wheezy

« back to all changes in this revision

Viewing changes to drivers/staging/ath6kl/include/common/htc_services.h

  • Committer: Bazaar Package Importer
  • Author(s): Ben Hutchings, Ben Hutchings, Aurelien Jarno, Martin Michlmayr
  • Date: 2011-04-06 13:53:30 UTC
  • mfrom: (43.1.5 sid)
  • Revision ID: james.westby@ubuntu.com-20110406135330-wjufxhd0tvn3zx4z
Tags: 2.6.38-3
[ Ben Hutchings ]
* [ppc64] Add to linux-tools package architectures (Closes: #620124)
* [amd64] Save cr4 to mmu_cr4_features at boot time (Closes: #620284)
* appletalk: Fix bugs introduced when removing use of BKL
* ALSA: Fix yet another race in disconnection
* cciss: Fix lost command issue
* ath9k: Fix kernel panic in AR2427
* ses: Avoid kernel panic when lun 0 is not mapped
* PCI/ACPI: Report ASPM support to BIOS if not disabled from command line

[ Aurelien Jarno ]
* rtlwifi: fix build when PCI is not enabled.

[ Martin Michlmayr ]
* rtlwifi: Eliminate udelay calls with too large values (Closes: #620204)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
//------------------------------------------------------------------------------
 
2
// <copyright file="htc_services.h" company="Atheros">
 
3
//    Copyright (c) 2007 Atheros Corporation.  All rights reserved.
 
4
// 
 
5
//
 
6
// Permission to use, copy, modify, and/or distribute this software for any
 
7
// purpose with or without fee is hereby granted, provided that the above
 
8
// copyright notice and this permission notice appear in all copies.
 
9
//
 
10
// THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
 
11
// WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
 
12
// MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
 
13
// ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
 
14
// WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
 
15
// ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
 
16
// OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 
17
//
 
18
//
 
19
//------------------------------------------------------------------------------
 
20
//==============================================================================
 
21
// Author(s): ="Atheros"
 
22
//==============================================================================
 
23
 
 
24
#ifndef __HTC_SERVICES_H__
 
25
#define __HTC_SERVICES_H__
 
26
 
 
27
/* Current service IDs */
 
28
 
 
29
typedef enum {
 
30
    RSVD_SERVICE_GROUP  = 0,
 
31
    WMI_SERVICE_GROUP   = 1, 
 
32
    
 
33
    HTC_TEST_GROUP = 254,
 
34
    HTC_SERVICE_GROUP_LAST = 255
 
35
}HTC_SERVICE_GROUP_IDS;
 
36
 
 
37
#define MAKE_SERVICE_ID(group,index) \
 
38
            (int)(((int)group << 8) | (int)(index))
 
39
 
 
40
/* NOTE: service ID of 0x0000 is reserved and should never be used */
 
41
#define HTC_CTRL_RSVD_SVC MAKE_SERVICE_ID(RSVD_SERVICE_GROUP,1)
 
42
#define WMI_CONTROL_SVC   MAKE_SERVICE_ID(WMI_SERVICE_GROUP,0)
 
43
#define WMI_DATA_BE_SVC   MAKE_SERVICE_ID(WMI_SERVICE_GROUP,1)
 
44
#define WMI_DATA_BK_SVC   MAKE_SERVICE_ID(WMI_SERVICE_GROUP,2)
 
45
#define WMI_DATA_VI_SVC   MAKE_SERVICE_ID(WMI_SERVICE_GROUP,3)
 
46
#define WMI_DATA_VO_SVC   MAKE_SERVICE_ID(WMI_SERVICE_GROUP,4)
 
47
#define WMI_MAX_SERVICES  5
 
48
 
 
49
/* raw stream service (i.e. flash, tcmd, calibration apps) */
 
50
#define HTC_RAW_STREAMS_SVC MAKE_SERVICE_ID(HTC_TEST_GROUP,0)
 
51
 
 
52
#endif /*HTC_SERVICES_H_*/