/***********************************************************************/ /** AudioScience HPI driver Copyright (C) 1997-2011 AudioScience Inc. This program is free software; you can redistribute it and/or modify it under the terms of version 2 of the GNU General Public License as published by the Free Software Foundation; This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA \file Functions for reading DSP code to load into DSP */ /***********************************************************************/ #ifndef _HPIDSPCD_H_ #define _HPIDSPCD_H_ #include "hpi_internal.h" /** Header structure for dsp firmware file This structure must match that used in s2bin.c for generation of asidsp.bin */ /*#ifndef DISABLE_PRAGMA_PACK1 */ /*#pragma pack(push, 1) */ /*#endif */ struct code_header { /** Size in bytes including header */ u32 size; /** File type tag "CODE" == 0x45444F43 */ u32 type; /** Adapter model number */ u32 adapter; /** Firmware version*/ u32 version; /** Data checksum */ u32 checksum; }; /*#ifndef DISABLE_PRAGMA_PACK1 */ /*#pragma pack(pop) */ /*#endif */ /*? Don't need the pragmas? */ compile_time_assert((sizeof(struct code_header) == 20), code_header_size); /** Descriptor for dspcode from firmware loader */ struct dsp_code { /** copy of file header */ struct code_header header; /** Expected number of words in the whole dsp code,INCL header */ u32 block_length; /** Number of words read so far */ u32 word_count; /** internal state of DSP code reader */ struct dsp_code_private *pvt; }; /** Prepare *psDspCode to refer to the requested adapter's firmware. Code file name is obtained from HpiOs_GetDspCodePath \return 0 for success, or error code if requested code is not available */ short hpi_dsp_code_open( /** Code identifier, usually adapter family */ u32 adapter, void *pci_dev, /** Pointer to DSP code control structure */ struct dsp_code *ps_dsp_code, /** Pointer to dword to receive OS specific error code */ u32 *pos_error_code); /** Close the DSP code file */ void hpi_dsp_code_close(struct dsp_code *ps_dsp_code); /** Rewind to the beginning of the DSP code file (for verify) */ void hpi_dsp_code_rewind(struct dsp_code *ps_dsp_code); /** Read one word from the dsp code file \return 0 for success, or error code if eof, or block length exceeded */ short hpi_dsp_code_read_word(struct dsp_code *ps_dsp_code, /**< DSP code descriptor */ u32 *pword /**< Where to store the read word */ ); /** Get a block of dsp code into an internal buffer, and provide a pointer to that buffer. (If dsp code is already an array in memory, it is referenced, not copied.) \return Error if requested number of words are not available */ short hpi_dsp_code_read_block(size_t words_requested, struct dsp_code *ps_dsp_code, /* Pointer to store (Pointer to code buffer) */ u32 **ppblock); #endif 55f412cffd016cc245a74278cb4d7b89bb3bc'>am43xx.h
diff options
context:
space:
mode:
authorPablo Neira <pablo@netfilter.org>2017-01-26 22:56:21 +0100
committerDavid S. Miller <davem@davemloft.net>2017-01-27 10:33:56 -0500
commit92e55f412cffd016cc245a74278cb4d7b89bb3bc (patch)
treeab90e2e59c82daae60d2c953ef6c780e1f6e5550 /include/dt-bindings/pinctrl/am43xx.h
parenta47b70ea86bdeb3091341f5ae3ef580f1a1ad822 (diff)
tcp: don't annotate mark on control socket from tcp_v6_send_response()
Unlike ipv4, this control socket is shared by all cpus so we cannot use it as scratchpad area to annotate the mark that we pass to ip6_xmit(). Add a new parameter to ip6_xmit() to indicate the mark. The SCTP socket family caches the flowi6 structure in the sctp_transport structure, so we cannot use to carry the mark unless we later on reset it back, which I discarded since it looks ugly to me. Fixes: bf99b4ded5f8 ("tcp: fix mark propagation with fwmark_reflect enabled") Suggested-by: Eric Dumazet <eric.dumazet@gmail.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/dt-bindings/pinctrl/am43xx.h')