~ubuntu-branches/ubuntu/trusty/linux-armadaxp/trusty

« back to all changes in this revision

Viewing changes to arch/arm/plat-armada/mv_hal/voiceband/slic/silabs/inc/si324x_intf.h

  • Committer: Package Import Robot
  • Author(s): Michael Casadevall, Bryan Wu, Dann Frazier, Michael Casadeall
  • Date: 2012-03-10 15:00:54 UTC
  • mfrom: (1.1.1)
  • Revision ID: package-import@ubuntu.com-20120310150054-flugb39zon8vvgwe
Tags: 3.2.0-1600.1
[ Bryan Wu ]
* UBUNTU: import debian/debian.env and debian.armadaxp

[ Dann Frazier ]
* ARM: Armada XP: remove trailing '/' in dirnames in mvRules.mk

[ Michael Casadeall ]
* tools: add some tools for Marvell Armada XP processor
* kernel: timer tick hacking from Marvell
* kernel: Sheeva Errata: add delay on Sheeva when powering down
* net: add Marvell NFP netfilter
* net: socket and skb modifications made by Marvell
* miscdevice: add minor IDs for some Marvell Armada drivers
* fs: introduce memory pool for splice()
* video: EDID detection updates from Marvell Armada XP patchset
* video: backlight: add Marvell Dove LCD backlight driver
* video: display: add THS8200 display driver
* video: framebuffer: add Marvell Dove and Armada XP processor onchip LCD controller driver
* usbtest: add Interrupt transfer testing by Marvell Armada XP code
* usb: ehci: add support for Marvell EHCI controler
* tty/serial: 8250: add support for Marvell Armada XP processor and DeviceTree work
* rtc: add support for Marvell Armada XP onchip RTC controller
* net: pppoe: add Marvell ethernet NFP hook in PPPoE networking driver
* mtd: nand: add support for Marvell Armada XP Nand Flash Controller
* mtd: maps: add Marvell Armada XP specific map driver
* mmc: add support for Marvell Armada XP MMC/SD host controller
* i2c: add support for Marvell Armada XP onchip i2c bus controller
* hwmon: add Kconfig option for Armada XP onchip thermal sensor driver
* dmaengine: add Net DMA support for splice and update Marvell XOR DMA engine driver
* ata: add support for Marvell Armada XP SATA controller and update some quirks
* ARM: add Marvell Armada XP machine to mach-types
* ARM: oprofile: add support for Marvell PJ4B core
* ARM: mm: more ARMv6 switches for Marvell Armada XP
* ARM: remove static declaration to allow compilation
* ARM: alignment access fault trick
* ARM: mm: skip some fault fixing when run on NONE SMP ARMv6 mode during early abort event
* ARM: mm: add Marvell Sheeva CPU Architecture for PJ4B
* ARM: introduce optimized copy operation for Marvell Armada XP
* ARM: SAUCE: hardware breakpoint trick for Marvell Armada XP
* ARM: big endian and little endian tricks for Marvell Armada XP
* ARM: SAUCE: Add Marvell Armada XP build rules to arch/arm/kernel/Makefile
* ARM: vfp: add special handling for Marvell Armada XP
* ARM: add support for Marvell U-Boot
* ARM: add mv_controller_num for ARM PCI drivers
* ARM: add support for local PMUs, general SMP tweaks and cache flushing
* ARM: add Marvell device identifies in glue-proc.h
* ARM: add IPC driver support for Marvell platforms
* ARM: add DMA mapping for Marvell platforms
* ARM: add Sheeva errata and PJ4B code for booting
* ARM: update Kconfig and Makefile to include Marvell Armada XP platforms
* ARM: Armada XP: import LSP from Marvell for Armada XP 3.2 kernel enablement

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
** Si324x_Intf.h
7
7
** Si324x ProSLIC interface header file
8
8
**
9
 
** Author(s): 
 
9
** Author(s):
10
10
** laj
11
11
**
12
 
** Distributed by: 
 
12
** Distributed by:
13
13
** Silicon Laboratories, Inc
14
14
**
15
 
** This file contains proprietary information.   
 
