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

« back to all changes in this revision

Viewing changes to drivers/staging/tidspbridge/include/dspbridge/mbx_sh.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:
110
110
#ifndef _MBX_SH_H
111
111
#define _MBX_SH_H
112
112
 
113
 
#define MBX_CLASS_MSK      0xFC00       /* Class bits are 10 thru 15 */
114
 
#define MBX_VALUE_MSK      0x03FF       /* Value is 0 thru 9 */
115
 
 
116
 
#define MBX_DEH_CLASS      0x0000       /* DEH owns Mbx INTR */
117
 
#define MBX_DDMA_CLASS     0x0400       /* DSP-DMA link drvr chnls owns INTR */
118
113
#define MBX_PCPY_CLASS     0x0800       /* PROC-COPY  " */
119
 
#define MBX_ZCPY_CLASS     0x1000       /* ZERO-COPY  " */
120
114
#define MBX_PM_CLASS       0x2000       /* Power Management */
121
115
#define MBX_DBG_CLASS      0x4000       /* For debugging purpose */
122
116
 
128
122
#define MBX_DEH_USERS_BASE  0x100       /* 256 */
129
123
#define MBX_DEH_LIMIT       0x3FF       /* 1023 */
130
124
#define MBX_DEH_RESET       0x101       /* DSP RESET (DEH) */
131
 
#define MBX_DEH_EMMU        0X103       /*DSP MMU FAULT RECOVERY */
132
125
 
133
126
/*
134
127
 *  Link driver command/status codes.
135
128
 */
136
 
/* DSP-DMA */
137
 
#define MBX_DDMA_NUMCHNLBITS 5  /* # chnl Id: # bits available */
138
 
#define MBX_DDMA_CHNLSHIFT   0  /* # of bits to shift */
139
 
#define MBX_DDMA_CHNLMSK     0x01F      /* bits 0 thru 4 */
140
 
 
141
 
#define MBX_DDMA_NUMBUFBITS  5  /* buffer index: # of bits avail */
142
 
#define MBX_DDMA_BUFSHIFT    (MBX_DDMA_NUMCHNLBITS + MBX_DDMA_CHNLSHIFT)
143
 
#define MBX_DDMA_BUFMSK      0x3E0      /* bits 5 thru 9 */
144
 
 
145
 
/* Zero-Copy */
146
 
#define MBX_ZCPY_NUMCHNLBITS 5  /* # chnl Id: # bits available */
147
 
#define MBX_ZCPY_CHNLSHIFT   0  /* # of bits to shift */
148
 
#define MBX_ZCPY_CHNLMSK     0x01F      /* bits 0 thru 4 */
149
129
 
150
130
/*  Power Management Commands */
151
131
#define MBX_PM_DSPIDLE                  (MBX_PM_CLASS + 0x0)
152
132
#define MBX_PM_DSPWAKEUP                (MBX_PM_CLASS + 0x1)
153
133
#define MBX_PM_EMERGENCYSLEEP           (MBX_PM_CLASS + 0x2)
154
 
#define MBX_PM_SLEEPUNTILRESTART        (MBX_PM_CLASS + 0x3)
155
 
#define MBX_PM_DSPGLOBALIDLE_OFF        (MBX_PM_CLASS + 0x4)
156
 
#define MBX_PM_DSPGLOBALIDLE_ON         (MBX_PM_CLASS + 0x5)
157
134
#define MBX_PM_SETPOINT_PRENOTIFY       (MBX_PM_CLASS + 0x6)
158
135
#define MBX_PM_SETPOINT_POSTNOTIFY      (MBX_PM_CLASS + 0x7)
159
 
#define MBX_PM_DSPRETN                  (MBX_PM_CLASS + 0x8)
160
136
#define MBX_PM_DSPRETENTION        (MBX_PM_CLASS + 0x8)
161
137
#define MBX_PM_DSPHIBERNATE        (MBX_PM_CLASS + 0x9)
162
138
#define MBX_PM_HIBERNATE_EN        (MBX_PM_CLASS + 0xA)
163
139
#define MBX_PM_OPP_REQ                  (MBX_PM_CLASS + 0xB)
164
 
#define MBX_PM_OPP_CHG                  (MBX_PM_CLASS + 0xC)
165
 
 
166
 
#define MBX_PM_TYPE_MASK 0x0300
167
 
#define MBX_PM_TYPE_PWR_CHNG 0x0100
168
 
#define MBX_PM_TYPE_OPP_PRECHNG 0x0200
169
 
#define MBX_PM_TYPE_OPP_POSTCHNG 0x0300
170
 
#define MBX_PM_TYPE_OPP_MASK 0x0300
171
 
#define MBX_PM_OPP_PRECHNG (MBX_PM_CLASS | MBX_PM_TYPE_OPP_PRECHNG)
172
 
/* DSP to MPU */
173
 
#define MBX_PM_OPP_CHNG(OPP) (MBX_PM_CLASS | MBX_PM_TYPE_OPP_PRECHNG | (OPP))
174
 
#define MBX_PM_RET (MBX_PM_CLASS | MBX_PM_TYPE_PWR_CHNG | 0x0006)
175
 
#define MBX_PM_HIB (MBX_PM_CLASS | MBX_PM_TYPE_PWR_CHNG | 0x0002)
176
 
#define MBX_PM_OPP1 0
177
 
#define MBX_PM_OPP2 1
178
 
#define MBX_PM_OPP3 2
179
 
#define MBX_PM_OPP4 3
180
140
 
181
141
/* Bridge Debug Commands */
182
142
#define MBX_DBG_SYSPRINTF       (MBX_DBG_CLASS + 0x0)