/* * wm8962.h -- WM8962 Soc Audio driver platform data * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. */ #ifndef _WM8962_PDATA_H #define _WM8962_PDATA_H #define WM8962_MAX_GPIO 6 /* Use to set GPIO default values to zero */ #define WM8962_GPIO_SET 0x10000 #define WM8962_GPIO_FN_CLKOUT 0 #define WM8962_GPIO_FN_LOGIC 1 #define WM8962_GPIO_FN_SDOUT 2 #define WM8962_GPIO_FN_IRQ 3 #define WM8962_GPIO_FN_THERMAL 4 #define WM8962_GPIO_FN_PLL2_LOCK 6 #define WM8962_GPIO_FN_PLL3_LOCK 7 #define WM8962_GPIO_FN_FLL_LOCK 9 #define WM8962_GPIO_FN_DRC_ACT 10 #define WM8962_GPIO_FN_WSEQ_DONE 11 #define WM8962_GPIO_FN_ALC_NG_ACT 12 #define WM8962_GPIO_FN_ALC_PEAK_LIMIT 13 #define WM8962_GPIO_FN_ALC_SATURATION 14 #define WM8962_GPIO_FN_ALC_LEVEL_THR 15 #define WM8962_GPIO_FN_ALC_LEVEL_LOCK 16 #define WM8962_GPIO_FN_FIFO_ERR 17 #define WM8962_GPIO_FN_OPCLK 18 #define WM8962_GPIO_FN_DMICCLK 19 #define WM8962_GPIO_FN_DMICDAT 20 #define WM8962_GPIO_FN_MICD 21 #define WM8962_GPIO_FN_MICSCD 22 struct wm8962_pdata { struct clk *mclk; int gpio_base; u32 gpio_init[WM8962_MAX_GPIO]; /* Setup for microphone detection, raw value to be written to * R48(0x30) - only microphone related bits will be updated. * Detection may be enabled here for use with signals brought * out on the GPIOs. */ u32 mic_cfg; bool irq_active_low; bool spk_mono; /* Speaker outputs tied together as mono */ /** * This flag should be set if one or both IN4 inputs is wired * in a DC measurement configuration. */ bool in4_dc_measure; }; #endif '/cgit.cgi/linux/net-next.git/tree/include?h=nds-private-remove&id=a9e419dc7be6997409dca6d1b9daf3cc7046902f'>treecommitdiff
path: root/include
AgeCommit message (Collapse)AuthorFilesLines
2017-02-02netfilter: merge ctinfo into nfct pointer storage areaFlorian Westphal2-17/+15
After this change conntrack operations (lookup, creation, matching from ruleset) only access one instead of two sk_buff cache lines. This works for normal conntracks because those are allocated from a slab that guarantees hw cacheline or 8byte alignment (whatever is larger) so the 3 bits needed for ctinfo won't overlap with nf_conn addresses. Template allocation now does manual address alignment (see previous change) on arches that don't have sufficent kmalloc min alignment. Some spots intentionally use skb->_nfct instead of skb_nfct() helpers, this is to avoid undoing the skb_nfct() use when we remove untracked conntrack object in the future. Signed-off-by: Florian Westphal <fw@strlen.de> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
2017-02-02netfilter: guarantee 8 byte minalign for template addressesFlorian Westphal1-0/+2
The next change will merge skb->nfct pointer and skb->nfctinfo status bits into single skb->_nfct (unsigned long) area. For this to work nf_conn addresses must always be aligned at least on an 8 byte boundary since we will need the lower 3bits to store nfctinfo. Conntrack templates are allocated via kmalloc. kbuild test robot reported BUILD_BUG_ON failed: NFCT_INFOMASK >= ARCH_KMALLOC_MINALIGN on v1 of this patchset, so not all platforms meet this requirement. Do manual alignment if needed, the alignment offset is stored in the nf_conn entry protocol area. This works because templates are not handed off to L4 protocol trackers. Reported-by: kbuild test robot <fengguang.wu@intel.com> Signed-off-by: Florian Westphal <fw@strlen.de> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
2017-02-02netfilter: add and use nf_ct_set helperFlorian Westphal2-2/+9
Add a helper to assign a nf_conn entry and the ctinfo bits to an sk_buff. This avoids changing code in followup patch that merges skb->nfct and skb->nfctinfo into skb->_nfct. Signed-off-by: Florian Westphal <fw@strlen.de> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
2017-02-02skbuff: add and use skb_nfct helperFlorian Westphal2-4/+11
Followup patch renames skb->nfct and changes its type so add a helper to avoid intrusive rename change later. Signed-off-by: Florian Westphal <fw@strlen.de> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
2017-02-02netfilter: reduce direct skb->nfct usageFlorian Westphal1-3/+6
Next patch makes direct skb->nfct access illegal, reduce noise in next patch by using accessors we already have. Signed-off-by: Florian Westphal <fw@strlen.de> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
2017-02-02netfilter: conntrack: no need to pass ctinfo to error handlerFlorian Westphal1-1/+1
It is never accessed for reading and the only places that write to it are the icmp(6) handlers, which also set skb->nfct (and skb->nfctinfo). The conntrack core specifically checks for attached skb->nfct after ->error() invocation and returns early in this case. Signed-off-by: Florian Westphal <fw@strlen.de> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>