Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
hpi6000.c File Reference
#include "hpi_internal.h"
#include "hpimsginit.h"
#include "hpidebug.h"
#include "hpi6000.h"
#include "hpidspcd.h"
#include "hpicmn.h"

Go to the source code of this file.

Data Structures

struct  dsp_obj
 
struct  hpi_hw_obj
 

Macros

#define SOURCEFILE_NAME   "hpi6000.c"
 
#define HPI_HIF_BASE   (0x00000200) /* start of C67xx internal RAM */
 
#define HPI_HIF_ADDR(member)   (HPI_HIF_BASE + offsetof(struct hpi_hif_6000, member))
 
#define HPI_HIF_ERROR_MASK   0x4000
 
#define HPI6000_ERROR_BASE   900 /* not actually used anywhere */
 
#define HPI6000_ERROR_MSG_RESP_IDLE_TIMEOUT   901
 
#define HPI6000_ERROR_MSG_RESP_GET_RESP_ACK   903
 
#define HPI6000_ERROR_MSG_GET_ADR   904
 
#define HPI6000_ERROR_RESP_GET_ADR   905
 
#define HPI6000_ERROR_MSG_RESP_BLOCKWRITE32   906
 
#define HPI6000_ERROR_MSG_RESP_BLOCKREAD32   907
 
#define HPI6000_ERROR_CONTROL_CACHE_PARAMS   909
 
#define HPI6000_ERROR_SEND_DATA_IDLE_TIMEOUT   911
 
#define HPI6000_ERROR_SEND_DATA_ACK   912
 
#define HPI6000_ERROR_SEND_DATA_ADR   913
 
#define HPI6000_ERROR_SEND_DATA_TIMEOUT   914
 
#define HPI6000_ERROR_SEND_DATA_CMD   915
 
#define HPI6000_ERROR_SEND_DATA_WRITE   916
 
#define HPI6000_ERROR_SEND_DATA_IDLECMD   917
 
#define HPI6000_ERROR_GET_DATA_IDLE_TIMEOUT   921
 
#define HPI6000_ERROR_GET_DATA_ACK   922
 
#define HPI6000_ERROR_GET_DATA_CMD   923
 
#define HPI6000_ERROR_GET_DATA_READ   924
 
#define HPI6000_ERROR_GET_DATA_IDLECMD   925
 
#define HPI6000_ERROR_CONTROL_CACHE_ADDRLEN   951
 
#define HPI6000_ERROR_CONTROL_CACHE_READ   952
 
#define HPI6000_ERROR_CONTROL_CACHE_FLUSH   953
 
#define HPI6000_ERROR_MSG_RESP_GETRESPCMD   961
 
#define HPI6000_ERROR_MSG_RESP_IDLECMD   962
 
#define HPI6000_ERROR_UNHANDLED_SUBSYS_ID   930
 
#define HPI6000_ERROR_INIT_PCI2040   931
 
#define HPI6000_ERROR_INIT_DSPHPI   932
 
#define HPI6000_ERROR_INIT_DSPINTMEM   933
 
#define HPI6000_ERROR_INIT_SDRAM1   934
 
#define HPI6000_ERROR_INIT_SDRAM2   935
 
#define HPI6000_ERROR_INIT_VERIFY   938
 
#define HPI6000_ERROR_INIT_NOACK   939
 
#define HPI6000_ERROR_INIT_PLDTEST1   941
 
#define HPI6000_ERROR_INIT_PLDTEST2   942
 
#define HIDE_PCI_ASSERTS
 
#define PROFILE_DSP2
 
#define INTERRUPT_EVENT_SET   0
 
#define INTERRUPT_EVENT_CLEAR   1
 
#define INTERRUPT_MASK_SET   2
 
#define INTERRUPT_MASK_CLEAR   3
 
#define HPI_ERROR_REPORT   4
 
#define HPI_RESET   5
 
#define HPI_DATA_WIDTH   6
 
#define MAX_DSPS   2
 
#define DSP_SPACING   0x800
 
#define CONTROL   0x0000
 
#define ADDRESS   0x0200
 
#define DATA_AUTOINC   0x0400
 
#define DATA   0x0600
 
#define TIMEOUT   500000
 
