Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs | Enumerations | Functions | Variables
hpi_internal.h File Reference
#include "hpi.h"
#include "hpios.h"

Go to the source code of this file.

Data Structures

struct  hpi_pci
 
struct  hpi_resource
 
struct  hpi_msg_format
 
struct  hpi_msg_data
 
struct  hpi_data_legacy32
 
struct  hpi_buffer
 
struct  hpi_hostbuffer_status
 
struct  hpi_streamid
 
struct  hpi_punchinout
 
struct  hpi_subsys_msg
 
struct  hpi_subsys_res
 
union  hpi_adapterx_msg
 
struct  hpi_adapter_res
 
union  hpi_adapterx_res
 
struct  hpi_stream_msg
 
struct  hpi_stream_res
 
struct  hpi_mixer_msg
 
struct  hpi_mixer_res
 
union  hpi_mixerx_msg
 
union  hpi_mixerx_res
 
struct  hpi_control_msg
 
struct  hpi_control_union_msg
 
struct  hpi_control_res
 
union  hpi_control_union_res
 
struct  hpi_nvmemory_msg
 
struct  hpi_nvmemory_res
 
struct  hpi_gpio_msg
 
struct  hpi_gpio_res
 
struct  hpi_async_msg
 
struct  hpi_async_res
 
struct  hpi_watchdog_msg
 
struct  hpi_watchdog_res
 
struct  hpi_clock_msg
 
struct  hpi_clock_res
 
struct  hpi_profile_msg
 
struct  hpi_profile_res_open
 
struct  hpi_profile_res_time
 
struct  hpi_profile_res_name
 
struct  hpi_profile_res
 
struct  hpi_message_header
 
struct  hpi_message
 
struct  hpi_response_header
 
struct  hpi_response
 
struct  hpi_msg_adapter_get_info
 
struct  hpi_res_adapter_get_info
 
struct  hpi_res_adapter_debug_read
 
struct  hpi_msg_cobranet_hmi
 
struct  hpi_msg_cobranet_hmiwrite
 
struct  hpi_msg_cobranet_hmiread
 
struct  hpi_res_cobranet_hmiread
 
struct  hpi_msg_payload_v0
 
struct  hpi_res_payload_v0
 
union  hpi_message_buffer_v1
 
union  hpi_response_buffer_v1
 
struct  hpi_control_defn
 
struct  hpi_control_cache_info
 
struct  hpi_control_cache_vol
 
struct  hpi_control_cache_meter
 
struct  hpi_control_cache_channelmode
 
struct  hpi_control_cache_mux
 
struct  hpi_control_cache_level
 
struct  hpi_control_cache_tuner
 
struct  hpi_control_cache_aes3rx
 
struct  hpi_control_cache_aes3tx
 
struct  hpi_control_cache_tonedetector
 
struct  hpi_control_cache_silencedetector
 
struct  hpi_control_cache_sampleclock
 
struct  hpi_control_cache_microphone
 
struct  hpi_control_cache_single
 
struct  hpi_control_cache_pad
 
struct  hpi_fifo_buffer
 

Macros

#define HPI_MAX_ADAPTER_MEM_SPACES   (2)
 
#define compile_time_assert(cond, msg)   typedef char ASSERT_##msg[(cond) ? 1 : -1]
 
#define HPI_CTL_ATTR(ctl, ai)   ((HPI_CONTROL_##ctl << 8) + ai)
 
#define HPI_CTL_ATTR_INDEX(i)   (i & 0xff)
 
#define HPI_CTL_ATTR_CONTROL(i)   (i >> 8)
 
#define HPI_POLARITY_POSITIVE   0
 
#define HPI_POLARITY_NEGATIVE   1
 
#define HPI_COBRANET_HMI_cobra_bridge   0x20000
 
#define HPI_COBRANET_HMI_cobra_bridge_tx_pkt_buf   (HPI_COBRANET_HMI_cobra_bridge + 0x1000)
 
#define HPI_COBRANET_HMI_cobra_bridge_rx_pkt_buf   (HPI_COBRANET_HMI_cobra_bridge + 0x2000)
 
#define HPI_COBRANET_HMI_cobra_if_table1   0x110000
 
#define HPI_COBRANET_HMI_cobra_if_phy_address   (HPI_COBRANET_HMI_cobra_if_table1 + 0xd)
 
#define HPI_COBRANET_HMI_cobra_protocolIP   0x72000
 
#define HPI_COBRANET_HMI_cobra_ip_mon_currentIP   (HPI_COBRANET_HMI_cobra_protocolIP + 0x0)
 
#define HPI_COBRANET_HMI_cobra_ip_mon_staticIP   (HPI_COBRANET_HMI_cobra_protocolIP + 0x2)
 
#define HPI_COBRANET_HMI_cobra_sys   0x100000
 
#define HPI_COBRANET_HMI_cobra_sys_desc   (HPI_COBRANET_HMI_cobra_sys + 0x0)
 
#define HPI_COBRANET_HMI_cobra_sys_objectID   (HPI_COBRANET_HMI_cobra_sys + 0x100)
 
#define HPI_COBRANET_HMI_cobra_sys_contact   (HPI_COBRANET_HMI_cobra_sys + 0x200)
 
#define HPI_COBRANET_HMI_cobra_sys_name   (HPI_COBRANET_HMI_cobra_sys + 0x300)
 
#define HPI_COBRANET_HMI_cobra_sys_location   (HPI_COBRANET_HMI_cobra_sys + 0x400)
 
#define HPI_COBRANET_HMI_STATUS_RXPACKET   2
 
#define HPI_COBRANET_HMI_STATUS_TXPACKET   3
 
#define HPI_ETHERNET_HEADER_SIZE   (16)
 
#define HPI_ETHERNET_PACKET_ID   0x85
 
#define HPI_ETHERNET_PACKET_V1   0x01
 
#define HPI_ETHERNET_PACKET_HOSTED_VIA_HMI   0x20
 
#define HPI_ETHERNET_PACKET_HOSTED_VIA_HMI_V1   0x21
 
#define HPI_ETHERNET_PACKET_HOSTED_VIA_HPI   0x40
 
#define HPI_ETHERNET_PACKET_HOSTED_VIA_HPI_V1   0x41
 
#define HPI_ETHERNET_UDP_PORT   44600
 
#define HPI_ETHERNET_TIMEOUT_MS   500
 
#define HPI_ID_ISAPNP_AUDIOSCIENCE   0x0669
 
#define HPI_PCI_VENDOR_ID_AUDIOSCIENCE   0x175C
 
#define HPI_PCI_VENDOR_ID_MOTOROLA   0x1057
 
#define HPI_PCI_VENDOR_ID_TI   0x104C
 
#define HPI_PCI_DEV_ID_PCI2040   0xAC60
 
#define HPI_PCI_DEV_ID_DSP6205   0xA106
 
#define HPI_USB_VENDOR_ID_AUDIOSCIENCE   0x1257
 
#define HPI_USB_W2K_TAG   0x57495341 /* "ASIW" */
 
#define HPI_USB_LINUX_TAG   0x4C495341 /* "ASIL" */
 
#define HPI_ADAPTER_INDEX_INVALID   0xFFFF
 
#define HPI_ADAPTER_FAMILY_MASK   0xff00
 
#define HPI_MODULE_FAMILY_MASK   0xfff0
 
#define HPI_ADAPTER_FAMILY_ASI(f)   (f & HPI_ADAPTER_FAMILY_MASK)
 
#define HPI_MODULE_FAMILY_ASI(f)   (f & HPI_MODULE_FAMILY_MASK)
 
#define HPI_ADAPTER_ASI(f)   (f)
 
#define HPI_OBJ_MAXINDEX   14
 
#define HPI_OBJ_FUNCTION_SPACING   0x100
 
#define HPI_FUNC_ID(obj, i)   (HPI_OBJ_##obj * HPI_OBJ_FUNCTION_SPACING + i)
 
#define HPI_EXTRACT_INDEX(fn)   (fn & 0xff)
 
#define HPI_SUBSYS_FUNCTION_COUNT   17
 
#define HPI_ADAPTER_FUNCTION_COUNT   24
 
