Fix typo
[rfmod.git] / iocontrol.h
blobebdaeaba6cfc95ef03591440b6d69cbd843e90d9
1 /**
3 * Copyright (c) 2016 ITE Corporation. All rights reserved.
5 * Module Name:
6 * iocontrol.h
8 * Abstract:
9 * The structure and IO code for IO control call.
13 #ifndef __IOCONTROL_H__
14 #define __IOCONTROL_H__
16 #include "type.h"
19 /* Use 'k' as magic number */
20 #define AFA_IOC_MAGIC 'k'
23 typedef struct {
24 Byte chip;
25 Processor processor;
26 __u32 registerAddress;
27 Byte bufferLength;
28 Byte buffer[256];
29 __u32 error;
30 Byte reserved[16];
31 } WriteRegistersRequest, *PWriteRegistersRequest;
33 typedef struct {
34 Byte chip;
35 Processor processor;
36 __u32 registerAddress;
37 Byte bufferLength;
38 Byte buffer[256];
39 __u32 error;
40 Byte reserved[16];
41 } TxWriteRegistersRequest, *PTxWriteRegistersRequest;
43 typedef struct {
44 Byte chip;
45 Word registerAddress;
46 Byte bufferLength;
47 Byte buffer[256];
48 __u32 error;
49 Byte reserved[16];
50 } TxWriteEepromValuesRequest, *PTxWriteEepromValuesRequest;
52 typedef struct {
53 Byte chip;
54 Processor processor;
55 __u32 registerAddress;
56 Byte bufferLength;
57 Byte buffer[256];
58 __u32 error;
59 Byte reserved[16];
60 } ReadRegistersRequest, *PReadRegistersRequest;
62 typedef struct {
63 Byte chip;
64 Processor processor;
65 __u32 registerAddress;
66 Byte bufferLength;
67 Byte buffer[256];
68 __u32 error;
69 Byte reserved[16];
70 } TxReadRegistersRequest, *PTxReadRegistersRequest;
72 typedef struct {
73 Byte chip;
74 Word registerAddress;
75 Byte bufferLength;
76 Byte buffer[256];
77 __u32 error;
78 Byte reserved[16];
79 } TxReadEepromValuesRequest, *PTxReadEepromValuesRequest;
81 typedef struct {
82 Byte chip;
83 Word bandwidth;
84 __u32 frequency;
85 __u32 error;
86 Byte reserved[16];
87 } AcquireChannelRequest, *PAcquireChannelRequest;
89 typedef struct {
90 Byte chip;
91 Byte transmissionMode;
92 Byte constellation;
93 Byte interval;
94 Byte highCodeRate;
95 __u32 error;
96 Byte reserved[16];
97 } TxSetModuleRequest, *PTxSetModuleRequest;
99 typedef struct {
100 Byte chip;
101 Word bandwidth;
102 __u32 frequency;
103 __u32 error;
104 Byte reserved[16];
105 } TxAcquireChannelRequest, *PTxAcquireChannelRequest;
107 typedef struct {
108 Byte OnOff;
109 __u32 error;
110 Byte reserved[16];
111 } TxModeRequest, *PTxModeRequest;
113 typedef struct {
114 Byte DeviceType;
115 __u32 error;
116 Byte reserved[16];
117 } TxSetDeviceTypeRequest, *PTxSetDeviceTypeRequest;
119 typedef struct {
120 Byte DeviceType;
121 __u32 error;
122 Byte reserved[16];
123 } TxGetDeviceTypeRequest, *PTxGetDeviceTypeRequest;
125 typedef struct {
126 int GainValue;
127 __u32 error;
128 } TxSetGainRequest, *PTxSetGainRequest;
130 typedef struct {
131 Byte chip;
132 Bool locked;
133 Dword error;
134 Byte reserved[16];
135 } IsLockedRequest, *PIsLockedRequest;
137 typedef struct {
138 Byte* platformLength;
139 Platform* platforms;
140 Dword error;
141 Byte reserved[16];
142 } AcquirePlatformRequest, *PAcquirePlatformRequest;
144 typedef struct {
145 Byte chip;
146 Byte index;
147 Pid pid;
148 __u32 error;
149 Byte reserved[16];
150 } AddPidAtRequest, *PAddPidAtRequest;
152 typedef struct {
153 Byte chip;
154 Byte index;
155 Pid pid;
156 __u32 error;
157 Byte reserved[16];
158 } TxAddPidAtRequest, *PTxAddPidAtRequest;
160 typedef struct {
161 Byte chip;
162 __u32 error;
163 Byte reserved[16];
164 } ResetPidRequest, *PResetPidRequest;
166 typedef struct {
167 Byte chip;
168 __u32 error;
169 Byte reserved[16];
170 } TxResetPidRequest, *PTxResetPidRequest;
172 typedef struct {
173 Byte chip;
174 __u32 channelStatisticAddr; // ChannelStatistic*
175 __u32 error;
176 Byte reserved[16];
177 } GetChannelStatisticRequest, *PGetChannelStatisticRequest;
179 typedef struct {
180 Byte chip;
181 Statistic statistic;
182 __u32 error;
183 Byte reserved[16];
184 } GetStatisticRequest, *PGetStatisticRequest;
186 typedef struct {
187 Byte chip;
188 Byte control;
189 __u32 error;
190 Byte reserved[16];
191 } ControlPidFilterRequest, *PControlPidFilterRequest;
193 typedef struct {
194 Byte control;
195 Byte enable;
196 __u32 error;
197 Byte reserved[16];
198 } TxControlPidFilterRequest, *PTxControlPidFilterRequest;
200 typedef struct {
201 Byte chip;
202 Byte control;
203 __u32 error;
204 Byte reserved[16];
205 } ControlPowerSavingRequest, *PControlPowerSavingRequest;
207 typedef struct {
208 Byte chip;
209 Byte control;
210 __u32 error;
211 Byte reserved[16];
212 } TxControlPowerSavingRequest, *PTxControlPowerSavingRequest;
214 typedef struct {
215 Byte DriverVerion[16]; /** XX.XX.XX.XX Ex., 1.2.3.4 */
216 Byte APIVerion[32]; /** XX.XX.XXXXXXXX.XX Ex., 1.2.3.4 */
217 Byte FWVerionLink[16]; /** XX.XX.XX.XX Ex., 1.2.3.4 */
218 Byte FWVerionOFDM[16]; /** XX.XX.XX.XX Ex., 1.2.3.4 */
219 Byte DateTime[24]; /** Ex.,"2004-12-20 18:30:00" or "DEC 20 2004 10:22:10" with compiler __DATE__ and __TIME__ definitions */
220 Byte Company[8]; /** Ex.,"ITEtech" */
221 Byte SupportHWInfo[32]; /** Ex.,"Jupiter DVBT/DVBH" */
222 __u32 error;
223 Byte reserved[128];
224 } TxModDriverInfo, *PTxModDriverInfo;
227 typedef struct {
228 Byte chip;
229 Dword error;
230 Byte reserved[16];
231 } TxStartTransferRequest, *PTxStartTransferRequest;
233 typedef struct {
234 Byte chip;
235 Dword error;
236 Byte reserved[16];
237 } TxStopTransferRequest, *PTxStopTransferRequest;
239 typedef struct {
240 __u32 len;
241 __u32 cmdAddr; // Byte*
242 __u32 error;
243 Byte reserved[16];
244 } TxCmdRequest, *PTxCmdRequest;
246 typedef struct {
247 __u32 error;
248 __u32 frequency;
249 Word bandwidth;
250 int maxGain;
251 int minGain;
252 Byte reserved[16];
253 } TxGetGainRangeRequest, *PTxGetGainRangeRequest;
255 typedef struct {
256 TPS tps;
257 __u32 error;
258 Byte reserved[16];
259 } TxGetTPSRequest, *PTxGetTPSRequest;
261 typedef struct {
262 TPS tps;
263 Bool actualInfo;
264 __u32 error;
265 Byte reserved[16];
266 } TxSetTPSRequest, *PTxSetTPSRequest;
268 typedef struct {
269 int gain;
270 __u32 error;
271 Byte reserved[16];
272 } TxGetOutputGainRequest, *PTxGetOutputGainRequest;
274 typedef struct {
275 __u32 error;
276 __u32 pbufferAddr;
277 Byte reserved[16];
278 } TxSendHwPSITableRequest, *PTxSendHwPSITableRequest;
280 typedef struct {
281 Byte psiTableIndex;
282 __u32 pbufferAddr;
283 __u32 error;
284 Byte reserved[16];
285 } TxAccessFwPSITableRequest, *PTxAccessFwPSITableRequest;
287 typedef struct {
288 Byte psiTableIndex;
289 Word timer;
290 __u32 error;
291 Byte reserved[16];
292 } TxSetFwPSITableTimerRequest, *PTxSetFwPSITableTimerRequest;
294 typedef struct {
295 __u32 pBufferAddr; // Byte*
296 __u32 pdwBufferLength;
297 __u32 error;
298 Byte reserved[16];
299 } TxSetLowBitRateTransferRequest, *PTxSetLowBitRateTransferRequest;
301 typedef struct {
302 __u32 pIQtableAddr; // Byte*
303 Word IQtableSize;
304 __u32 error;
305 Byte reserved[16];
306 } TxSetIQTableRequest, *PTxSetIQTableRequest;
308 typedef struct {
309 int dc_i;
310 int dc_q;
311 __u32 error;
312 Byte reserved[16];
313 } TxSetDCCalibrationValueRequest, *PTxSetDCCalibrationValueRequest;
315 typedef struct {
316 Word chipType;
317 __u32 error;
318 Byte reserved[16];
319 } TxGetChipTypeRequest, *PTxGetChipTypeRequest;
321 typedef struct {
322 __u32 isdbtModulationAddr; // ISDBTModulation
323 __u32 error;
324 Byte reserved[16];
325 } TXSetISDBTChannelModulationRequest, *PTXSetISDBTChannelModulationRequest;
327 typedef struct {
328 TMCCINFO TmccInfo;
329 Bool actualInfo;
330 __u32 error;
331 Byte reserved[16];
332 } TXSetTMCCInfoRequest, *PTXSetTMCCInfoRequest;
334 typedef struct {
335 TMCCINFO TmccInfo;
336 __u32 error;
337 Byte reserved[16];
338 } TXGetTMCCInfoRequest, *PTXGetTMCCInfoRequest;
340 typedef struct {
341 Word BitRate_Kbps;
342 __u32 error;
343 Byte reserved[16];
344 } TXGetTSinputBitRateRequest, *PTXGetTSinputBitRateRequest;
346 typedef struct {
347 Byte index;
348 Pid pid;
349 TransportLayer layer;
350 __u32 error;
351 Byte reserved[16];
352 } TXAddPidToISDBTPidFilterRequest, *PTXAddPidToISDBTPidFilterRequest;
354 typedef struct {
355 PcrMode mode;
356 __u32 error;
357 Byte reserved[16];
358 } TxSetPcrModeRequest, *PTxSetPcrModeRequest;
360 typedef struct {
361 __u32 pDCtableAddr; // Byte*
362 __u32 pOFStableAddr; // Byte*
363 Word tableGroups; //Number of DCtable groups;
364 __u32 error;
365 Byte reserved[16];
366 } TxSetDCTableRequest, *PTxSetDCTableRequest;
368 typedef struct {
369 Byte frequencyindex;
370 __u32 error;
371 Byte reserved[16];
372 } TxGetFrequencyIndexRequest, *PTxGetFrequencyIndexRequest;
374 typedef struct {
375 Byte DTVMode;
376 __u32 error;
377 Byte reserved[16];
378 } TxGetDTVModeRequest, *PTxGetDTVModeRequest;
380 typedef struct {
381 __u32 key ;
382 __u32 error;
383 Byte reserved[16];
384 } TxEnableTpsEncryptionRequest, *PTxEnableTpsEncryptionRequest;
386 typedef struct {
387 __u32 error;
388 Byte reserved[16];
389 } TxDisableTpsEncryptionRequest, *PTxDisableTpsEncryptionRequest;
391 typedef struct {
392 __u32 decryptKey;
393 Byte decryptEnable;
394 __u32 error;
395 Byte reserved[16];
396 } TxSetDecryptRequest, *PTxSetDecryptRequest;
398 typedef struct {
399 Word slaveAddress;
400 Word startAddressOffset;
401 Word writeSize;
402 Byte buffer[256];
403 __u32 error;
404 Byte reserved[16];
405 } IT9560WriteEepromValuesRequest, *PIT9560WriteEepromValuesRequest;
407 typedef struct {
408 Word slaveAddress;
409 Word startAddressOffset;
410 Word readSize;
411 Byte buffer[256];
412 __u32 error;
413 Byte reserved[16];
414 } IT9560ReadEepromValuesRequest, *PIT9560ReadEepromValuesRequest;
416 typedef struct {
417 Processor processor;
418 Dword registerAddress;
419 Byte bufferLength;
420 Byte buffer[256];
421 __u32 error;
422 Byte reserved[16];
423 } IT9560WriteRegistersRequest, *PIT9560WriteRegistersRequest;
425 typedef struct {
426 Processor processor;
427 Dword registerAddress;
428 Byte bufferLength;
429 Byte buffer[256];
430 __u32 error;
431 Byte reserved[16];
432 } IT9560ReadRegistersRequest, *PIT9560ReadRegistersRequest;
434 typedef struct {
435 Byte FwVersion[8];
436 __u32 error;
437 Byte reserved[16];
438 } IT9560GetStatisticRequest, *PIT9560GetStatisticRequest;
440 typedef struct {
441 Byte chip;
442 Word bandwidth;
443 __u32 frequency1;
444 __u32 frequency2;
445 __u32 error;
446 Byte reserved[16];
447 } TxAcquireChannelDualRequest, *PTxAcquireChannelDualRequest;
450 * Modulator & Demodulator API commands
452 #define IOCTRL_ITE_GROUP_STANDARD 0x000
453 #define IOCTRL_ITE_GROUP_DVBT 0x100
454 #define IOCTRL_ITE_GROUP_DVBH 0x200
455 #define IOCTRL_ITE_GROUP_FM 0x300
456 #define IOCTRL_ITE_GROUP_TDMB 0x400
457 #define IOCTRL_ITE_GROUP_OTHER 0x500
458 #define IOCTRL_ITE_GROUP_ISDBT 0x600
459 #define IOCTRL_ITE_GROUP_SECURITY 0x700
462 /***************************************************************************/
463 /* STANDARD */
464 /***************************************************************************/
467 * Modulator Set Modulation.
468 * Paramters: TxSetModuleRequest struct
470 #define IOCTL_ITE_MOD_SETMODULE \
471 _IOW(AFA_IOC_MAGIC, IOCTRL_ITE_GROUP_STANDARD + 0x21, TxSetModuleRequest)
474 * Modulator Acquire Channel.
475 * Paramters: TxAcquireChannelRequest struct
477 #define IOCTL_ITE_MOD_ACQUIRECHANNEL \
478 _IOW(AFA_IOC_MAGIC, IOCTRL_ITE_GROUP_STANDARD + 0x22, TxAcquireChannelRequest)
481 * Modulator Null Packet Enable.
482 * Paramters: TxModeRequest struct
484 #define IOCTL_ITE_MOD_ENABLETXMODE \
485 _IOW(AFA_IOC_MAGIC, IOCTRL_ITE_GROUP_STANDARD + 0x23, TxModeRequest)
488 * Read a sequence of bytes from the contiguous registers in demodulator.
489 * Paramters: ReadRegistersRequest struct
491 #define IOCTL_ITE_MOD_READREGISTERS \
492 _IOR(AFA_IOC_MAGIC, IOCTRL_ITE_GROUP_STANDARD + 0x24, TxReadRegistersRequest)
495 * Write a sequence of bytes to the contiguous registers in demodulator.
496 * Paramters: TxWriteRegistersRequest struct
498 #define IOCTL_ITE_MOD_WRITEREGISTERS \
499 _IOW(AFA_IOC_MAGIC, IOCTRL_ITE_GROUP_STANDARD + 0x27, TxWriteRegistersRequest)
502 * Modulator Device Type Setting.
503 * Paramters: TxSetDeviceTypeRequest struct
505 #define IOCTL_ITE_MOD_SETDEVICETYPE \
506 _IOW(AFA_IOC_MAGIC, IOCTRL_ITE_GROUP_STANDARD + 0x28, TxSetDeviceTypeRequest)
509 * Modulator Device Type Getting.
510 * Paramters: TxGetDeviceTypeRequest struct
512 #define IOCTL_ITE_MOD_GETDEVICETYPE \
513 _IOW(AFA_IOC_MAGIC, IOCTRL_ITE_GROUP_STANDARD + 0x29, TxGetDeviceTypeRequest)
516 * Modulator Set Gain Range.
517 * Paramters: TxSetGainRequest struct
519 #define IOCTL_ITE_MOD_ADJUSTOUTPUTGAIN \
520 _IOW(AFA_IOC_MAGIC, IOCTRL_ITE_GROUP_STANDARD + 0x2B, TxSetGainRequest)
523 * Modulator Get Gain Range.
524 * Paramters: TxGetGainRangeRequest struct
526 #define IOCTL_ITE_MOD_GETGAINRANGE \
527 _IOW(AFA_IOC_MAGIC, IOCTRL_ITE_GROUP_STANDARD + 0x2C, TxGetGainRangeRequest)
530 * Modulator Get Output Gain Range.
531 * Paramters: TxGetOutputGainRangeRequest struct
533 #define IOCTL_ITE_MOD_GETOUTPUTGAIN \
534 _IOR(AFA_IOC_MAGIC, IOCTRL_ITE_GROUP_STANDARD + 0x2D, TxGetOutputGainRequest)
537 * Paramters: TxControlPowerSavingRequest struct
539 #define IOCTL_ITE_MOD_CONTROLPOWERSAVING \
540 _IOW(AFA_IOC_MAGIC, IOCTRL_ITE_GROUP_STANDARD + 0x2F, TxControlPowerSavingRequest)
543 * Write a sequence of bytes to the contiguous cells in the EEPROM.
544 * Paramters: WriteEepromValuesRequest struct
546 #define IOCTL_ITE_MOD_WRITEEEPROMVALUES \
547 _IOW(AFA_IOC_MAGIC, IOCTRL_ITE_GROUP_STANDARD + 0x31, TxWriteEepromValuesRequest)
550 * Read a sequence of bytes from the contiguous cells in the EEPROM.
551 * Paramters: ReadEepromValuesRequest struct
553 #define IOCTL_ITE_MOD_READEEPROMVALUES \
554 _IOR(AFA_IOC_MAGIC, IOCTRL_ITE_GROUP_STANDARD + 0x32, TxReadEepromValuesRequest)
557 * Get Chip Type IT9507/IT9503 in modulator.
558 * Paramters: TxGetChipTypeRequest struct
560 #define IOCTL_ITE_MOD_GETCHIPTYPE \
561 _IOW(AFA_IOC_MAGIC, IOCTRL_ITE_GROUP_STANDARD + 0x3B, TxGetChipTypeRequest)
564 * Acquire Channel Dual IT9507/IT9503 in modulator.
565 * Paramters: TxAcquireChannelDual struct
567 #define IOCTL_ITE_MOD_ACQUIRECHANNELDUAL \
568 _IOW(AFA_IOC_MAGIC, IOCTRL_ITE_GROUP_STANDARD + 0x3C, TxAcquireChannelDualRequest)
571 /***************************************************************************/
572 /* DVBT */
573 /***************************************************************************/
576 * Add PID to PID filter.
577 * Paramters: AddPidAtRequest struct
579 #define IOCTL_ITE_MOD_ADDPIDAT \
580 _IOW(AFA_IOC_MAGIC, IOCTRL_ITE_GROUP_DVBT + 0x08, TxAddPidAtRequest)
583 * Reset PID from PID filter.
584 * Paramters: ResetPidRequest struct
586 #define IOCTL_ITE_MOD_RESETPID \
587 _IOW(AFA_IOC_MAGIC, IOCTRL_ITE_GROUP_DVBT + 0x10, TxResetPidRequest)
590 * Enable PID filter.
591 * Paramters: TxControlPidFilterRequest struct
593 #define IOCTL_ITE_MOD_CONTROLPIDFILTER \
594 _IOW(AFA_IOC_MAGIC, IOCTRL_ITE_GROUP_DVBT + 0x11, TxControlPidFilterRequest)
597 * Enable Set IQTable From File.
598 * Paramters: TxSetIQTableRequest struct
600 #define IOCTL_ITE_MOD_SETIQTABLE \
601 _IOW(AFA_IOC_MAGIC, IOCTRL_ITE_GROUP_DVBT + 0x12, TxSetIQTableRequest)
604 * Enable Set DC Calibration Value From File.
605 * Paramters: TxSetDCCalibrationValueRequest struct
607 #define IOCTL_ITE_MOD_SETDCCALIBRATIONVALUE \
608 _IOW(AFA_IOC_MAGIC, IOCTRL_ITE_GROUP_DVBT + 0x13, TxSetDCCalibrationValueRequest)
611 /***************************************************************************/
612 /* OTHER */
613 /***************************************************************************/
616 * Start Transfer data stream
617 * Paramters: StartTransferRequest struct
619 #define IOCTL_ITE_MOD_STARTTRANSFER \
620 _IOR(AFA_IOC_MAGIC, IOCTRL_ITE_GROUP_OTHER + 0x07, TxStartTransferRequest)
623 * Stop capture data stream
624 * Paramters: StopTransferRequest struct
626 #define IOCTL_ITE_MOD_STOPTRANSFER \
627 _IOR(AFA_IOC_MAGIC, IOCTRL_ITE_GROUP_OTHER + 0x08, TxStopTransferRequest)
630 * Modulator: Get Driver information.
631 * Paramters: TxModDriverInfo struct
633 #define IOCTL_ITE_MOD_GETDRIVERINFO \
634 _IOR(AFA_IOC_MAGIC, IOCTRL_ITE_GROUP_OTHER + 0x09, TxModDriverInfo)
637 * Modulator: Set Start Transfer data Streaming.
638 * Paramters: StopTransferRequest struct
640 #define IOCTL_ITE_MOD_STARTTRANSFER_CMD \
641 _IOR(AFA_IOC_MAGIC, IOCTRL_ITE_GROUP_OTHER + 0x0A, TxStartTransferRequest)
644 * Modulator: Set Stop Transfer data Streaming.
645 * Paramters: TxStopTransferRequest struct
647 #define IOCTL_ITE_MOD_STOPTRANSFER_CMD \
648 _IOR(AFA_IOC_MAGIC, IOCTRL_ITE_GROUP_OTHER + 0x0B, TxStopTransferRequest)
651 * Modulator: Set Command.
652 * Paramters: TxCmdRequest struct
654 #define IOCTL_ITE_MOD_WRITE_CMD \
655 _IOR(AFA_IOC_MAGIC, IOCTRL_ITE_GROUP_OTHER + 0x0C, TxCmdRequest)
658 * Modulator: Get TPS.
659 * Paramters: TxGetTPSRequest struct
661 #define IOCTL_ITE_MOD_GETTPS \
662 _IOR(AFA_IOC_MAGIC, IOCTRL_ITE_GROUP_OTHER + 0x0D, TxGetTPSRequest)
665 * Modulator: Set TPS.
666 * Paramters: TxSetTPSRequest struct
668 #define IOCTL_ITE_MOD_SETTPS \
669 _IOW(AFA_IOC_MAGIC, IOCTRL_ITE_GROUP_OTHER + 0x0E, TxSetTPSRequest)
672 * Modulator: Send PSI Table to Hardware.
673 * Paramters: TxSetTPSRequest struct
675 #define IOCTL_ITE_MOD_SENDHWPSITABLE \
676 _IOR(AFA_IOC_MAGIC, IOCTRL_ITE_GROUP_OTHER + 0x0F, TxSendHwPSITableRequest)
679 * Modulator: Access PSI Table to firmware.
680 * Paramters: TxSetTPSRequest struct
682 #define IOCTL_ITE_MOD_ACCESSFWPSITABLE \
683 _IOR(AFA_IOC_MAGIC, IOCTRL_ITE_GROUP_OTHER + 0x10, TxAccessFwPSITableRequest)
686 * Modulator: Access PSI Table to firmware.
687 * Paramters: TxSetTPSRequest struct
689 #define IOCTL_ITE_MOD_SETFWPSITABLETIMER \
690 _IOW(AFA_IOC_MAGIC, IOCTRL_ITE_GROUP_OTHER + 0x11, TxSetFwPSITableTimerRequest)
693 * Modulator: Write Low Bit Rate Date.
694 * Paramters: TxSetLowBitRateTransferRequest struct
696 #define IOCTL_ITE_MOD_WRITE_LOWBITRATEDATA \
697 _IOW(AFA_IOC_MAGIC, IOCTRL_ITE_GROUP_OTHER + 0x12, TxSetLowBitRateTransferRequest)
700 * Modulator: Set PCR Mode.
701 * Paramters: TxSetPcrModeRequest struct
703 #define IOCTL_ITE_MOD_SETPCRMODE \
704 _IOW(AFA_IOC_MAGIC, IOCTRL_ITE_GROUP_OTHER + 0x13, TxSetPcrModeRequest)
707 * Modulator: Set DC Table.
708 * Paramters: TxSetPcrModeRequest struct
710 #define IOCTL_ITE_MOD_SETDCTABLE \
711 _IOW(AFA_IOC_MAGIC, IOCTRL_ITE_GROUP_OTHER + 0x14, TxSetDCTableRequest)
714 * Enable Get Frequency Index Value From API.
715 * Paramters: GetFrequencyIndexRequest struct
717 #define IOCTL_ITE_MOD_GETFREQUENCYINDEX \
718 _IOW(AFA_IOC_MAGIC, IOCTRL_ITE_GROUP_OTHER + 0x15, TxGetFrequencyIndexRequest)
721 * Enable Set IT9560 Get Statistic From API.
722 * Paramters: IT9560GetStatisticRequest struct
724 #define IOCTL_ITE_BB_IT9560_GETSTATISTIC \
725 _IOW(AFA_IOC_MAGIC, IOCTRL_ITE_GROUP_OTHER + 0x17, IT9560GetStatisticRequest)
728 * Enable Set IT9560 Write EEPROM Data From API.
729 * Paramters: IT9560WriteEepromValuesRequest struct
731 #define IOCTL_ITE_BB_IT9560_WRITEEEPROMVALUES \
732 _IOW(AFA_IOC_MAGIC, IOCTRL_ITE_GROUP_OTHER + 0x18, IT9560WriteEepromValuesRequest)
735 * Enable Set IT9560 Read EEPROM Data From API.
736 * Paramters: IT9560WriteEepromValuesRequest struct
738 #define IOCTL_ITE_BB_IT9560_READEEPROMVALUES \
739 _IOW(AFA_IOC_MAGIC, IOCTRL_ITE_GROUP_OTHER + 0x19, IT9560ReadEepromValuesRequest)
742 * Enable Set IT9560 Write Register From API.
743 * Paramters: IT9560WriteRegistersRequest struct
745 #define IOCTL_ITE_BB_IT9560_WRITEREGISTERS \
746 _IOW(AFA_IOC_MAGIC, IOCTRL_ITE_GROUP_OTHER + 0x20, IT9560WriteRegistersRequest)
749 * Enable Set IT9560 Read Register From API.
750 * Paramters: IT9560ReadRegistersRequest struct
752 #define IOCTL_ITE_BB_IT9560_READREGISTERS \
753 _IOW(AFA_IOC_MAGIC, IOCTRL_ITE_GROUP_OTHER + 0x21, IT9560ReadRegistersRequest)
756 /***************************************************************************/
757 /* ISDB-T */
758 /***************************************************************************/
760 * Set ISDB-T Channel Modulation.
761 * Paramters: TXSetISDBTChannelModulationRequest struct
763 #define IOCTL_ITE_MOD_SETISDBTCHANNELMODULATION \
764 _IOW(AFA_IOC_MAGIC, IOCTRL_ITE_GROUP_ISDBT + 0x00, TXSetISDBTChannelModulationRequest)
767 * Set TMCC Information.
768 * Paramters: TXSetTMCCInfoRequest struct
770 #define IOCTL_ITE_MOD_SETTMCCINFO \
771 _IOW(AFA_IOC_MAGIC, IOCTRL_ITE_GROUP_ISDBT + 0x01, TXSetTMCCInfoRequest)
774 * Get TMCC Information.
775 * Paramters: TXGetTMCCInfoRequest struct
777 #define IOCTL_ITE_MOD_GETTMCCINFO \
778 _IOR(AFA_IOC_MAGIC, IOCTRL_ITE_GROUP_ISDBT + 0x02, TXGetTMCCInfoRequest)
781 * Get TS Input Bit Rate.
782 * Paramters: TXGetTSinputBitRate struct
784 #define IOCTL_ITE_MOD_GETTSINPUTBITRATE \
785 _IOR(AFA_IOC_MAGIC, IOCTRL_ITE_GROUP_ISDBT + 0x03, TXGetTSinputBitRateRequest)
788 * Get Add Pid To ISDBT Pid Filter.
789 * Paramters: TXGetTSinputBitRate struct
791 #define IOCTL_ITE_MOD_ADDPIDTOISDBTPIDFILTER \
792 _IOW(AFA_IOC_MAGIC, IOCTRL_ITE_GROUP_ISDBT + 0x04, TXAddPidToISDBTPidFilterRequest)
795 * Get DTV Mode.
796 * Paramters: TxGetDTVModeRequest struct
798 #define IOCTL_ITE_MOD_GETDTVMODE \
799 _IOW(AFA_IOC_MAGIC, IOCTRL_ITE_GROUP_ISDBT + 0x05, TxGetDTVModeRequest)
801 /***************************************************************************/
802 /* SECURITY */
803 /***************************************************************************/
805 * Enable TPS Encryption.
806 * Paramters: TxEnableTpsEncryptionRequest struct
808 #define IOCTL_ITE_MOD_ENABLETPSENCRYPTION \
809 _IOW(AFA_IOC_MAGIC, IOCTRL_ITE_GROUP_SECURITY + 0x01, TxEnableTpsEncryptionRequest)
812 * Disable TPS Encryption.
813 * Paramters: TxDisableTpsEncryptionRequest struct
815 #define IOCTL_ITE_MOD_DISABLETPSENCRYPTION \
816 _IOW(AFA_IOC_MAGIC, IOCTRL_ITE_GROUP_SECURITY + 0x02, TxDisableTpsEncryptionRequest)
819 #endif