~ubuntu-branches/ubuntu/precise/linux-ti-omap4/precise

« back to all changes in this revision

Viewing changes to drivers/staging/rt2860/rtmp_type.h

  • Committer: Bazaar Package Importer
  • Author(s): Paolo Pisati
  • Date: 2011-06-29 15:23:51 UTC
  • mfrom: (26.1.1 natty-proposed)
  • Revision ID: james.westby@ubuntu.com-20110629152351-xs96tm303d95rpbk
Tags: 3.0.0-1200.2
* Rebased against 3.0.0-6.7
* BSP from TI based on 3.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 *************************************************************************
3
 
 * Ralink Tech Inc.
4
 
 * 5F., No.36, Taiyuan St., Jhubei City,
5
 
 * Hsinchu County 302,
6
 
 * Taiwan, R.O.C.
7
 
 *
8
 
 * (c) Copyright 2002-2007, Ralink Technology, Inc.
9
 
 *
10
 
 * This program is free software; you can redistribute it and/or modify  *
11
 
 * it under the terms of the GNU General Public License as published by  *
12
 
 * the Free Software Foundation; either version 2 of the License, or     *
13
 
 * (at your option) any later version.                                   *
14
 
 *                                                                       *
15
 
 * This program is distributed in the hope that it will be useful,       *
16
 
 * but WITHOUT ANY WARRANTY; without even the implied warranty of        *
17
 
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
18
 
 * GNU General Public License for more details.                          *
19
 
 *                                                                       *
20
 
 * You should have received a copy of the GNU General Public License     *
21
 
 * along with this program; if not, write to the                         *
22
 
 * Free Software Foundation, Inc.,                                       *
23
 
 * 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
24
 
 *                                                                       *
25
 
 *************************************************************************
26
 
 
27
 
    Module Name:
28
 
    rtmp_type.h
29
 
 
30
 
    Abstract:
31
 
 
32
 
    Revision History:
33
 
    Who         When            What
34
 
    --------    ----------      ----------------------------------------------
35
 
    Name        Date            Modification logs
36
 
    Paul Lin    1-2-2004
37
 
*/
38
 
#ifndef __RTMP_TYPE_H__
39
 
#define __RTMP_TYPE_H__
40
 
 
41
 
#include <linux/types.h>
42
 
 
43
 
#define PACKED  __attribute__ ((packed))
44
 
 
45
 
typedef unsigned char BOOLEAN;
46
 
 
47
 
typedef union _LARGE_INTEGER {
48
 
        struct {
49
 
                u32 LowPart;
50
 
                int HighPart;
51
 
        } u;
52
 
        long long QuadPart;
53
 
} LARGE_INTEGER;
54
 
 
55
 
/* */
56
 
/* Register set pair for initialzation register set definition */
57
 
/* */
58
 
struct rt_rtmp_reg_pair {
59
 
        unsigned long Register;
60
 
        unsigned long Value;
61
 
};
62
 
 
63
 
struct rt_reg_pair {
64
 
        u8 Register;
65
 
        u8 Value;
66
 
};
67
 
 
68
 
/* */
69
 
/* Register set pair for initialzation register set definition */
70
 
/* */
71
 
struct rt_rtmp_rf_regs {
72
 
        u8 Channel;
73
 
        unsigned long R1;
74
 
        unsigned long R2;
75
 
        unsigned long R3;
76
 
        unsigned long R4;
77
 
};
78
 
 
79
 
struct rt_frequency_item {
80
 
        u8 Channel;
81
 
        u8 N;
82
 
        u8 R;
83
 
        u8 K;
84
 
};
85
 
 
86
 
#define STATUS_SUCCESS                          0x00
87
 
#define STATUS_UNSUCCESSFUL             0x01
88
 
 
89
 
#endif /* __RTMP_TYPE_H__ // */