#define HPI_OSTREAM_FUNCTION_COUNT   25
 
#define HPI_ISTREAM_FUNCTION_COUNT   20
 
#define HPI_MIXER_FUNCTION_COUNT   14
 
#define HPI_CONTROL_FUNCTION_COUNT   3
 
#define HPI_NVMEMORY_FUNCTION_COUNT   3
 
#define HPI_GPIO_FUNCTION_COUNT   5
 
#define HPI_ASYNCEVENT_FUNCTION_COUNT   6
 
#define HPI_PROFILE_FUNCTION_COUNT   7
 
#define HPI_MESSAGE_SIZE_BY_OBJECT
 
#define HPI_RESPONSE_SIZE_BY_OBJECT
 
#define HPINET_ETHERNET_DATA_SIZE   (1500)
 
#define HPINET_IP_HDR_SIZE   (20)
 
#define HPINET_IP_DATA_SIZE   (HPINET_ETHERNET_DATA_SIZE - HPINET_IP_HDR_SIZE)
 
#define HPINET_UDP_HDR_SIZE   (8)
 
#define HPINET_UDP_DATA_SIZE   (HPINET_IP_DATA_SIZE - HPINET_UDP_HDR_SIZE)
 
#define HPINET_ASI_HDR_SIZE   (2)
 
#define HPINET_ASI_DATA_SIZE   (HPINET_UDP_DATA_SIZE - HPINET_ASI_HDR_SIZE)
 
#define HPI_MAX_PAYLOAD_SIZE   (HPINET_ASI_DATA_SIZE - 2)
 
#define hpi_message_header_v1   hpi_message_header
 
#define hpi_response_header_v1   hpi_response_header
 
#define HPI_CACHE_INVALID_UINT16   0xFFFF
 
#define HPI_CACHE_INVALID_SHORT   -32768
 

Typedefs

typedef void hpi_handler_func (struct hpi_message *, struct hpi_response *)
 

Enumerations

enum  HPI_BUSES { HPI_BUS_ISAPNP = 1, HPI_BUS_PCI = 2, HPI_BUS_USB = 3, HPI_BUS_NET = 4 }
 
enum  HPI_SUBSYS_OPTIONS {
  HPI_SUBSYS_OPT_NET_ENABLE = 257, HPI_SUBSYS_OPT_NET_BROADCAST = 258, HPI_SUBSYS_OPT_NET_UNICAST = 259, HPI_SUBSYS_OPT_NET_ADDR = 260,
  HPI_SUBSYS_OPT_NET_MASK = 261, HPI_SUBSYS_OPT_NET_ADAPTER_ADDRESS_ADD = 262
}
 
enum  HPI_VOLUME_FLAGS { HPI_VOLUME_FLAG_MUTED = (1 << 0), HPI_VOLUME_FLAG_HAS_MUTE = (1 << 1), HPI_VOLUME_FLAG_HAS_AUTOFADE = (1 << 2) }
 
enum  HPI_CONTROL_ATTRIBUTES {
  HPI_GENERIC_ENABLE = HPI_CTL_ATTR(GENERIC, 1), HPI_GENERIC_EVENT_ENABLE = HPI_CTL_ATTR(GENERIC, 2), HPI_VOLUME_GAIN = HPI_CTL_ATTR(VOLUME, 1), HPI_VOLUME_AUTOFADE = HPI_CTL_ATTR(VOLUME, 2),
  HPI_VOLUME_MUTE = HPI_CTL_ATTR(VOLUME, 3), HPI_VOLUME_GAIN_AND_FLAGS = HPI_CTL_ATTR(VOLUME, 4), HPI_VOLUME_NUM_CHANNELS = HPI_CTL_ATTR(VOLUME, 6), HPI_VOLUME_RANGE = HPI_CTL_ATTR(VOLUME, 10),
  HPI_METER_RMS = HPI_CTL_ATTR(METER, 1), HPI_METER_PEAK = HPI_CTL_ATTR(METER, 2), HPI_METER_RMS_BALLISTICS = HPI_CTL_ATTR(METER, 3), HPI_METER_PEAK_BALLISTICS = HPI_CTL_ATTR(METER, 4),
  HPI_METER_NUM_CHANNELS = HPI_CTL_ATTR(METER, 5), HPI_MULTIPLEXER_SOURCE = HPI_CTL_ATTR(MULTIPLEXER, 1), HPI_MULTIPLEXER_QUERYSOURCE = HPI_CTL_ATTR(MULTIPLEXER, 2), HPI_AESEBUTX_FORMAT = HPI_CTL_ATTR(AESEBUTX, 1),
  HPI_AESEBUTX_SAMPLERATE = HPI_CTL_ATTR(AESEBUTX, 3), HPI_AESEBUTX_CHANNELSTATUS = HPI_CTL_ATTR(AESEBUTX, 4), HPI_AESEBUTX_USERDATA = HPI_CTL_ATTR(AESEBUTX, 5), HPI_AESEBURX_FORMAT = HPI_CTL_ATTR(AESEBURX, 1),
  HPI_AESEBURX_ERRORSTATUS = HPI_CTL_ATTR(AESEBURX, 2), HPI_AESEBURX_SAMPLERATE = HPI_CTL_ATTR(AESEBURX, 3), HPI_AESEBURX_CHANNELSTATUS = HPI_CTL_ATTR(AESEBURX, 4), HPI_AESEBURX_USERDATA = HPI_CTL_ATTR(AESEBURX, 5),
  HPI_LEVEL_GAIN = HPI_CTL_ATTR(LEVEL, 1), HPI_LEVEL_RANGE = HPI_CTL_ATTR(LEVEL, 10), HPI_TUNER_BAND = HPI_CTL_ATTR(TUNER, 1), HPI_TUNER_FREQ = HPI_CTL_ATTR(TUNER, 2),
  HPI_TUNER_LEVEL_AVG = HPI_CTL_ATTR(TUNER, 3), HPI_TUNER_LEVEL_RAW = HPI_CTL_ATTR(TUNER, 4), HPI_TUNER_SNR = HPI_CTL_ATTR(TUNER, 5), HPI_TUNER_GAIN = HPI_CTL_ATTR(TUNER, 6),
  HPI_TUNER_STATUS = HPI_CTL_ATTR(TUNER, 7), HPI_TUNER_MODE = HPI_CTL_ATTR(TUNER, 8), HPI_TUNER_RDS = HPI_CTL_ATTR(TUNER, 9), HPI_TUNER_DEEMPHASIS = HPI_CTL_ATTR(TUNER, 10),
  HPI_TUNER_PROGRAM = HPI_CTL_ATTR(TUNER, 11), HPI_TUNER_HDRADIO_SIGNAL_QUALITY = HPI_CTL_ATTR(TUNER, 12), HPI_TUNER_HDRADIO_SDK_VERSION = HPI_CTL_ATTR(TUNER, 13), HPI_TUNER_HDRADIO_DSP_VERSION = HPI_CTL_ATTR(TUNER, 14),
  HPI_TUNER_HDRADIO_BLEND = HPI_CTL_ATTR(TUNER, 15), HPI_VOX_THRESHOLD = HPI_CTL_ATTR(VOX, 1), HPI_CHANNEL_MODE_MODE = HPI_CTL_ATTR(CHANNEL_MODE, 1), HPI_BITSTREAM_DATA_POLARITY = HPI_CTL_ATTR(BITSTREAM, 1),
  HPI_BITSTREAM_CLOCK_EDGE = HPI_CTL_ATTR(BITSTREAM, 2), HPI_BITSTREAM_CLOCK_SOURCE = HPI_CTL_ATTR(BITSTREAM, 3), HPI_BITSTREAM_ACTIVITY = HPI_CTL_ATTR(BITSTREAM, 4), HPI_SAMPLECLOCK_SOURCE = HPI_CTL_ATTR(SAMPLECLOCK, 1),
  HPI_SAMPLECLOCK_SAMPLERATE = HPI_CTL_ATTR(SAMPLECLOCK, 2), HPI_SAMPLECLOCK_SOURCE_INDEX = HPI_CTL_ATTR(SAMPLECLOCK, 3), HPI_SAMPLECLOCK_LOCAL_SAMPLERATE = HPI_CTL_ATTR(SAMPLECLOCK, 4), HPI_SAMPLECLOCK_AUTO = HPI_CTL_ATTR(SAMPLECLOCK, 5),
  HPI_SAMPLECLOCK_LOCAL_LOCK = HPI_CTL_ATTR(SAMPLECLOCK, 6), HPI_MICROPHONE_PHANTOM_POWER = HPI_CTL_ATTR(MICROPHONE, 1), HPI_EQUALIZER_NUM_FILTERS = HPI_CTL_ATTR(EQUALIZER, 1), HPI_EQUALIZER_FILTER = HPI_CTL_ATTR(EQUALIZER, 2),
  HPI_EQUALIZER_COEFFICIENTS = HPI_CTL_ATTR(EQUALIZER, 3), HPI_COMPANDER_PARAMS = HPI_CTL_ATTR(COMPANDER, 1), HPI_COMPANDER_MAKEUPGAIN = HPI_CTL_ATTR(COMPANDER, 2), HPI_COMPANDER_THRESHOLD = HPI_CTL_ATTR(COMPANDER, 3),
  HPI_COMPANDER_RATIO = HPI_CTL_ATTR(COMPANDER, 4), HPI_COMPANDER_ATTACK = HPI_CTL_ATTR(COMPANDER, 5), HPI_COMPANDER_DECAY = HPI_CTL_ATTR(COMPANDER, 6), HPI_COBRANET_SET = HPI_CTL_ATTR(COBRANET, 1),
  HPI_COBRANET_GET = HPI_CTL_ATTR(COBRANET, 2), HPI_COBRANET_GET_STATUS = HPI_CTL_ATTR(COBRANET, 5), HPI_COBRANET_SEND_PACKET = HPI_CTL_ATTR(COBRANET, 6), HPI_COBRANET_GET_PACKET = HPI_CTL_ATTR(COBRANET, 7),
  HPI_TONEDETECTOR_THRESHOLD = HPI_CTL_ATTR(TONEDETECTOR, 1), HPI_TONEDETECTOR_STATE = HPI_CTL_ATTR(TONEDETECTOR, 2), HPI_TONEDETECTOR_FREQUENCY = HPI_CTL_ATTR(TONEDETECTOR, 3), HPI_SILENCEDETECTOR_THRESHOLD = HPI_CTL_ATTR(SILENCEDETECTOR, 1),
  HPI_SILENCEDETECTOR_STATE = HPI_CTL_ATTR(SILENCEDETECTOR, 2), HPI_SILENCEDETECTOR_DELAY = HPI_CTL_ATTR(SILENCEDETECTOR, 3), HPI_PAD_CHANNEL_NAME = HPI_CTL_ATTR(PAD, 1), HPI_PAD_ARTIST = HPI_CTL_ATTR(PAD, 2),
  HPI_PAD_TITLE = HPI_CTL_ATTR(PAD, 3), HPI_PAD_COMMENT = HPI_CTL_ATTR(PAD, 4), HPI_PAD_PROGRAM_TYPE = HPI_CTL_ATTR(PAD, 5), HPI_PAD_PROGRAM_ID = HPI_CTL_ATTR(PAD, 6),
  HPI_PAD_TA_SUPPORT = HPI_CTL_ATTR(PAD, 7), HPI_PAD_TA_ACTIVE = HPI_CTL_ATTR(PAD, 8), HPI_UNIVERSAL_ENTITY = HPI_CTL_ATTR(UNIVERSAL, 1)
}
 
