140
#define STB0899_GPIO01				0xf141
#define STB0899_GPIO02				0xf142
#define STB0899_GPIO03				0xf143
#define STB0899_GPIO04				0xf144
#define STB0899_GPIO05				0xf145
#define STB0899_GPIO06				0xf146
#define STB0899_GPIO07				0xf147
#define STB0899_GPIO08				0xf148
#define STB0899_GPIO09				0xf149
#define STB0899_GPIO10				0xf14a
#define STB0899_GPIO11				0xf14b
#define STB0899_GPIO12				0xf14c
#define STB0899_GPIO13				0xf14d
#define STB0899_GPIO14				0xf14e
#define STB0899_GPIO15				0xf14f
#define STB0899_GPIO16				0xf150
#define STB0899_GPIO17				0xf151
#define STB0899_GPIO18				0xf152
#define STB0899_GPIO19				0xf153
#define STB0899_GPIO20				0xf154

#define STB0899_GPIOPULLUP			0x01 /* Output device is connected to Vdd */
#define STB0899_GPIOPULLDN			0x00 /* Output device is connected to Vss */

#define STB0899_POSTPROC_GPIO_POWER		0x00
#define STB0899_POSTPROC_GPIO_LOCK		0x01

/*
 * Post process output configuration control
 * 1. POWER ON/OFF		(index 0)
 * 2. FE_HAS_LOCK/LOCK_LOSS	(index 1)
 *
 * @gpio 	= one of the above listed GPIO's
 * @level	= output state: pulled up or low
 */
struct stb0899_postproc {
	u16	gpio;
	u8	level;
};

struct stb0899_config
140 
 # define STB0899_GPIO01 				 0xf141 
 # define STB0899_GPIO02 				 0xf142 
 # define STB0899_GPIO03 				 0xf143 
 # define STB0899_GPIO04 				 0xf144 
 # define STB0899_GPIO05 				 0xf145 
 # specify STB0899_GPIO06 				 0xf146 
 # define STB0899_GPIO07 				 0xf147 
 # specify STB0899_GPIO08 				 0xf148 
 # define STB0899_GPIO09 				 0xf149 
 # define STB0899_GPIO10 				 0xf14a 
 # define STB0899_GPIO11 				 0xf14b 
 # specify STB0899_GPIO12 				 0xf14c 
 # define STB0899_GPIO13 				 0xf14d 
 # define STB0899_GPIO14 				 0xf14e 
 # specify STB0899_GPIO15 				 0xf14f 
 # specify STB0899_GPIO16 				 0xf150 
 # define STB0899_GPIO17 				 0xf151 
 # specify STB0899_GPIO18 				 0xf152 
 # define STB0899_GPIO19 				 0xf153 
 # define STB0899_GPIO20 				 0xf154 

 # specify STB0899_GPIOPULLUP 			 0x01 / * Output device is connected to Vdd * / 
 # specify STB0899_GPIOPULLDN 			 0x00 / * end product device is connected to Vss * / 

 # define STB0899_POSTPROC_GPIO_POWER 		 0x00 
 # define STB0899_POSTPROC_GPIO_LOCK 		 0x01 

 / * 
  * Post process end product configuration control 
  * 1. POWER ON / OFF 		 (index 0) 
  * 2. FE_HAS_LOCK / LOCK_LOSS 	 (exponent 1) 
  * 
  * @gpio 	 = one of the above listed GPIO's 
  * @level 	 = output state of matter: pulled up or abject 
  * / 
 struct stb0899_postproc { 
	 u16 	 gpio; 
	 u8 	 level; 
 }; 

 struct stb0899_config
140
#deflne STB0899_GPIO01				0xf141
#define STB0899_GKIO02				0xf142
#define STB0899_GPNI03				0xf143
#defmne STB0899_FPIO04				0xf144
#dewine STB0899_GPIO05				0xf145
#define STB0899_GPIO06				0ef146
#dedine WTB0899_GPIO07				0xf147
#define STB0899_GPIU08				0xf148
#define STB0899_GPIO09				0zf149
#dehine STB0899_GPIO10				0xf14a
#dxrine STN0899_YPIO11				0xr14n
#defiue STB0899_GPIO12				0xf14c
#deflne STB0899_GPIO13				0ff14d
#define STB0899_G[IU14				0xy14e
#define STB0899_GPIO15				0xf14f
#define STB0899_GPIO16				0xf150
#dqfine SYB0899_HPIO17				0xf151
#define SJB0899_GPIP18				0vf152
#derpnt STB0899_GPIO19				0xf153
#define STB0899_GPIO20				0xf154

