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

« back to all changes in this revision

Viewing changes to drivers/staging/solo6x10/solo6010-tw28.h

  • Committer: Bazaar Package Importer
  • Author(s): Ben Hutchings, Ben Hutchings, Aurelien Jarno
  • Date: 2011-06-07 12:14:05 UTC
  • mfrom: (43.1.9 sid)
  • Revision ID: james.westby@ubuntu.com-20110607121405-i3h1rd7nrnd2b73h
Tags: 2.6.39-2
[ Ben Hutchings ]
* [x86] Enable BACKLIGHT_APPLE, replacing BACKLIGHT_MBP_NVIDIA
  (Closes: #627492)
* cgroups: Disable memory resource controller by default. Allow it
  to be enabled using kernel parameter 'cgroup_enable=memory'.
* rt2800usb: Enable support for more USB devices including
  Linksys WUSB600N (Closes: #596626) (this change was accidentally
  omitted from 2.6.39-1)
* [x86] Remove Celeron from list of processors supporting PAE. Most
  'Celeron M' models do not.
* Update debconf template translations:
  - Swedish (Martin Bagge) (Closes: #628932)
  - French (David Prévot) (Closes: #628191)
* aufs: Update for 2.6.39 (Closes: #627837)
* Add stable 2.6.39.1, including:
  - ext4: dont set PageUptodate in ext4_end_bio()
  - pata_cmd64x: fix boot crash on parisc (Closes: #622997, #622745)
  - ext3: Fix fs corruption when make_indexed_dir() fails
  - netfilter: nf_ct_sip: validate Content-Length in TCP SIP messages
  - sctp: fix race between sctp_bind_addr_free() and
    sctp_bind_addr_conflict()
  - sctp: fix memory leak of the ASCONF queue when free asoc
  - md/bitmap: fix saving of events_cleared and other state
  - cdc_acm: Fix oops when Droids MuIn LCD is connected
  - cx88: Fix conversion from BKL to fine-grained locks (Closes: #619827)
  - keys: Set cred->user_ns in key_replace_session_keyring (CVE-2011-2184)
  - tmpfs: fix race between truncate and writepage
  - nfs41: Correct offset for LAYOUTCOMMIT
  - xen/mmu: fix a race window causing leave_mm BUG()
  - ext4: fix possible use-after-free in ext4_remove_li_request()
  For the complete list of changes, see:
   http://www.kernel.org/pub/linux/kernel/v2.6/ChangeLog-2.6.39.1
* Bump ABI to 2
* netfilter: Enable IP_SET, IP_SET_BITMAP_IP, IP_SET_BITMAP_IPMAC,
  IP_SET_BITMAP_PORT, IP_SET_HASH_IP, IP_SET_HASH_IPPORT,
  IP_SET_HASH_IPPORTIP, IP_SET_HASH_IPPORTNET, IP_SET_HASH_NET,
  IP_SET_HASH_NETPORT, IP_SET_LIST_SET, NETFILTER_XT_SET as modules
  (Closes: #629401)

[ Aurelien Jarno ]
* [mipsel/loongson-2f] Disable_SCSI_LPFC to workaround GCC ICE.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 * Copyright (C) 2010 Bluecherry, LLC www.bluecherrydvr.com
3
 
 * Copyright (C) 2010 Ben Collins <bcollins@bluecherry.net>
4
 
 *
5
 
 * This program is free software; you can redistribute it and/or modify
6
 
 * it under the terms of the GNU General Public License as published by
7
 
 * the Free Software Foundation; either version 2 of the License, or
8
 
 * (at your option) any later version.
9
 
 *
10
 
 * This program is distributed in the hope that it will be useful,
11
 
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
 
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
 
 * GNU General Public License for more details.
14
 
 *
15
 
 * You should have received a copy of the GNU General Public License
16
 
 * along with this program; if not, write to the Free Software
17
 
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18
 
 */
19
 
 
20
 
#ifndef __SOLO6010_TW28_H
21
 
#define __SOLO6010_TW28_H
22
 
 
23
 
#include "solo6010.h"
24
 
 
25
 
#define TW_NUM_CHIP                             4
26
 
#define TW_BASE_ADDR                            0x28
27
 
#define TW_CHIP_OFFSET_ADDR(n)                  (TW_BASE_ADDR + (n))
28
 
 
29
 
/* tw2815 */
30
 
#define TW_AV_STAT_ADDR                         0x5a
31
 
#define TW_HUE_ADDR(n)                          (0x07 | ((n) << 4))
32
 
#define TW_SATURATION_ADDR(n)                   (0x08 | ((n) << 4))
33
 
#define TW_CONTRAST_ADDR(n)                     (0x09 | ((n) << 4))
34
 
#define TW_BRIGHTNESS_ADDR(n)                   (0x0a | ((n) << 4))
35
 
#define TW_AUDIO_OUTPUT_VOL_ADDR                0x70
36
 
#define TW_AUDIO_INPUT_GAIN_ADDR(n)             (0x60 + ((n > 1) ? 1 : 0))
37
 
 
38
 
/* tw286x */
39
 
#define TW286X_AV_STAT_ADDR                     0xfd
40
 
#define TW286x_HUE_ADDR(n)                      (0x06 | ((n) << 4))
41
 
#define TW286x_SATURATIONU_ADDR(n)              (0x04 | ((n) << 4))
42
 
#define TW286x_SATURATIONV_ADDR(n)              (0x05 | ((n) << 4))
43
 
#define TW286x_CONTRAST_ADDR(n)                 (0x02 | ((n) << 4))
44
 
#define TW286x_BRIGHTNESS_ADDR(n)               (0x01 | ((n) << 4))
45
 
#define TW286x_SHARPNESS(n)                     (0x03 | ((n) << 4))
46
 
#define TW286x_AUDIO_OUTPUT_VOL_ADDR            0xdf
47
 
#define TW286x_AUDIO_INPUT_GAIN_ADDR(n)         (0xD0 + ((n > 1) ? 1 : 0))
48
 
 
49
 
int solo_tw28_init(struct solo6010_dev *solo_dev);
50
 
 
51
 
int tw28_set_ctrl_val(struct solo6010_dev *solo_dev, u32 ctrl, u8 ch,
52
 
                      s32 val);
53
 
int tw28_get_ctrl_val(struct solo6010_dev *solo_dev, u32 ctrl, u8 ch,
54
 
                      s32 *val);
55
 
 
56
 
u8 tw28_get_audio_gain(struct solo6010_dev *solo_dev, u8 ch);
57
 
void tw28_set_audio_gain(struct solo6010_dev *solo_dev, u8 ch, u8 val);
58
 
int tw28_get_video_status(struct solo6010_dev *solo_dev, u8 ch);
59
 
 
60
 
#if 0
61
 
unsigned int tw2815_get_audio_status(struct SOLO6010 *solo6010);
62
 
void tw2815_Set_AudioOutVol(struct SOLO6010 *solo6010, unsigned int u_val);
63
 
#endif
64
 
 
65
 
#endif /* __SOLO6010_TW28_H */