#define H6READ   1
 
#define H6WRITE   0
 
#define DRAM_SIZE_WORDS   0x200000 /*2_mx32 */
 
#define DRAM_INC   1024
 
#define PLD_BASE_ADDRESS   0x90000000L /*for ASI6100/6200/8800 */
 
#define PCI_TIMEOUT   100
 
#define MSG_ADDRESS   (HPI_HIF_BASE+0x18)
 
#define MSG_LENGTH   11
 
#define RESP_ADDRESS   (HPI_HIF_BASE+0x44)
 
#define RESP_LENGTH   16
 
#define QUEUE_START   (HPI_HIF_BASE+0x88)
 
#define QUEUE_SIZE   0x8000
 

Functions

void HPI_6000 (struct hpi_message *phm, struct hpi_response *phr)
 

Macro Definition Documentation

#define ADDRESS   0x0200

Definition at line 124 of file hpi6000.c.

#define CONTROL   0x0000

Definition at line 123 of file hpi6000.c.

#define DATA   0x0600

Definition at line 126 of file hpi6000.c.

#define DATA_AUTOINC   0x0400

Definition at line 125 of file hpi6000.c.

#define DRAM_INC   1024
#define DRAM_SIZE_WORDS   0x200000 /*2_mx32 */
#define DSP_SPACING   0x800

Definition at line 121 of file hpi6000.c.

#define H6READ   1

Definition at line 165 of file hpi6000.c.

#define H6WRITE   0

Definition at line 166 of file hpi6000.c.

#define HIDE_PCI_ASSERTS

Definition at line 103 of file hpi6000.c.

#define HPI6000_ERROR_BASE   900 /* not actually used anywhere */

Definition at line 46 of file hpi6000.c.

#define HPI6000_ERROR_CONTROL_CACHE_ADDRLEN   951

Definition at line 73 of file hpi6000.c.

#define HPI6000_ERROR_CONTROL_CACHE_FLUSH   953

Definition at line 75 of file hpi6000.c.

#define HPI6000_ERROR_CONTROL_CACHE_PARAMS   909

Definition at line 57 of file hpi6000.c.

#define HPI6000_ERROR_CONTROL_CACHE_READ   952

Definition at line 74 of file hpi6000.c.

#define HPI6000_ERROR_GET_DATA_ACK   922

Definition at line 68 of file hpi6000.c.

#define HPI6000_ERROR_GET_DATA_CMD   923

Definition at line 69 of file hpi6000.c.

#define HPI6000_ERROR_GET_DATA_IDLE_TIMEOUT   921

Definition at line 67 of file hpi6000.c.

#define HPI6000_ERROR_GET_DATA_IDLECMD   925

Definition at line 71 of file hpi6000.c.

#define HPI6000_ERROR_GET_DATA_READ   924

Definition at line 70 of file hpi6000.c.

#define HPI6000_ERROR_INIT_DSPHPI   932

Definition at line 86 of file hpi6000.c.

#define HPI6000_ERROR_INIT_DSPINTMEM   933

Definition at line 88 of file hpi6000.c.

#define HPI6000_ERROR_INIT_NOACK   939

Definition at line 96 of file hpi6000.c.

#define HPI6000_ERROR_INIT_PCI2040   931

Definition at line 84 of file hpi6000.c.

#define HPI6000_ERROR_INIT_PLDTEST1   941

Definition at line 98 of file hpi6000.c.

#define HPI6000_ERROR_INIT_PLDTEST2   942

Definition at line 99 of file hpi6000.c.

#define HPI6000_ERROR_INIT_SDRAM1   934

Definition at line 90 of file hpi6000.c.

#define HPI6000_ERROR_INIT_SDRAM2   935

Definition at line 92 of file hpi6000.c.

#define HPI6000_ERROR_INIT_VERIFY   938

Definition at line 94 of file hpi6000.c.

#define HPI6000_ERROR_MSG_GET_ADR   904

Definition at line 52 of file hpi6000.c.

#define HPI6000_ERROR_MSG_RESP_BLOCKREAD32   907

Definition at line 55 of file hpi6000.c.

#define HPI6000_ERROR_MSG_RESP_BLOCKWRITE32   906