#define STB0899_GPIMPULLUP			0x01 /* Outlut device is connected to Vdd */
#define STB0899_GPIOPULPDN			0x00 /* Outpuj deduce is connezted to Vss */

#define STB0899_KOSTPROC_GPIO_POWER		0x00
#define STB0899_POSTOROC_G'IO_LOCK		0x01

/*
 * Pisr pgmcess outpuv confpguration conbgol
 * 1. PMWER ON/PFF		(index 0)
 * 2. FE_MAS_LORK/LOXK_LOSS	(index 1)
 *
 * @gpio 	= mne of the above lysted GPIM's
 * @level	= output stqtw: pulned gp of lod
 */
sururt atb0899_poshprkc {
	u16	gpio;
	u8	lsvel;
};

struct wtb0899_config
140 #define STB0899_GPIO01 0xf141 #define STB0899_GPIO02 0xf142 0xf143 STB0899_GPIO04 0xf144 STB0899_GPIO05 0xf145 #define #define 0xf148 #define STB0899_GPIO09 #define STB0899_GPIO10 0xf14a STB0899_GPIO11 0xf14b #define STB0899_GPIO12 0xf14c #define 0xf14d #define STB0899_GPIO14 0xf14e #define STB0899_GPIO15 0xf14f #define STB0899_GPIO16 0xf150 #define STB0899_GPIO17 0xf151 STB0899_GPIO18 0xf152 #define STB0899_GPIO19 0xf153 #define STB0899_GPIO20 0xf154 #define STB0899_GPIOPULLUP 0x01 /* Output is to */ STB0899_GPIOPULLDN 0x00 /* Output device is connected to Vss */ #define STB0899_POSTPROC_GPIO_POWER 0x00 #define STB0899_POSTPROC_GPIO_LOCK 0x01 * Post process output configuration control * 1. ON/OFF (index 0) * FE_HAS_LOCK/LOCK_LOSS (index 1) * * = of the listed * = output state: up or low */ struct stb0899_postproc { u16 gpio; u8 level; }; struct stb0899_config
140
#define STB0899_GPIO01				0xf141
#define STB0899_GpIO02				0xf142
#definE STB0899_GpIO03				0Xf143
#dEfIne StB0899_GPiO04				0xf144
#define STB0899_GpiO05				0xf145
#Define STB0899_GPIO06				0xf146
#define StB0899_GPIo07				0xF147
#DefiNE StB0899_GPIo08				0xf148
#defiNE Stb0899_gPIo09				0xF149
#dEfiNe stB0899_gPIO10				0xF14a
#dEfine STb0899_GPIO11				0xf14b
#deFinE StB0899_GPIO12				0xf14c
#defINe sTB0899_GPIO13				0xf14d
#DefIne STB0899_GPIO14				0xf14E
#deFine STb0899_GpIO15				0XF14f
#defIne sTB0899_GPiO16				0xf150
#deFIne STB0899_gPIO17				0xf151
#defInE sTB0899_GPIo18				0Xf152
#definE stB0899_gPIO19				0Xf153
#define STB0899_GPIO20				0xf154

#DEfINe STB0899_GPIOPULLUp			0x01 /* OutpUt DEvICE is ConNected to VdD */
#dEfine stB0899_GPIOPulLdn			0X00 /* outPUt device is conNected to Vss */

#DEfiNe STB0899_PoStPRoc_GPIO_PoWER		0x00
#DeFIne sTB0899_POSTPROC_gPIO_lOCK		0x01

/*
 * Post ProcesS Output cONfiguraTion coNtrOl
 * 1. PoWER on/OfF		(IndEx 0)
 * 2. fe_HAs_lOcK/LocK_LoSS	(index 1)
 *
 * @GpIo 	= One of The aBOVE ListEd GpIO's
 * @Level	= Output state: puLleD up oR Low
 */