15
** This file contains proprietary information.
16
16
** No dissemination allowed without prior written permission from
17
17
** Silicon Laboratories, Inc.
18
18
**
35
35
/*
36
36
** Function: PROSLIC_Reset
37
37
**
38
 
** Description: 
 
38
** Description:
39
39
** Resets the ProSLIC
40
40
**
41
 
** Input Parameters: 
 
41
** Input Parameters:
42
42
** pProslic: pointer to PROSLIC object
43
43
**
44
44
** Return:
50
50
/*
51
51
** Function: PROSLIC_Init
52
52
**
53
 
** Description: 
 
53
** Description:
54
54
** Initializes the ProSLIC
55
55
**
56
 
** Input Parameters: 
 
56
** Input Parameters:
57
57
** pProslic: pointer to PROSLIC object
58
58
**
59
59
** Return:
64
64
/*
65
65
** Function: PROSLIC_Init
66
66
**
67
 
** Description: 
 
67
** Description:
68
68
** Initializes the ProSLIC
69
69
**
70
 
** Input Parameters: 
 
70
** Input Parameters:
71
71
** pProslic: pointer to PROSLIC object
72
72
**
73
73
** Return:
78
78
/*
79
79
** Function: PROSLIC_Cal
80
80
**
81
 
** Description: 
 
81
** Description:
82
82
** Calibrates the ProSLIC
83
83
**
84
 
** Input Parameters: 
 
84
** Input Parameters:
85
85
** pProslic: pointer to PROSLIC object
86
86
**
87
87
** Return:
92
92
/*
93
93
** Function: PROSLIC_LoadRegTables
94
94
**
95
 
** Description: 
 
95
** Description:
96
96
** Loads registers and ram in the ProSLIC
97
97
**
98
 
** Input Parameters: 
 
98
** Input Parameters:
99
99
** pProslic: pointer to PROSLIC object
100
100
** pRamTable: pointer to ram values to load
101
101
** pRegTable: pointer to register values to load
102
 
** 
 
102
**
103
103
**
104
104
** Return:
105
105
** none
109
109
/*
110
110
** Function: PROSLIC_LoadPatch
111
111
**
112
 
** Description: 
 
112
** Description:
113
113
** Loads patch to the ProSLIC
114
114
**
115
 
** Input Parameters: 
 
115
** Input Parameters:
116
116
** pProslic: pointer to PROSLIC object
117
117
** pPatch: pointer to patch data
118
118
**
124
124
/*
125
125
** Function: PROSLIC_VerifyPatch
126
126
**
127
 
** Description: 
 
127
** Description:
128
128
** Verifies patch to the ProSLIC
129
129
**
130
 
** Input Parameters: 
 
130
** Input Parameters:
131
131
** pProslic: pointer to PROSLIC object
132
132
** pPatch: pointer to patch data
133
133
**
139
139
/*
140
140
** Function: PROSLIC_EnableInterrupts
141
141
**
142
 
** Description: 
 
142
** Description:
143
143
** Enables interrupts
144
144
**
145
 
** Input Parameters: 
 
145
** Input Parameters:
146
146
** hProslic: pointer to Proslic object
147
 
** 
 
147
**
148
148
** Return:
149
 
** 
 
149
**
150
150
*/
151
151
int Si324x_EnableInterrupts (proslicChanType_ptr hProslic);
152
152
 