enum  HPI_BUFFER_CMDS {
  HPI_BUFFER_CMD_EXTERNAL = 0, HPI_BUFFER_CMD_INTERNAL_ALLOC = 1, HPI_BUFFER_CMD_INTERNAL_GRANTADAPTER = 2, HPI_BUFFER_CMD_INTERNAL_REVOKEADAPTER = 3,
  HPI_BUFFER_CMD_INTERNAL_FREE = 4
}
 
enum  HPI_MESSAGE_TYPES {
  HPI_TYPE_REQUEST = 1, HPI_TYPE_RESPONSE = 2, HPI_TYPE_DATA = 3, HPI_TYPE_SSX2BYPASS_MESSAGE = 4,
  HPI_TYPE_COMMAND = 5, HPI_TYPE_NOTIFICATION = 6
}
 
enum  HPI_OBJECT_TYPES {
  HPI_OBJ_SUBSYSTEM = 1, HPI_OBJ_ADAPTER = 2, HPI_OBJ_OSTREAM = 3, HPI_OBJ_ISTREAM = 4,
  HPI_OBJ_MIXER = 5, HPI_OBJ_NODE = 6, HPI_OBJ_CONTROL = 7, HPI_OBJ_NVMEMORY = 8,
  HPI_OBJ_GPIO = 9, HPI_OBJ_WATCHDOG = 10, HPI_OBJ_CLOCK = 11, HPI_OBJ_PROFILE = 12,
  HPI_OBJ_ASYNCEVENT
}
 