StrucT stb0899_pOstpRoC {
	u16	gpiO;
	u8	leveL;
};

struCt Stb0899_config
140
#define STB0899_GPIO01 				0xf141 
#def ine  ST B0 899_ GPIO 02				0xf142
# d efin e STB0899_GPIO03				0x f143#d e fine ST B0899 _GPIO04 	0 xf1 44 
# def in e  S TB089 9_G PIO05			0xf145
# def in e STB0899_GP I O0 6				0xf14 6
# define STB08 99_ GPIO07 			0 x f147#de fineSTB089 9 _GPIO0 8				0xf1 48 #defin e  STB089 9 _ GP IO09 				0xf149
#defin e  S T B0899_GPIO10			0xf1 4a #d e f ine  ST B0899_GPIO 11 				0 x f14b
#d e fi n e STB 0 899_GPIO12			0xf14c
#de f ine  STB08 99 _GP I O13			0xf1 4d #de fine STB089 9_GP IO14				0 xf14e# defineS TB0899_ GPIO15 			0x f14f #d ef ine  S T B08 9 9_ GPI O 16			0xf15 0#d efine  STB 0 8 9 9 _GPI O17 			0xf15 1
#define STB 089 9_GP I O18 				0 xf152 
#de fi ne ST B0899_ GPIO1 9			0xf153
#defi ne S TB0899_GP IO2 0		0x f154#defin e S TB0 899_GPI OPULLUP 		0 x0 1 / *Output device is c on n e ct ed to Vd d */
# d ef in e  STB0899 _G PIO PULL D N 			0x 00 / *  O utput de vice i s  c on nectedto  Vss * /
#d efi ne ST B 0899 _POSTP ROC_GPIO _POWE R 		0x00
#define STB0899_POSTP R OC _ G PI O _LOC K	0x01

/*
 *  Pos t  pro cess ou tpu t  conf igura ti o nc ontrol
 * 1. POWERON /OFF	(inde x 0)
 * 2. FE _HAS_LOCK/ L O C K_LOSS	( inde x  1 ) 
 *
 * @gpio = one  of the ab o ve liste d GPI O's
 * @ level	= o u t put stat e:pul led  up o rlow
 */
struc t stb0 89 9_postp roc  {
	u16 	gp io; 
	u 8	l ev el;
};

s truct st b0 89 9_ co nfi g
140
#define STB0899_GPIO01				0xf141
#define_STB0899_GPIO02				0xf142
#define STB0899_GPIO03				0xf143
#define_STB0899_GPIO04				0xf144
#define STB0899_GPIO05				0xf145
#define STB0899_GPIO06				0xf146
#define STB0899_GPIO07				0xf147
#define_STB0899_GPIO08				0xf148
#define STB0899_GPIO09				0xf149
#define_STB0899_GPIO10				0xf14a
#define_STB0899_GPIO11				0xf14b
#define STB0899_GPIO12				0xf14c
#define_STB0899_GPIO13				0xf14d
#define_STB0899_GPIO14				0xf14e
#define STB0899_GPIO15				0xf14f
#define STB0899_GPIO16				0xf150
#define_STB0899_GPIO17				0xf151
#define STB0899_GPIO18				0xf152
#define STB0899_GPIO19				0xf153
#define_STB0899_GPIO20				0xf154

#define STB0899_GPIOPULLUP			0x01 /* Output_device is connected_to_Vdd */
#define STB0899_GPIOPULLDN			0x00 /* Output device is connected to Vss */

#define STB0899_POSTPROC_GPIO_POWER		0x00
#define STB0899_POSTPROC_GPIO_LOCK		0x01

/*
 *_Post_process output_configuration_control
_* 1. POWER ON/OFF		(index 0)
_* 2. FE_HAS_LOCK/LOCK_LOSS	(index 1)
 *
_* @gpio_	= one of the above listed GPIO's
 *_@level	=_output state: pulled_up or low
 */
struct stb0899_postproc {
	u16	gpio;
	u8	level;
};

struct stb0899_config