164
164
/*
165
165
** Function: PROSLIC_RingSetup
166
166
**
167
 
** Description: 
 
167
** Description:
168
168
** configure ringing
169
169
**
170
 
** Input Parameters: 
 
170
** Input Parameters:
171
171
** pProslic: pointer to Proslic object
172
172
** pRingSetup: pointer to ringing config structure
173
173
**
179
179
/*
180
180
** Function: PROSLIC_ToneGenSetup
181
181
**
182
 
** Description: 
 
182
** Description:
183
183
** configure tone generators
184
184
**
185
 
** Input Parameters: 
 
185
** Input Parameters:
186
186
** pProslic: pointer to Proslic object
187
187
** pTone: pointer to tones config structure
188
188
**
194
194
/*
195
195
** Function: PROSLIC_FSKSetup
196
196
**
197
 
** Description: 
 
197
** Description:
198
198
** configure fsk
199
199
**
200
 
** Input Parameters: 
 
200
** Input Parameters:
201
201
** pProslic: pointer to Proslic object
202
202
** pFsk: pointer to fsk config structure
203
203
**
209
209
/*
210
210
** Function: PROSLIC_DTMFDecodeSetup
211
211
**
212
 
** Description: 
 
212
** Description:
213
213
** configure dtmf decode
214
214
**
215
 
** Input Parameters: 
 
215
** Input Parameters:
216
216
** pProslic: pointer to Proslic object
217
217
** pDTMFDec: pointer to dtmf decoder config structure
218
218
**
224
224
/*
225
225
** Function: PROSLIC_SetProfile
226
226
**
227
 
** Description: 
 
227
** Description:
228
228
** set country profile of the proslic
229
229
**
230
 
** Input Parameters: 
 
230
** Input Parameters:
231
231
** pProslic: pointer to Proslic object
232
232
** pCountryData: pointer to country config structure
233
233
**
239
239
/*
240
240
** Function: PROSLIC_ZsynthSetup
241
241
**
242
 
** Description: 
 
242
** Description:
243
243
** configure impedence synthesis
244
244
**
245
 
** Input Parameters: 
 
245
** Input Parameters:
246
246
** pProslic: pointer to Proslic object
247
247
** pZynth: pointer to zsynth config structure
248
248
**
254
254
/*
255
255
** Function: PROSLIC_GciCISetup
256
256
**
257
 
** Description: 
 
257
** Description:
258
258
** configure CI bits (GCI mode)
259
259
**
260
 
** Input Parameters: 
 
260
** Input Parameters:
261
261
** pProslic: pointer to Proslic object
262
262
** pCI: pointer to ringing config structure
263
263
**
269
269
/*
270
270
** Function: PROSLIC_ModemDetSetup
271
271
**
272
 
** Description: 
 
272
** Description:
273
273
** configure modem detector
274
274
**
275
 
** Input Parameters: 
 
275
** Input Parameters:
276
276
** pProslic: pointer to Proslic object
277
277
** pModemDet: pointer to modem det config structure
278
278
**
284
284
/*
285
285
** Function: PROSLIC_AudioGainSetup
286
286
**
287
 
** Description: 
 
287
** Description:
288
288
** configure audio gains
289
289
**
290
 
** Input Parameters: 
 
290
** Input Parameters:
291
291
** pProslic: pointer to Proslic object
292
292
** pAudio: pointer to audio gains config structure
293
293
**
300
300
/*
301
301
** Function: PROSLIC_HybridSetup
302
302
**
303
 
** Description: 
 
303
** Description:
304
304
** configure Proslic hybrid
305
305
**
306
 
** Input Parameters: 
 
306
** Input Parameters:
307
307
** pProslic: pointer to Proslic object
308
308
** pHybridCfg: pointer to ringing config structure
309
309
**
315
315
/*
316
316
** Function: PROSLIC_AudioEQSetup
317
317
**
318
 
** Description: 
 
318
** Description:
319
319
** configure audio equalizers
320
320
**
321
 
** Input Parameters: 
 
321
** Input Parameters:
322
322
** pProslic: pointer to Proslic object
323
323
** pAudioEQ: pointer to ringing config structure
324
324
**
330
330
/*
331
331
** Function: PROSLIC_DCFeedSetup
332
332
**
333
 
** Description: 
 
333
** Description:
334
334
** configure dc feed
335
335
**
336
 
** Input Parameters: 
 
336
** Input Parameters:
337
337
** pProslic: pointer to Proslic object
338
338
** pDcFeed: pointer to dc feed config structure
339
339
**
345
345
/*
346
346
** Function: PROSLIC_GPIOSetup
347
347
**
348
 
** Description: 
 
348
** Description:
349
349
** configure gpio
350
350
**
351
 
** Input Parameters: 
 
351
** Input Parameters:
352
352
** pProslic: pointer to Proslic object
353
353
** pGpio: pointer to gpio config structure
354
354
**
360
360
/*
361
361
** Function: PROSLIC_PulseMeterSetup
362
362
**
363
 
** Description: 
 
363
** Description:
364
364
** configure pulse metering
365
365
**
366
 
** Input Parameters: 
 
366
** Input Parameters:
367
367
** pProslic: pointer to Proslic object
368
368
** pPulseCfg: pointer to pulse metering config structure
369
369
**
375
375
/*
376
376
** Function: PROSLIC_PCMSetup
377
377
**
378
 
** Description: 
 
378
** Description:
379
379
** configure pcm
380
380
**
381
 
** Input Parameters: 
 
381
** Input Parameters:
382
382
** pProslic: pointer to Proslic object
383
383
** pPcm: pointer to pcm config structure
384
384
**
397
397
/*
398
398
** Function: PROSLIC_FindInterruptChannels
399
399
**
400
 
** Description: 
 
400
** Description:
401
401
** Finds channels needing serviced
402
402
**
403
 
** Input Parameters: 
 
403
** Input Parameters:
404
404
** hProslic: pointer to Proslic object
405
405
** pChannelNumbers: pointer to channel numbers
406
 
** 
 
406
**
407
407
** Return:
408
 
** 
 
408
**
409
409
*/
410
410
int Si324x_FindInterruptChannels (proslicChanType_ptr hProslic, uInt8 *pChannelNumbers);
411
411
 