enum  HPI_FUNCTION_IDS {
  HPI_SUBSYS_OPEN = HPI_FUNC_ID(SUBSYSTEM, 1), HPI_SUBSYS_GET_VERSION = HPI_FUNC_ID(SUBSYSTEM, 2), HPI_SUBSYS_GET_INFO = HPI_FUNC_ID(SUBSYSTEM, 3), HPI_SUBSYS_CREATE_ADAPTER = HPI_FUNC_ID(SUBSYSTEM, 5),
  HPI_SUBSYS_CLOSE = HPI_FUNC_ID(SUBSYSTEM, 6), HPI_SUBSYS_DRIVER_LOAD = HPI_FUNC_ID(SUBSYSTEM, 8), HPI_SUBSYS_DRIVER_UNLOAD = HPI_FUNC_ID(SUBSYSTEM, 9), HPI_SUBSYS_GET_NUM_ADAPTERS = HPI_FUNC_ID(SUBSYSTEM, 12),
  HPI_SUBSYS_GET_ADAPTER = HPI_FUNC_ID(SUBSYSTEM, 13), HPI_SUBSYS_SET_NETWORK_INTERFACE = HPI_FUNC_ID(SUBSYSTEM, 14), HPI_SUBSYS_OPTION_INFO = HPI_FUNC_ID(SUBSYSTEM, 15), HPI_SUBSYS_OPTION_GET = HPI_FUNC_ID(SUBSYSTEM, 16),
  HPI_SUBSYS_OPTION_SET = HPI_FUNC_ID(SUBSYSTEM, 17), HPI_ADAPTER_OPEN = HPI_FUNC_ID(ADAPTER, 1), HPI_ADAPTER_CLOSE = HPI_FUNC_ID(ADAPTER, 2), HPI_ADAPTER_GET_INFO = HPI_FUNC_ID(ADAPTER, 3),
  HPI_ADAPTER_GET_ASSERT = HPI_FUNC_ID(ADAPTER, 4), HPI_ADAPTER_TEST_ASSERT = HPI_FUNC_ID(ADAPTER, 5), HPI_ADAPTER_SET_MODE = HPI_FUNC_ID(ADAPTER, 6), HPI_ADAPTER_GET_MODE = HPI_FUNC_ID(ADAPTER, 7),
  HPI_ADAPTER_ENABLE_CAPABILITY = HPI_FUNC_ID(ADAPTER, 8), HPI_ADAPTER_SELFTEST = HPI_FUNC_ID(ADAPTER, 9), HPI_ADAPTER_FIND_OBJECT = HPI_FUNC_ID(ADAPTER, 10), HPI_ADAPTER_QUERY_FLASH = HPI_FUNC_ID(ADAPTER, 11),
  HPI_ADAPTER_START_FLASH = HPI_FUNC_ID(ADAPTER, 12), HPI_ADAPTER_PROGRAM_FLASH = HPI_FUNC_ID(ADAPTER, 13), HPI_ADAPTER_SET_PROPERTY = HPI_FUNC_ID(ADAPTER, 14), HPI_ADAPTER_GET_PROPERTY = HPI_FUNC_ID(ADAPTER, 15),
  HPI_ADAPTER_ENUM_PROPERTY = HPI_FUNC_ID(ADAPTER, 16), HPI_ADAPTER_MODULE_INFO = HPI_FUNC_ID(ADAPTER, 17), HPI_ADAPTER_DEBUG_READ = HPI_FUNC_ID(ADAPTER, 18), HPI_ADAPTER_IRQ_QUERY_AND_CLEAR = HPI_FUNC_ID(ADAPTER, 19),
  HPI_ADAPTER_IRQ_CALLBACK = HPI_FUNC_ID(ADAPTER, 20), HPI_ADAPTER_DELETE = HPI_FUNC_ID(ADAPTER, 21), HPI_ADAPTER_READ_FLASH = HPI_FUNC_ID(ADAPTER, 22), HPI_ADAPTER_END_FLASH = HPI_FUNC_ID(ADAPTER, 23),
  HPI_ADAPTER_FILESTORE_DELETE_ALL = HPI_FUNC_ID(ADAPTER, 24), HPI_OSTREAM_OPEN = HPI_FUNC_ID(OSTREAM, 1), HPI_OSTREAM_CLOSE = HPI_FUNC_ID(OSTREAM, 2), HPI_OSTREAM_WRITE = HPI_FUNC_ID(OSTREAM, 3),
  HPI_OSTREAM_START = HPI_FUNC_ID(OSTREAM, 4), HPI_OSTREAM_STOP = HPI_FUNC_ID(OSTREAM, 5), HPI_OSTREAM_RESET = HPI_FUNC_ID(OSTREAM, 6), HPI_OSTREAM_GET_INFO = HPI_FUNC_ID(OSTREAM, 7),
  HPI_OSTREAM_QUERY_FORMAT = HPI_FUNC_ID(OSTREAM, 8), HPI_OSTREAM_DATA = HPI_FUNC_ID(OSTREAM, 9), HPI_OSTREAM_SET_VELOCITY = HPI_FUNC_ID(OSTREAM, 10), HPI_OSTREAM_SET_PUNCHINOUT = HPI_FUNC_ID(OSTREAM, 11),
  HPI_OSTREAM_SINEGEN = HPI_FUNC_ID(OSTREAM, 12), HPI_OSTREAM_ANC_RESET = HPI_FUNC_ID(OSTREAM, 13), HPI_OSTREAM_ANC_GET_INFO = HPI_FUNC_ID(OSTREAM, 14), HPI_OSTREAM_ANC_READ = HPI_FUNC_ID(OSTREAM, 15),
  HPI_OSTREAM_SET_TIMESCALE = HPI_FUNC_ID(OSTREAM, 16), HPI_OSTREAM_SET_FORMAT = HPI_FUNC_ID(OSTREAM, 17), HPI_OSTREAM_HOSTBUFFER_ALLOC = HPI_FUNC_ID(OSTREAM, 18), HPI_OSTREAM_HOSTBUFFER_FREE = HPI_FUNC_ID(OSTREAM, 19),
  HPI_OSTREAM_GROUP_ADD = HPI_FUNC_ID(OSTREAM, 20), HPI_OSTREAM_GROUP_GETMAP = HPI_FUNC_ID(OSTREAM, 21), HPI_OSTREAM_GROUP_RESET = HPI_FUNC_ID(OSTREAM, 22), HPI_OSTREAM_HOSTBUFFER_GET_INFO = HPI_FUNC_ID(OSTREAM, 23),
  HPI_OSTREAM_WAIT_START = HPI_FUNC_ID(OSTREAM, 24), HPI_OSTREAM_WAIT = HPI_FUNC_ID(OSTREAM, 25), HPI_ISTREAM_OPEN = HPI_FUNC_ID(ISTREAM, 1), HPI_ISTREAM_CLOSE = HPI_FUNC_ID(ISTREAM, 2),
  HPI_ISTREAM_SET_FORMAT = HPI_FUNC_ID(ISTREAM, 3), HPI_ISTREAM_READ = HPI_FUNC_ID(ISTREAM, 4), HPI_ISTREAM_START = HPI_FUNC_ID(ISTREAM, 5), HPI_ISTREAM_STOP = HPI_FUNC_ID(ISTREAM, 6),
  HPI_ISTREAM_RESET = HPI_FUNC_ID(ISTREAM, 7), HPI_ISTREAM_GET_INFO = HPI_FUNC_ID(ISTREAM, 8), HPI_ISTREAM_QUERY_FORMAT = HPI_FUNC_ID(ISTREAM, 9), HPI_ISTREAM_ANC_RESET = HPI_FUNC_ID(ISTREAM, 10),
  HPI_ISTREAM_ANC_GET_INFO = HPI_FUNC_ID(ISTREAM, 11), HPI_ISTREAM_ANC_WRITE = HPI_FUNC_ID(ISTREAM, 12), HPI_ISTREAM_HOSTBUFFER_ALLOC = HPI_FUNC_ID(ISTREAM, 13), HPI_ISTREAM_HOSTBUFFER_FREE = HPI_FUNC_ID(ISTREAM, 14),
  HPI_ISTREAM_GROUP_ADD = HPI_FUNC_ID(ISTREAM, 15), HPI_ISTREAM_GROUP_GETMAP = HPI_FUNC_ID(ISTREAM, 16), HPI_ISTREAM_GROUP_RESET = HPI_FUNC_ID(ISTREAM, 17), HPI_ISTREAM_HOSTBUFFER_GET_INFO = HPI_FUNC_ID(ISTREAM, 18),
  HPI_ISTREAM_WAIT_START = HPI_FUNC_ID(ISTREAM, 19), HPI_ISTREAM_WAIT = HPI_FUNC_ID(ISTREAM, 20), HPI_MIXER_OPEN = HPI_FUNC_ID(MIXER, 1), HPI_MIXER_CLOSE = HPI_FUNC_ID(MIXER, 2),
  HPI_MIXER_GET_INFO = HPI_FUNC_ID(MIXER, 3), HPI_MIXER_GET_NODE_INFO = HPI_FUNC_ID(MIXER, 4), HPI_MIXER_GET_CONTROL = HPI_FUNC_ID(MIXER, 5), HPI_MIXER_SET_CONNECTION = HPI_FUNC_ID(MIXER, 6),
  HPI_MIXER_GET_CONNECTIONS = HPI_FUNC_ID(MIXER, 7), HPI_MIXER_GET_CONTROL_BY_INDEX = HPI_FUNC_ID(MIXER, 8), HPI_MIXER_GET_CONTROL_ARRAY_BY_INDEX = HPI_FUNC_ID(MIXER, 9), HPI_MIXER_GET_CONTROL_MULTIPLE_VALUES = HPI_FUNC_ID(MIXER, 10),
  HPI_MIXER_STORE = HPI_FUNC_ID(MIXER, 11), HPI_MIXER_GET_CACHE_INFO = HPI_FUNC_ID(MIXER, 12), HPI_MIXER_GET_BLOCK_HANDLE = HPI_FUNC_ID(MIXER, 13), HPI_MIXER_GET_PARAMETER_HANDLE = HPI_FUNC_ID(MIXER, 14),
  HPI_CONTROL_GET_INFO = HPI_FUNC_ID(CONTROL, 1), HPI_CONTROL_GET_STATE = HPI_FUNC_ID(CONTROL, 2), HPI_CONTROL_SET_STATE = HPI_FUNC_ID(CONTROL, 3), HPI_NVMEMORY_OPEN = HPI_FUNC_ID(NVMEMORY, 1),
  HPI_NVMEMORY_READ_BYTE = HPI_FUNC_ID(NVMEMORY, 2), HPI_NVMEMORY_WRITE_BYTE = HPI_FUNC_ID(NVMEMORY, 3), HPI_GPIO_OPEN = HPI_FUNC_ID(GPIO, 1), HPI_GPIO_READ_BIT = HPI_FUNC_ID(GPIO, 2),
  HPI_GPIO_WRITE_BIT = HPI_FUNC_ID(GPIO, 3), HPI_GPIO_READ_ALL = HPI_FUNC_ID(GPIO, 4), HPI_GPIO_WRITE_STATUS = HPI_FUNC_ID(GPIO, 5), HPI_ASYNCEVENT_OPEN = HPI_FUNC_ID(ASYNCEVENT, 1),
  HPI_ASYNCEVENT_CLOSE = HPI_FUNC_ID(ASYNCEVENT, 2), HPI_ASYNCEVENT_WAIT = HPI_FUNC_ID(ASYNCEVENT, 3), HPI_ASYNCEVENT_GETCOUNT = HPI_FUNC_ID(ASYNCEVENT, 4), HPI_ASYNCEVENT_GET = HPI_FUNC_ID(ASYNCEVENT, 5),
  HPI_ASYNCEVENT_SENDEVENTS = HPI_FUNC_ID(ASYNCEVENT, 6), HPI_WATCHDOG_OPEN = HPI_FUNC_ID(WATCHDOG, 1), HPI_WATCHDOG_SET_TIME = HPI_FUNC_ID(WATCHDOG, 2), HPI_WATCHDOG_PING = HPI_FUNC_ID(WATCHDOG, 3),
  HPI_CLOCK_OPEN = HPI_FUNC_ID(CLOCK, 1), HPI_CLOCK_SET_TIME = HPI_FUNC_ID(CLOCK, 2), HPI_CLOCK_GET_TIME = HPI_FUNC_ID(CLOCK, 3), HPI_PROFILE_OPEN_ALL = HPI_FUNC_ID(PROFILE, 1),
  HPI_PROFILE_START_ALL = HPI_FUNC_ID(PROFILE, 2), HPI_PROFILE_STOP_ALL = HPI_FUNC_ID(PROFILE, 3), HPI_PROFILE_GET = HPI_FUNC_ID(PROFILE, 4), HPI_PROFILE_GET_IDLECOUNT = HPI_FUNC_ID(PROFILE, 5),
  HPI_PROFILE_GET_NAME = HPI_FUNC_ID(PROFILE, 6), HPI_PROFILE_GET_UTILIZATION
}
 

