Go to the documentation of this file.
17 #ifndef _BRCM_AIUTILS_H_
18 #define _BRCM_AIUTILS_H_
29 #define SI_CORE_SIZE 0x1000
35 #define SI_MAXCORES 16
38 #define SI_PCI_DMA_SZ 0x40000000
41 #define SI_PCIE_DMA_H32 0x80000000
52 #define SI_CLK_CTL_ST 0x1e0
55 #define CCS_FORCEALP 0x00000001
56 #define CCS_FORCEHT 0x00000002
57 #define CCS_FORCEILP 0x00000004
58 #define CCS_ALPAREQ 0x00000008
59 #define CCS_HTAREQ 0x00000010
60 #define CCS_FORCEHWREQOFF 0x00000020
61 #define CCS_ERSRC_REQ_MASK 0x00000700
62 #define CCS_ERSRC_REQ_SHIFT 8
63 #define CCS_ALPAVAIL 0x00010000
64 #define CCS_HTAVAIL 0x00020000
65 #define CCS_BP_ON_APL 0x00040000
66 #define CCS_BP_ON_HT 0x00080000
67 #define CCS_ERSRC_STS_MASK 0x07000000
68 #define CCS_ERSRC_STS_SHIFT 24
71 #define CCS0_HTAVAIL 0x00010000
73 #define CCS0_ALPAVAIL 0x00020000
80 #define FLASH_MIN 0x00020000
82 #define CC_SROM_OTP 0x800
85 #define GPIO_ONTIME_SHIFT 16
88 #define CLKD_OTP 0x000f0000
89 #define CLKD_OTP_SHIFT 16
92 #define LPOMINFREQ 25000
93 #define LPOMAXFREQ 43000
94 #define XTALMINFREQ 19800000
95 #define XTALMAXFREQ 20200000
96 #define PCIMINFREQ 25000000
97 #define PCIMAXFREQ 34000000
99 #define ILP_DIV_5MHZ 0
100 #define ILP_DIV_1MHZ 4
107 #define GPIO_DRV_PRIORITY 0
108 #define GPIO_APP_PRIORITY 1
109 #define GPIO_HI_PRIORITY 2
114 #define GPIO_PULLUP 0
115 #define GPIO_PULLDN 1
118 #define GPIO_REGEVT 0
119 #define GPIO_REGEVT_INTMSK 1
120 #define GPIO_REGEVT_INTPOL 2
123 #define SI_DEVPATH_BUFSZ 16
126 #define SI_DOATTACH 1
197 static inline int ai_get_pmurev(
struct si_pub *
sih)