412
412
/*
413
413
** Function: PROSLIC_GetInterrupts
414
414
**
415
 
** Description: 
 
415
** Description:
416
416
** Enables interrupts
417
417
**
418
 
** Input Parameters: 
 
418
** Input Parameters:
419
419
** hProslic: pointer to Proslic object
420
420
** pIntData: pointer to interrupt info retrieved
421
 
** 
 
421
**
422
422
** Return:
423
 
** 
 
423
**
424
424
*/
425
425
int Si324x_GetInterrupts (proslicChanType_ptr hProslic, proslicIntType *pIntData);
426
426
 
427
427
/*
428
428
** Function: PROSLIC_ClearInterrupts
429
429
**
430
 
** Description: 
 
430
** Description:
431
431
** Clears interrupts (GCI only)
432
432
**
433
 
** Input Parameters: 
 
433
** Input Parameters:
434
434
** hProslic: pointer to Proslic object
435
 
** 
 
435
**
436
436
** Return:
437
 
** 
 
437
**
438
438
*/
439
439
int Si324x_ClearInterrupts (proslicChanType_ptr hProslic);
440
440
 
441
441
/*
442
442
** Function: PROSLIC_ReadHookStatus
443
443
**
444
 
** Description: 
 
444
** Description:
445
445
** Determine hook status
446
446
**
447
 
** Input Parameters: 
 
447
** Input Parameters:
448
448
** pProslic: pointer to Proslic object
449
449
** pHookStat: current hook status
450
450
**
456
456
/*
457
457
** Function: PROSLIC_WriteLinefeed
458
458
**
459
 
** Description: 
 
459
** Description:
460
460
** Sets linefeed state
461
461
**
462
 
** Input Parameters: 
 
462
** Input Parameters:
463
463
** pProslic: pointer to Proslic object
464
464
** newLinefeed: new linefeed state
465
465
**
471
471
/*
472
472
** Function: PROSLIC_WriteLinefeed
473
473
**
474
 
** Description: 
 
474
** Description:
475
475
** Sets linefeed state
476
476
**
477
 
** Input Parameters: 
 
477
** Input Parameters:
478
478
** pProslic: pointer to Proslic object
479
479
** newLinefeed: new linefeed state
480
480
**
486
486
/*
487
487
** Function: PROSLIC_PolRev
488
488
**
489
 
** Description: 
 
489
** Description:
490
490
** Sets polarity reversal state
491
491
**
492
 
** Input Parameters: 
 
492
** Input Parameters:
493
493
** pProslic: pointer to Proslic object
494
494
** abrupt: set this to 1 for abrupt pol rev
495
495
** newPolRevState: new pol rev state
502
502
/*
503
503
** Function: PROSLIC_GPIOControl
504
504
**
505
 
** Description: 
 
505
** Description:
506
506
** Sets gpio of the proslic
507
507
**
508
 
** Input Parameters: 
 
508
** Input Parameters:
509
509
** pProslic: pointer to Proslic object
510
510
** pGpioData: pointer to gpio status
511
511
** read: set to 1 to read status, 0 to write
518
518
/*
519
519
** Function: PROSLIC_MWI
520
520
**
521
 
** Description: 
 
521
** Description:
522
522
** implements message waiting indicator
523
523
**
524
 
** Input Parameters: 
 
524
** Input Parameters:
525
525
** pProslic: pointer to Proslic object
526
526
** lampOn: 0 = turn lamp off, 1 = turn lamp on
527
527
**
533
533
/*
534
534
** Function: PROSLIC_StartGenericTone
535
535
**
536
 
** Description: 
 
536
** Description:
537
537
** Initializes and start tone generators
538
538
**
539
 
** Input Parameters: 
 
539
** Input Parameters:
540
540
** pProslic: pointer to Proslic object
541
541
** timerEn: specifies whether to enable the tone generator timers
542
542
**
549
549
/*
550
550
** Function: PROSLIC_StopTone
551
551
**
552
 
** Description: 
 
552
** Description:
553
553
** Stops tone generators
554
554
**
555
 
** Input Parameters: 
 
555
** Input Parameters:
556
556
** pProslic: pointer to Proslic object
557
557
**
558
558
** Return:
564
564
/*
565
565
** Function: PROSLIC_StartRing
566
566
**
567
 
** Description: 
 
567
** Description:
568
568
** Initializes and start ring generator
569
569
**
570
 
** Input Parameters: 
 
570
** Input Parameters:
571
571
** pProslic: pointer to Proslic object
572
572
**
573
573
** Return:
579
579
/*
580
580
** Function: PROSLIC_StopRing
581
581
**
582
 
** Description: 
 
582
** Description:
583
583
** Stops ring generator
584
584
**
585
 
** Input Parameters: 
 
585
** Input Parameters:
586
586
** pProslic: pointer to Proslic object
587
587
**
588
588
** Return:
593
593
/*
594
594
** Function: PROSLIC_EnableCID
595
595
**
596
 
** Description: 
 
596
** Description:
597
597
** enable fsk
598
598
**
599
 
** Input Parameters: 
 
599
** Input Parameters:
600
600
** pProslic: pointer to Proslic object
601
601
**
602
602
** Return:
607
607
/*
608
608
** Function: PROSLIC_DisableCID
609
609
**
610
 
** Description: 
 
610
** Description:
611
611
** disable fsk
612
612
**
613
 
** Input Parameters: 
 
613
** Input Parameters:
614
614
** pProslic: pointer to Proslic object
615
615
**
616
616
** Return:
621
621
/*
622
622
** Function: PROSLIC_SendCID
623
623
**
624
 
** Description: 
 
624
** Description:
625
625
** send fsk data
626
626
**
627
 
** Input Parameters: 
 
627
** Input Parameters:
628
628
** pProslic: pointer to Proslic object
629
629
** buffer: buffer to send
630
630
** numBytes: num of bytes in the buffer
639
639
/*
640
640
** Function: PROSLIC_StartPCM
641
641
**
642
 
** Description: 
 
642
** Description:
643
643
** Starts PCM
644
644
**
645
 
** Input Parameters: 
 
645
** Input Parameters:
646
646
** pProslic: pointer to Proslic object
647
647
**
648
648
** Return:
654
654
/*
655
655
** Function: PROSLIC_StopPCM
656
656
**
657
 
** Description: 
 
657
** Description:
658
658
** Disables PCM
659
659
**
660
 
** Input Parameters: 
 
660
** Input Parameters:
661
661
** pProslic: pointer to Proslic object
662
662
**
663
663
** Return:
668
668
/*
669
669
** Function: PROSLIC_DialPulseDetect
670
670
**
671
 
** Description: 
 
671
** Description:
672
672
** implements pulse dial detection and should be called at every off/on hook transistion
673
673
**
674
 
** Input Parameters: 
 
674
** Input Parameters:
675
675
** pProslic: pointer to Proslic object
676
676
** pPulsedialCfg: pointer to pulse dial config
677
677
** pPulseDialData: pointer to pulse dial state for current channel
684
684
/*
685
685
** Function: PROSLIC_ReadDTMFDigit
686
686
**
687
 
** Description: 
 
687
** Description:
688
688
** Read DTMF digit (would be called after DTMF interrupt to collect digit)
689
689
**
690
 
** Input Parameters: 
 
690
** Input Parameters:
691
691
** pProslic: pointer to Proslic object
692
692
** pDigit: digit read
693
693
**
699
699
/*
700
700
** Function: PROSLIC_PLLFreeRunStart
701
701
**
702
 
** Description: 
 
702
** Description:
703
703
** initiates pll free run mode
704
704
**
705
 
** Input Parameters: 
 
705
** Input Parameters:
706
706
** pProslic: pointer to Proslic object
707
707
**
708
708
** Return:
715
715
/*
716
716
** Function: PROSLIC_PLLFreeRunStop
717
717
**
718
 
** Description: 
 
718
** Description:
719
719
** exit pll free run mode
720
720
**
721
 
** Input Parameters: 
 
721
** Input Parameters:
722
722
** pProslic: pointer to Proslic object
723
723
**
724
724
** Return:
729
729
/*
730
730
** Function: PROSLIC_PulseMeterStart
731
731
**
732
 
** Description: 
 
732
** Description:
733
733
** start pulse meter tone
734
734
**
735
 
** Input Parameters: 
 
735
** Input Parameters:
736
736
** pProslic: pointer to Proslic object
737
737
**
738
738
** Return:
743
743
/*
744
744
** Function: PROSLIC_PulseMeterStop
745
745
**
746
 
** Description: 
 
746
** Description:
747
747
** stop pulse meter tone
748
748
**
749
 
** Input Parameters: 
 
749
** Input Parameters:
750
750
** pProslic: pointer to Proslic object
751
751
**
752
752
** Return:
761
761
int Si324x_LoadPreviousLBCal (proslicChanType *pProslic,int32 result1,int32 result2,int32 result3,int32 result4);
762
762
int Si324x_LoadPreviousLBCalPacked (proslicChanType *pProslic,int32 *result);
763
763
#endif
764