Functions

u16 hpios_locked_mem_alloc (struct consistent_dma_area *p_locked_mem_handle, u32 size, struct pci_dev *p_os_reference)
 
u16 hpios_locked_mem_free (struct consistent_dma_area *locked_mem_handle)
 
u16 hpios_locked_mem_get_phys_addr (struct consistent_dma_area *locked_mem_handle, u32 *p_physical_addr)
 
u16 hpios_locked_mem_get_virt_addr (struct consistent_dma_area *locked_mem_handle, void **ppv_virtual_addr)
 
u16 hpios_locked_mem_valid (struct consistent_dma_area *locked_mem_handle)
 
void hpios_delay_micro_seconds (u32 num_micro_sec)
 
 compile_time_assert ((sizeof(union hpi_message_buffer_v1)<=HPI_MAX_PAYLOAD_SIZE), message_buffer_ok)
 
 compile_time_assert ((sizeof(union hpi_response_buffer_v1)<=HPI_MAX_PAYLOAD_SIZE), response_buffer_ok)
 
char hpi_handle_object (const u32 handle)
 
void hpi_handle_to_indexes (const u32 handle, u16 *pw_adapter_index, u16 *pw_object_index)
 
u32 hpi_indexes_to_handle (const char c_object, const u16 adapter_index, const u16 object_index)
 
void hpi_send_recv (struct hpi_message *phm, struct hpi_response *phr)
 
u16 hpi_subsys_create_adapter (const struct hpi_resource *p_resource, u16 *pw_adapter_index)
 
u16 hpi_outstream_host_buffer_get_info (u32 h_outstream, u8 **pp_buffer, struct hpi_hostbuffer_status **pp_status)
 
u16 hpi_instream_host_buffer_get_info (u32 h_instream, u8 **pp_buffer, struct hpi_hostbuffer_status **pp_status)
 
u16 hpi_adapter_restart (u16 adapter_index)
 
void hpi_format_to_msg (struct hpi_msg_format *pMF, const struct hpi_format *pF)
 
void hpi_stream_response_to_legacy (struct hpi_stream_res *pSR)
 

Variables

hpi_handler_func HPI_6000
 
hpi_handler_func HPI_6205
 

Macro Definition Documentation

#define compile_time_assert (   cond,
  msg 
)    typedef char ASSERT_##msg[(cond) ? 1 : -1]

Definition at line 91 of file hpi_internal.h.

#define HPI_ADAPTER_ASI (   f)    (f)

Definition at line 359 of file hpi_internal.h.

#define HPI_ADAPTER_FAMILY_ASI (   f)    (f & HPI_ADAPTER_FAMILY_MASK)

Definition at line 357 of file hpi_internal.h.

#define HPI_ADAPTER_FAMILY_MASK   0xff00

First 2 hex digits define the adapter family

Definition at line 354 of file hpi_internal.h.

#define HPI_ADAPTER_FUNCTION_COUNT   24

Definition at line 433 of file hpi_internal.h.

#define HPI_ADAPTER_INDEX_INVALID   0xFFFF
Invalid Adapter index

Used in HPI messages that are not addressed to a specific adapter Used in DLL to indicate device not present

Definition at line 351 of file hpi_internal.h.

#define HPI_ASYNCEVENT_FUNCTION_COUNT   6

Definition at line 525 of file hpi_internal.h.

#define HPI_CACHE_INVALID_SHORT   -32768

indicates a cached short value is invalid.

Definition at line 1254 of file hpi_internal.h.

#define HPI_CACHE_INVALID_UINT16   0xFFFF

indicates a cached u16 value is invalid.

Definition at line 1252 of file hpi_internal.h.

#define HPI_COBRANET_HMI_cobra_bridge   0x20000

Definition at line 254 of file hpi_internal.h.

#define HPI_COBRANET_HMI_cobra_bridge_rx_pkt_buf   (HPI_COBRANET_HMI_cobra_bridge + 0x2000)

Definition at line 257 of file hpi_internal.h.

#define HPI_COBRANET_HMI_cobra_bridge_tx_pkt_buf   (HPI_COBRANET_HMI_cobra_bridge + 0x1000)

Definition at line 255 of file hpi_internal.h.

#define HPI_COBRANET_HMI_cobra_if_phy_address   (HPI_COBRANET_HMI_cobra_if_table1 + 0xd)

Definition at line 260 of file hpi_internal.h.

#define HPI_COBRANET_HMI_cobra_if_table1   0x110000

Definition at line 259 of file hpi_internal.h.

#define HPI_COBRANET_HMI_cobra_ip_mon_currentIP   (HPI_COBRANET_HMI_cobra_protocolIP + 0x0)

Definition at line 263 of file hpi_internal.h.

#define HPI_COBRANET_HMI_cobra_ip_mon_staticIP   (HPI_COBRANET_HMI_cobra_protocolIP + 0x2)

Definition at line 265 of file hpi_internal.h.

#define HPI_COBRANET_HMI_cobra_protocolIP   0x72000

Definition at line 262 of file hpi_internal.h.

#define HPI_COBRANET_HMI_cobra_sys   0x100000

Definition at line 267 of file hpi_internal.h.

#define HPI_COBRANET_HMI_cobra_sys_contact   (HPI_COBRANET_HMI_cobra_sys + 0x200)

Definition at line 272 of file hpi_internal.h.

#define HPI_COBRANET_HMI_cobra_sys_desc   (HPI_COBRANET_HMI_cobra_sys + 0x0)

Definition at line 268 of file hpi_internal.h.

#define HPI_COBRANET_HMI_cobra_sys_location   (HPI_COBRANET_HMI_cobra_sys + 0x400)

Definition at line 276 of file hpi_internal.h.

#define HPI_COBRANET_HMI_cobra_sys_name   (HPI_COBRANET_HMI_cobra_sys + 0x300)

Definition at line 274 of file hpi_internal.h.

#define HPI_COBRANET_HMI_cobra_sys_objectID   (HPI_COBRANET_HMI_cobra_sys + 0x100)

Definition at line 270 of file hpi_internal.h.

#define HPI_COBRANET_HMI_STATUS_RXPACKET   2

Definition at line 282 of file hpi_internal.h.