Definition at line 54 of file hpi6000.c.

#define HPI6000_ERROR_MSG_RESP_GET_RESP_ACK   903

Definition at line 51 of file hpi6000.c.

#define HPI6000_ERROR_MSG_RESP_GETRESPCMD   961

Definition at line 77 of file hpi6000.c.

#define HPI6000_ERROR_MSG_RESP_IDLE_TIMEOUT   901

Definition at line 49 of file hpi6000.c.

#define HPI6000_ERROR_MSG_RESP_IDLECMD   962

Definition at line 78 of file hpi6000.c.

#define HPI6000_ERROR_RESP_GET_ADR   905

Definition at line 53 of file hpi6000.c.

#define HPI6000_ERROR_SEND_DATA_ACK   912

Definition at line 60 of file hpi6000.c.

#define HPI6000_ERROR_SEND_DATA_ADR   913

Definition at line 61 of file hpi6000.c.

#define HPI6000_ERROR_SEND_DATA_CMD   915

Definition at line 63 of file hpi6000.c.

#define HPI6000_ERROR_SEND_DATA_IDLE_TIMEOUT   911

Definition at line 59 of file hpi6000.c.

#define HPI6000_ERROR_SEND_DATA_IDLECMD   917

Definition at line 65 of file hpi6000.c.

#define HPI6000_ERROR_SEND_DATA_TIMEOUT   914

Definition at line 62 of file hpi6000.c.

#define HPI6000_ERROR_SEND_DATA_WRITE   916

Definition at line 64 of file hpi6000.c.

#define HPI6000_ERROR_UNHANDLED_SUBSYS_ID   930

Definition at line 81 of file hpi6000.c.

#define HPI_DATA_WIDTH   6

Definition at line 117 of file hpi6000.c.

#define HPI_ERROR_REPORT   4

Definition at line 115 of file hpi6000.c.

#define HPI_HIF_ADDR (   member)    (HPI_HIF_BASE + offsetof(struct hpi_hif_6000, member))

Definition at line 41 of file hpi6000.c.

#define HPI_HIF_BASE   (0x00000200) /* start of C67xx internal RAM */

Definition at line 40 of file hpi6000.c.

#define HPI_HIF_ERROR_MASK   0x4000

Definition at line 43 of file hpi6000.c.

#define HPI_RESET   5

Definition at line 116 of file hpi6000.c.

#define INTERRUPT_EVENT_CLEAR   1

Definition at line 112 of file hpi6000.c.

#define INTERRUPT_EVENT_SET   0

Definition at line 111 of file hpi6000.c.

#define INTERRUPT_MASK_CLEAR   3

Definition at line 114 of file hpi6000.c.

#define INTERRUPT_MASK_SET   2

Definition at line 113 of file hpi6000.c.

#define MAX_DSPS   2

Definition at line 119 of file hpi6000.c.

#define MSG_ADDRESS   (HPI_HIF_BASE+0x18)

Definition at line 1387 of file hpi6000.c.

#define MSG_LENGTH   11

Definition at line 1388 of file hpi6000.c.

#define PCI_TIMEOUT   100

Definition at line 1140 of file hpi6000.c.

#define PLD_BASE_ADDRESS   0x90000000L /*for ASI6100/6200/8800 */
#define PROFILE_DSP2

Definition at line 104 of file hpi6000.c.

#define QUEUE_SIZE   0x8000

Definition at line 1392 of file hpi6000.c.

#define QUEUE_START   (HPI_HIF_BASE+0x88)

Definition at line 1391 of file hpi6000.c.

#define RESP_ADDRESS   (HPI_HIF_BASE+0x44)

Definition at line 1389 of file hpi6000.c.

#define RESP_LENGTH   16

Definition at line 1390 of file hpi6000.c.

#define SOURCEFILE_NAME   "hpi6000.c"

Definition at line 31 of file hpi6000.c.

#define TIMEOUT   500000

Definition at line 128 of file hpi6000.c.

Function Documentation

void HPI_6000 ( struct hpi_message phm,
struct hpi_response phr 
)

HPI_6000() Entry point from HPIMAN All calls to the HPI start here

Definition at line 332 of file hpi6000.c.