#define HPI_COBRANET_HMI_STATUS_TXPACKET   3

Definition at line 283 of file hpi_internal.h.

#define HPI_CONTROL_FUNCTION_COUNT   3

Definition at line 505 of file hpi_internal.h.

#define HPI_CTL_ATTR (   ctl,
  ai 
)    ((HPI_CONTROL_##ctl << 8) + ai)

Definition at line 128 of file hpi_internal.h.

#define HPI_CTL_ATTR_CONTROL (   i)    (i >> 8)

Definition at line 134 of file hpi_internal.h.

#define HPI_CTL_ATTR_INDEX (   i)    (i & 0xff)

Definition at line 131 of file hpi_internal.h.

#define HPI_ETHERNET_HEADER_SIZE   (16)

Definition at line 288 of file hpi_internal.h.

#define HPI_ETHERNET_PACKET_HOSTED_VIA_HMI   0x20

This packet must make its way to the host across the HPI interface

Definition at line 297 of file hpi_internal.h.

#define HPI_ETHERNET_PACKET_HOSTED_VIA_HMI_V1   0x21

This packet must make its way to the host across the HPI interface

Definition at line 299 of file hpi_internal.h.

#define HPI_ETHERNET_PACKET_HOSTED_VIA_HPI   0x40

This packet must make its way to the host across the HPI interface

Definition at line 301 of file hpi_internal.h.

#define HPI_ETHERNET_PACKET_HOSTED_VIA_HPI_V1   0x41

This packet must make its way to the host across the HPI interface

Definition at line 303 of file hpi_internal.h.

#define HPI_ETHERNET_PACKET_ID   0x85

ID supplied by Cirrus for ASI packets.

Definition at line 293 of file hpi_internal.h.

#define HPI_ETHERNET_PACKET_V1   0x01

Simple packet - no special routing required

Definition at line 295 of file hpi_internal.h.

#define HPI_ETHERNET_TIMEOUT_MS   500

Default network timeout in milli-seconds.

Definition at line 308 of file hpi_internal.h.

#define HPI_ETHERNET_UDP_PORT   44600

HPI UDP service

Definition at line 305 of file hpi_internal.h.

#define HPI_EXTRACT_INDEX (   fn)    (fn & 0xff)

Definition at line 391 of file hpi_internal.h.

#define HPI_FUNC_ID (   obj,
  i 
)    (HPI_OBJ_##obj * HPI_OBJ_FUNCTION_SPACING + i)

Definition at line 389 of file hpi_internal.h.

#define HPI_GPIO_FUNCTION_COUNT   5

Definition at line 517 of file hpi_internal.h.

#define HPI_ID_ISAPNP_AUDIOSCIENCE   0x0669

Pnp ids "ASI" - actual is "ASX" - need to change

Definition at line 331 of file hpi_internal.h.

#define HPI_ISTREAM_FUNCTION_COUNT   20

Definition at line 482 of file hpi_internal.h.

#define HPI_MAX_ADAPTER_MEM_SPACES   (2)

maximum number of memory regions mapped to an adapter

Definition at line 30 of file hpi_internal.h.

#define HPI_MAX_PAYLOAD_SIZE   (HPINET_ASI_DATA_SIZE - 2)

Definition at line 1121 of file hpi_internal.h.

#define hpi_message_header_v1   hpi_message_header

Definition at line 1163 of file hpi_internal.h.

#define HPI_MESSAGE_SIZE_BY_OBJECT
#define HPI_MIXER_FUNCTION_COUNT   14

Definition at line 500 of file hpi_internal.h.

#define HPI_MODULE_FAMILY_ASI (   f)    (f & HPI_MODULE_FAMILY_MASK)

Definition at line 358 of file hpi_internal.h.

#define HPI_MODULE_FAMILY_MASK   0xfff0

Definition at line 355 of file hpi_internal.h.

#define HPI_NVMEMORY_FUNCTION_COUNT   3

Definition at line 510 of file hpi_internal.h.

#define HPI_OBJ_FUNCTION_SPACING   0x100

Definition at line 388 of file hpi_internal.h.

#define HPI_OBJ_MAXINDEX   14
#define HPI_OSTREAM_FUNCTION_COUNT   25

Definition at line 460 of file hpi_internal.h.

#define HPI_PCI_DEV_ID_DSP6205   0xA106

TI's C6205 PCI interface has this ID

Definition at line 341 of file hpi_internal.h.

#define HPI_PCI_DEV_ID_PCI2040   0xAC60

Definition at line 339 of file hpi_internal.h.

#define HPI_PCI_VENDOR_ID_AUDIOSCIENCE   0x175C

PCI vendor ID that AudioScience uses

Definition at line 333 of file hpi_internal.h.

#define HPI_PCI_VENDOR_ID_MOTOROLA   0x1057

PCI vendor ID that the DSP56301 has

Definition at line 335 of file hpi_internal.h.

#define HPI_PCI_VENDOR_ID_TI   0x104C

PCI vendor ID that TI uses

Definition at line 337 of file hpi_internal.h.

#define HPI_POLARITY_NEGATIVE   1

Definition at line 249 of file hpi_internal.h.

#define HPI_POLARITY_POSITIVE   0

Definition at line 248 of file hpi_internal.h.

#define HPI_PROFILE_FUNCTION_COUNT   7
#define hpi_response_header_v1   hpi_response_header

Definition at line 1164 of file hpi_internal.h.

#define HPI_RESPONSE_SIZE_BY_OBJECT
#define HPI_SUBSYS_FUNCTION_COUNT   17

Definition at line 407 of file hpi_internal.h.

#define HPI_USB_LINUX_TAG   0x4C495341 /* "ASIL" */

Definition at line 345 of file hpi_internal.h.

#define HPI_USB_VENDOR_ID_AUDIOSCIENCE   0x1257

Definition at line 343 of file hpi_internal.h.

#define HPI_USB_W2K_TAG   0x57495341 /* "ASIW" */

Definition at line 344 of file hpi_internal.h.

#define HPINET_ASI_DATA_SIZE   (HPINET_UDP_DATA_SIZE - HPINET_ASI_HDR_SIZE)

Definition at line 1119 of file hpi_internal.h.

#define HPINET_ASI_HDR_SIZE   (2)

Definition at line 1118 of file hpi_internal.h.

#define HPINET_ETHERNET_DATA_SIZE   (1500)

Definition at line 1113 of file hpi_internal.h.

#define HPINET_IP_DATA_SIZE   (HPINET_ETHERNET_DATA_SIZE - HPINET_IP_HDR_SIZE)

Definition at line 1115 of file hpi_internal.h.

#define HPINET_IP_HDR_SIZE   (20)

Definition at line 1114 of file hpi_internal.h.

#define HPINET_UDP_DATA_SIZE   (HPINET_IP_DATA_SIZE - HPINET_UDP_HDR_SIZE)

Definition at line 1117 of file hpi_internal.h.

#define HPINET_UDP_HDR_SIZE   (8)

Definition at line 1116 of file hpi_internal.h.

Typedef Documentation

typedef void hpi_handler_func(struct hpi_message *, struct hpi_response *)

Definition at line 85 of file hpi_internal.h.

Enumeration Type Documentation

Locked memory buffer alloc/free phases

Enumerator:
HPI_BUFFER_CMD_EXTERNAL 

use one message to allocate or free physical memory

HPI_BUFFER_CMD_INTERNAL_ALLOC 

alloc physical memory

HPI_BUFFER_CMD_INTERNAL_GRANTADAPTER 

send physical memory address to adapter

HPI_BUFFER_CMD_INTERNAL_REVOKEADAPTER 

notify adapter to stop using physical buffer

HPI_BUFFER_CMD_INTERNAL_FREE 

free physical buffer

Definition at line 311 of file hpi_internal.h.

enum HPI_BUSES
Enumerator:
HPI_BUS_ISAPNP 
HPI_BUS_PCI 
HPI_BUS_USB 
HPI_BUS_NET 

Definition at line 95 of file hpi_internal.h.

Enable event generation for a control.

0=disable, 1=enable

Note
generic to all controls that can generate eventsUnique identifiers for every control attribute
Enumerator:
HPI_GENERIC_ENABLE 
HPI_GENERIC_EVENT_ENABLE 
HPI_VOLUME_GAIN 
HPI_VOLUME_AUTOFADE 
HPI_VOLUME_MUTE 
HPI_VOLUME_GAIN_AND_FLAGS 
HPI_VOLUME_NUM_CHANNELS 
HPI_VOLUME_RANGE 
HPI_METER_RMS 
HPI_METER_PEAK 
HPI_METER_RMS_BALLISTICS 
HPI_METER_PEAK_BALLISTICS 
HPI_METER_NUM_CHANNELS 
HPI_MULTIPLEXER_SOURCE 
HPI_MULTIPLEXER_QUERYSOURCE 
HPI_AESEBUTX_FORMAT 
HPI_AESEBUTX_SAMPLERATE 
HPI_AESEBUTX_CHANNELSTATUS 
HPI_AESEBUTX_USERDATA 
HPI_AESEBURX_FORMAT 
HPI_AESEBURX_ERRORSTATUS 
HPI_AESEBURX_SAMPLERATE 
HPI_AESEBURX_CHANNELSTATUS 
HPI_AESEBURX_USERDATA 
HPI_LEVEL_GAIN 
HPI_LEVEL_RANGE 
HPI_TUNER_BAND 
HPI_TUNER_FREQ 
HPI_TUNER_LEVEL_AVG 
HPI_TUNER_LEVEL_RAW 
HPI_TUNER_SNR 
HPI_TUNER_GAIN 
HPI_TUNER_STATUS 
HPI_TUNER_MODE 
HPI_TUNER_RDS 
HPI_TUNER_DEEMPHASIS 
HPI_TUNER_PROGRAM 
HPI_TUNER_HDRADIO_SIGNAL_QUALITY 
HPI_TUNER_HDRADIO_SDK_VERSION 
HPI_TUNER_HDRADIO_DSP_VERSION 
HPI_TUNER_HDRADIO_BLEND 
HPI_VOX_THRESHOLD 
HPI_CHANNEL_MODE_MODE 
HPI_BITSTREAM_DATA_POLARITY 
HPI_BITSTREAM_CLOCK_EDGE 
HPI_BITSTREAM_CLOCK_SOURCE 
HPI_BITSTREAM_ACTIVITY 
HPI_SAMPLECLOCK_SOURCE 
HPI_SAMPLECLOCK_SAMPLERATE 
HPI_SAMPLECLOCK_SOURCE_INDEX 
HPI_SAMPLECLOCK_LOCAL_SAMPLERATE 
HPI_SAMPLECLOCK_AUTO 
HPI_SAMPLECLOCK_LOCAL_LOCK 
HPI_MICROPHONE_PHANTOM_POWER 
HPI_EQUALIZER_NUM_FILTERS 
HPI_EQUALIZER_FILTER 
HPI_EQUALIZER_COEFFICIENTS 
HPI_COMPANDER_PARAMS 
HPI_COMPANDER_MAKEUPGAIN 
HPI_COMPANDER_THRESHOLD 
HPI_COMPANDER_RATIO 
HPI_COMPANDER_ATTACK 
HPI_COMPANDER_DECAY 
HPI_COBRANET_SET 
HPI_COBRANET_GET 
HPI_COBRANET_GET_STATUS 
HPI_COBRANET_SEND_PACKET 
HPI_COBRANET_GET_PACKET 
HPI_TONEDETECTOR_THRESHOLD 
HPI_TONEDETECTOR_STATE 
HPI_TONEDETECTOR_FREQUENCY 
HPI_SILENCEDETECTOR_THRESHOLD 
HPI_SILENCEDETECTOR_STATE 
HPI_SILENCEDETECTOR_DELAY 
HPI_PAD_CHANNEL_NAME 
HPI_PAD_ARTIST 
HPI_PAD_TITLE 
HPI_PAD_COMMENT 
HPI_PAD_PROGRAM_TYPE 
HPI_PAD_PROGRAM_ID 
HPI_PAD_TA_SUPPORT 
HPI_PAD_TA_ACTIVE 
HPI_UNIVERSAL_ENTITY 

Definition at line 143 of file hpi_internal.h.

Enumerator:
HPI_SUBSYS_OPEN 
HPI_SUBSYS_GET_VERSION 
HPI_SUBSYS_GET_INFO 
HPI_SUBSYS_CREATE_ADAPTER 
HPI_SUBSYS_CLOSE 
HPI_SUBSYS_DRIVER_LOAD 
HPI_SUBSYS_DRIVER_UNLOAD 
HPI_SUBSYS_GET_NUM_ADAPTERS 
HPI_SUBSYS_GET_ADAPTER 
HPI_SUBSYS_SET_NETWORK_INTERFACE 
HPI_SUBSYS_OPTION_INFO 
HPI_SUBSYS_OPTION_GET 
HPI_SUBSYS_OPTION_SET 
HPI_ADAPTER_OPEN 
HPI_ADAPTER_CLOSE 
HPI_ADAPTER_GET_INFO 
HPI_ADAPTER_GET_ASSERT 
HPI_ADAPTER_TEST_ASSERT 
HPI_ADAPTER_SET_MODE 
HPI_ADAPTER_GET_MODE 
HPI_ADAPTER_ENABLE_CAPABILITY 
HPI_ADAPTER_SELFTEST 
HPI_ADAPTER_FIND_OBJECT 
HPI_ADAPTER_QUERY_FLASH 
HPI_ADAPTER_START_FLASH 
HPI_ADAPTER_PROGRAM_FLASH 
HPI_ADAPTER_SET_PROPERTY 
HPI_ADAPTER_GET_PROPERTY 
HPI_ADAPTER_ENUM_PROPERTY 
HPI_ADAPTER_MODULE_INFO 
HPI_ADAPTER_DEBUG_READ 
HPI_ADAPTER_IRQ_QUERY_AND_CLEAR 
HPI_ADAPTER_IRQ_CALLBACK 
HPI_ADAPTER_DELETE 
HPI_ADAPTER_READ_FLASH 
HPI_ADAPTER_END_FLASH 
HPI_ADAPTER_FILESTORE_DELETE_ALL 
HPI_OSTREAM_OPEN 
HPI_OSTREAM_CLOSE 
HPI_OSTREAM_WRITE 
HPI_OSTREAM_START 
HPI_OSTREAM_STOP 
HPI_OSTREAM_RESET 
HPI_OSTREAM_GET_INFO 
HPI_OSTREAM_QUERY_FORMAT 
HPI_OSTREAM_DATA 
HPI_OSTREAM_SET_VELOCITY 
HPI_OSTREAM_SET_PUNCHINOUT 
HPI_OSTREAM_SINEGEN 
HPI_OSTREAM_ANC_RESET 
HPI_OSTREAM_ANC_GET_INFO 
HPI_OSTREAM_ANC_READ 
HPI_OSTREAM_SET_TIMESCALE 
HPI_OSTREAM_SET_FORMAT 
HPI_OSTREAM_HOSTBUFFER_ALLOC 
HPI_OSTREAM_HOSTBUFFER_FREE 
HPI_OSTREAM_GROUP_ADD 
HPI_OSTREAM_GROUP_GETMAP 
HPI_OSTREAM_GROUP_RESET 
HPI_OSTREAM_HOSTBUFFER_GET_INFO 
HPI_OSTREAM_WAIT_START 
HPI_OSTREAM_WAIT 
HPI_ISTREAM_OPEN 
HPI_ISTREAM_CLOSE 
HPI_ISTREAM_SET_FORMAT 
HPI_ISTREAM_READ 
HPI_ISTREAM_START 
HPI_ISTREAM_STOP 
HPI_ISTREAM_RESET 
HPI_ISTREAM_GET_INFO 
HPI_ISTREAM_QUERY_FORMAT 
HPI_ISTREAM_ANC_RESET 
HPI_ISTREAM_ANC_GET_INFO 
HPI_ISTREAM_ANC_WRITE 
HPI_ISTREAM_HOSTBUFFER_ALLOC 
HPI_ISTREAM_HOSTBUFFER_FREE 
HPI_ISTREAM_GROUP_ADD 
HPI_ISTREAM_GROUP_GETMAP 
HPI_ISTREAM_GROUP_RESET 
HPI_ISTREAM_HOSTBUFFER_GET_INFO 
HPI_ISTREAM_WAIT_START 
HPI_ISTREAM_WAIT 
HPI_MIXER_OPEN 
HPI_MIXER_CLOSE 
HPI_MIXER_GET_INFO 
HPI_MIXER_GET_NODE_INFO 
HPI_MIXER_GET_CONTROL 
HPI_MIXER_SET_CONNECTION 
HPI_MIXER_GET_CONNECTIONS 
HPI_MIXER_GET_CONTROL_BY_INDEX 
HPI_MIXER_GET_CONTROL_ARRAY_BY_INDEX 
HPI_MIXER_GET_CONTROL_MULTIPLE_VALUES 
HPI_MIXER_STORE 
HPI_MIXER_GET_CACHE_INFO 
HPI_MIXER_GET_BLOCK_HANDLE 
HPI_MIXER_GET_PARAMETER_HANDLE 
HPI_CONTROL_GET_INFO 
HPI_CONTROL_GET_STATE 
HPI_CONTROL_SET_STATE 
HPI_NVMEMORY_OPEN 
HPI_NVMEMORY_READ_BYTE 
HPI_NVMEMORY_WRITE_BYTE 
HPI_GPIO_OPEN 
HPI_GPIO_READ_BIT 
HPI_GPIO_WRITE_BIT 
HPI_GPIO_READ_ALL 
HPI_GPIO_WRITE_STATUS 
HPI_ASYNCEVENT_OPEN 
HPI_ASYNCEVENT_CLOSE 
HPI_ASYNCEVENT_WAIT 
HPI_ASYNCEVENT_GETCOUNT 
HPI_ASYNCEVENT_GET 
HPI_ASYNCEVENT_SENDEVENTS 
HPI_WATCHDOG_OPEN 
HPI_WATCHDOG_SET_TIME 
HPI_WATCHDOG_PING 
HPI_CLOCK_OPEN 
HPI_CLOCK_SET_TIME 
HPI_CLOCK_GET_TIME 
HPI_PROFILE_OPEN_ALL 
HPI_PROFILE_START_ALL 
HPI_PROFILE_STOP_ALL 
HPI_PROFILE_GET 
HPI_PROFILE_GET_IDLECOUNT 
HPI_PROFILE_GET_NAME 
HPI_PROFILE_GET_UTILIZATION 

Definition at line 393 of file hpi_internal.h.

Enumerator:
HPI_TYPE_REQUEST 
HPI_TYPE_RESPONSE 
HPI_TYPE_DATA 
HPI_TYPE_SSX2BYPASS_MESSAGE 
HPI_TYPE_COMMAND 
HPI_TYPE_NOTIFICATION 

Definition at line 361 of file hpi_internal.h.

Enumerator:
HPI_OBJ_SUBSYSTEM 
HPI_OBJ_ADAPTER 
HPI_OBJ_OSTREAM 
HPI_OBJ_ISTREAM 
HPI_OBJ_MIXER 
HPI_OBJ_NODE 
HPI_OBJ_CONTROL 
HPI_OBJ_NVMEMORY 
HPI_OBJ_GPIO 
HPI_OBJ_WATCHDOG 
HPI_OBJ_CLOCK 
HPI_OBJ_PROFILE 
HPI_OBJ_ASYNCEVENT 

Definition at line 370 of file hpi_internal.h.

Enumerator:
HPI_SUBSYS_OPT_NET_ENABLE 
HPI_SUBSYS_OPT_NET_BROADCAST 
HPI_SUBSYS_OPT_NET_UNICAST 
HPI_SUBSYS_OPT_NET_ADDR 
HPI_SUBSYS_OPT_NET_MASK 
HPI_SUBSYS_OPT_NET_ADAPTER_ADDRESS_ADD 

Definition at line 102 of file hpi_internal.h.

Volume flags

Enumerator:
HPI_VOLUME_FLAG_MUTED 

Set if the volume control is muted

HPI_VOLUME_FLAG_HAS_MUTE 

Set if the volume control has a mute function

HPI_VOLUME_FLAG_HAS_AUTOFADE 

Set if volume control can do autofading

Definition at line 114 of file hpi_internal.h.

Function Documentation

compile_time_assert ( (sizeof(union hpi_message_buffer_v1)<=HPI_MAX_PAYLOAD_SIZE ,
message_buffer_ok   
)
compile_time_assert ( (sizeof(union hpi_response_buffer_v1)<=HPI_MAX_PAYLOAD_SIZE ,
response_buffer_ok   
)
u16 hpi_adapter_restart ( u16  adapter_index)
void hpi_format_to_msg ( struct hpi_msg_format pMF,
const struct hpi_format pF 
)

Definition at line 61 of file hpifunc.c.

char hpi_handle_object ( const u32  handle)

Definition at line 54 of file hpifunc.c.

void hpi_handle_to_indexes ( const u32  handle,
u16 pw_adapter_index,
u16 pw_object_index 
)

Definition at line 48 of file hpifunc.c.

u32 hpi_indexes_to_handle ( const char  c_object,
const u16  adapter_index,
const u16  object_index 
)

Definition at line 20 of file hpifunc.c.

u16 hpi_instream_host_buffer_get_info ( u32  h_instream,
u8 **  pp_buffer,
struct hpi_hostbuffer_status **  pp_status 
)

Definition at line 1096 of file hpifunc.c.

u16 hpi_outstream_host_buffer_get_info ( u32  h_outstream,
u8 **  pp_buffer,
struct hpi_hostbuffer_status **  pp_status 
)

Definition at line 742 of file hpifunc.c.

void hpi_send_recv ( struct hpi_message phm,
struct hpi_response phr 
)

Definition at line 80 of file hpioctl.c.

void hpi_stream_response_to_legacy ( struct hpi_stream_res pSR)

Definition at line 83 of file hpifunc.c.

u16 hpi_subsys_create_adapter ( const struct hpi_resource p_resource,
u16 pw_adapter_index 
)
void hpios_delay_micro_seconds ( u32  num_micro_sec)

Definition at line 29 of file hpios.c.

u16 hpios_locked_mem_alloc ( struct consistent_dma_area p_mem_area,
u32  size,
struct pci_dev pdev 
)
Allocate and map an area of locked memory for bus master DMA operations.

On success, *pLockedMemeHandle is a valid handle, and 0 is returned On error *pLockedMemHandle marked invalid, non-zero returned.

If this function succeeds, then HpiOs_LockedMem_GetVirtAddr() and HpiOs_LockedMem_GetPyhsAddr() will always succed on the returned handle.

Allocate an area of locked memory for bus master DMA operations.

If allocation fails, return 1, and *pMemArea.size = 0

Parameters
p_mem_areamemory handle
sizeSize in bytes to allocate
pdevOS specific data required for memory allocation

Definition at line 46 of file hpios.c.

u16 hpios_locked_mem_free ( struct consistent_dma_area locked_mem_handle)
Free mapping and memory represented by LockedMemHandle

Frees any resources, then invalidates the handle. Returns 0 on success, 1 if handle is invalid.

Definition at line 69 of file hpios.c.

u16 hpios_locked_mem_get_phys_addr ( struct consistent_dma_area locked_mem_handle,
u32 p_physical_addr 
)
Get the physical PCI address of memory represented by LockedMemHandle.

If handle is invalid *pPhysicalAddr is set to zero and return 1

u16 hpios_locked_mem_get_virt_addr ( struct consistent_dma_area locked_mem_handle,
void **  ppv_virtual_addr 
)
Get the CPU address of of memory represented by LockedMemHandle.

If handle is NULL *ppvVirtualAddr is set to NULL and return 1

u16 hpios_locked_mem_valid ( struct consistent_dma_area locked_mem_handle)
Check that handle is valid

i.e it represents a valid memory area

Variable Documentation

hpi_handler_func HPI_6000

Definition at line 1428 of file hpi_internal.h.

hpi_handler_func HPI_6205

Definition at line 1429 of file hpi_internal.h.