flexcop-fe-tuner.c 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567
  1. /*
  2. * This file is part of linux driver the digital TV devices equipped with B2C2 FlexcopII(b)/III
  3. *
  4. * flexcop-fe-tuner.c - methods for attaching a frontend and controlling DiSEqC.
  5. *
  6. * see flexcop.c for copyright information.
  7. */
  8. #include "flexcop.h"
  9. #include "stv0299.h"
  10. #include "mt352.h"
  11. #include "nxt200x.h"
  12. #include "bcm3510.h"
  13. #include "stv0297.h"
  14. #include "mt312.h"
  15. #include "lgdt330x.h"
  16. #include "dvb-pll.h"
  17. /* lnb control */
  18. static int flexcop_set_voltage(struct dvb_frontend *fe, fe_sec_voltage_t voltage)
  19. {
  20. struct flexcop_device *fc = fe->dvb->priv;
  21. flexcop_ibi_value v;
  22. deb_tuner("polarity/voltage = %u\n", voltage);
  23. v = fc->read_ibi_reg(fc, misc_204);
  24. switch (voltage) {
  25. case SEC_VOLTAGE_OFF:
  26. v.misc_204.ACPI1_sig = 1;
  27. break;
  28. case SEC_VOLTAGE_13:
  29. v.misc_204.ACPI1_sig = 0;
  30. v.misc_204.LNB_L_H_sig = 0;
  31. break;
  32. case SEC_VOLTAGE_18:
  33. v.misc_204.ACPI1_sig = 0;
  34. v.misc_204.LNB_L_H_sig = 1;
  35. break;
  36. default:
  37. err("unknown SEC_VOLTAGE value");
  38. return -EINVAL;
  39. }
  40. return fc->write_ibi_reg(fc, misc_204, v);
  41. }
  42. static int flexcop_sleep(struct dvb_frontend* fe)
  43. {
  44. struct flexcop_device *fc = fe->dvb->priv;
  45. /* flexcop_ibi_value v = fc->read_ibi_reg(fc,misc_204); */
  46. if (fc->fe_sleep)
  47. return fc->fe_sleep(fe);
  48. /* v.misc_204.ACPI3_sig = 1;
  49. fc->write_ibi_reg(fc,misc_204,v);*/
  50. return 0;
  51. }
  52. static int flexcop_set_tone(struct dvb_frontend *fe, fe_sec_tone_mode_t tone)
  53. {
  54. /* u16 wz_half_period_for_45_mhz[] = { 0x01ff, 0x0154, 0x00ff, 0x00cc }; */
  55. struct flexcop_device *fc = fe->dvb->priv;
  56. flexcop_ibi_value v;
  57. u16 ax;
  58. v.raw = 0;
  59. deb_tuner("tone = %u\n",tone);
  60. switch (tone) {
  61. case SEC_TONE_ON:
  62. ax = 0x01ff;
  63. break;
  64. case SEC_TONE_OFF:
  65. ax = 0;
  66. break;
  67. default:
  68. err("unknown SEC_TONE value");
  69. return -EINVAL;
  70. }
  71. v.lnb_switch_freq_200.LNB_CTLPrescaler_sig = 1; /* divide by 2 */
  72. v.lnb_switch_freq_200.LNB_CTLHighCount_sig = ax;
  73. v.lnb_switch_freq_200.LNB_CTLLowCount_sig = ax == 0 ? 0x1ff : ax;
  74. return fc->write_ibi_reg(fc,lnb_switch_freq_200,v);
  75. }
  76. static void flexcop_diseqc_send_bit(struct dvb_frontend* fe, int data)
  77. {
  78. flexcop_set_tone(fe, SEC_TONE_ON);
  79. udelay(data ? 500 : 1000);
  80. flexcop_set_tone(fe, SEC_TONE_OFF);
  81. udelay(data ? 1000 : 500);
  82. }
  83. static void flexcop_diseqc_send_byte(struct dvb_frontend* fe, int data)
  84. {
  85. int i, par = 1, d;
  86. for (i = 7; i >= 0; i--) {
  87. d = (data >> i) & 1;
  88. par ^= d;
  89. flexcop_diseqc_send_bit(fe, d);
  90. }
  91. flexcop_diseqc_send_bit(fe, par);
  92. }
  93. static int flexcop_send_diseqc_msg(struct dvb_frontend* fe, int len, u8 *msg, unsigned long burst)
  94. {
  95. int i;
  96. flexcop_set_tone(fe, SEC_TONE_OFF);
  97. mdelay(16);
  98. for (i = 0; i < len; i++)
  99. flexcop_diseqc_send_byte(fe,msg[i]);
  100. mdelay(16);
  101. if (burst != -1) {
  102. if (burst)
  103. flexcop_diseqc_send_byte(fe, 0xff);
  104. else {
  105. flexcop_set_tone(fe, SEC_TONE_ON);
  106. udelay(12500);
  107. flexcop_set_tone(fe, SEC_TONE_OFF);
  108. }
  109. msleep(20);
  110. }
  111. return 0;
  112. }
  113. static int flexcop_diseqc_send_master_cmd(struct dvb_frontend* fe, struct dvb_diseqc_master_cmd* cmd)
  114. {
  115. return flexcop_send_diseqc_msg(fe, cmd->msg_len, cmd->msg, 0);
  116. }
  117. static int flexcop_diseqc_send_burst(struct dvb_frontend* fe, fe_sec_mini_cmd_t minicmd)
  118. {
  119. return flexcop_send_diseqc_msg(fe, 0, NULL, minicmd);
  120. }
  121. /* dvb-s stv0299 */
  122. static int samsung_tbmu24112_set_symbol_rate(struct dvb_frontend* fe, u32 srate, u32 ratio)
  123. {
  124. u8 aclk = 0;
  125. u8 bclk = 0;
  126. if (srate < 1500000) { aclk = 0xb7; bclk = 0x47; }
  127. else if (srate < 3000000) { aclk = 0xb7; bclk = 0x4b; }
  128. else if (srate < 7000000) { aclk = 0xb7; bclk = 0x4f; }
  129. else if (srate < 14000000) { aclk = 0xb7; bclk = 0x53; }
  130. else if (srate < 30000000) { aclk = 0xb6; bclk = 0x53; }
  131. else if (srate < 45000000) { aclk = 0xb4; bclk = 0x51; }
  132. stv0299_writereg (fe, 0x13, aclk);
  133. stv0299_writereg (fe, 0x14, bclk);
  134. stv0299_writereg (fe, 0x1f, (ratio >> 16) & 0xff);
  135. stv0299_writereg (fe, 0x20, (ratio >> 8) & 0xff);
  136. stv0299_writereg (fe, 0x21, (ratio ) & 0xf0);
  137. return 0;
  138. }
  139. static int samsung_tbmu24112_pll_set(struct dvb_frontend* fe, struct i2c_adapter *i2c, struct dvb_frontend_parameters* params)
  140. {
  141. u8 buf[4];
  142. u32 div;
  143. struct i2c_msg msg = { .addr = 0x61, .flags = 0, .buf = buf, .len = sizeof(buf) };
  144. div = params->frequency / 125;
  145. buf[0] = (div >> 8) & 0x7f;
  146. buf[1] = div & 0xff;
  147. buf[2] = 0x84; /* 0xC4 */
  148. buf[3] = 0x08;
  149. if (params->frequency < 1500000) buf[3] |= 0x10;
  150. if (i2c_transfer(i2c, &msg, 1) != 1)
  151. return -EIO;
  152. return 0;
  153. }
  154. static u8 samsung_tbmu24112_inittab[] = {
  155. 0x01, 0x15,
  156. 0x02, 0x30,
  157. 0x03, 0x00,
  158. 0x04, 0x7D,
  159. 0x05, 0x35,
  160. 0x06, 0x02,
  161. 0x07, 0x00,
  162. 0x08, 0xC3,
  163. 0x0C, 0x00,
  164. 0x0D, 0x81,
  165. 0x0E, 0x23,
  166. 0x0F, 0x12,
  167. 0x10, 0x7E,
  168. 0x11, 0x84,
  169. 0x12, 0xB9,
  170. 0x13, 0x88,
  171. 0x14, 0x89,
  172. 0x15, 0xC9,
  173. 0x16, 0x00,
  174. 0x17, 0x5C,
  175. 0x18, 0x00,
  176. 0x19, 0x00,
  177. 0x1A, 0x00,
  178. 0x1C, 0x00,
  179. 0x1D, 0x00,
  180. 0x1E, 0x00,
  181. 0x1F, 0x3A,
  182. 0x20, 0x2E,
  183. 0x21, 0x80,
  184. 0x22, 0xFF,
  185. 0x23, 0xC1,
  186. 0x28, 0x00,
  187. 0x29, 0x1E,
  188. 0x2A, 0x14,
  189. 0x2B, 0x0F,
  190. 0x2C, 0x09,
  191. 0x2D, 0x05,
  192. 0x31, 0x1F,
  193. 0x32, 0x19,
  194. 0x33, 0xFE,
  195. 0x34, 0x93,
  196. 0xff, 0xff,
  197. };
  198. static struct stv0299_config samsung_tbmu24112_config = {
  199. .demod_address = 0x68,
  200. .inittab = samsung_tbmu24112_inittab,
  201. .mclk = 88000000UL,
  202. .invert = 0,
  203. .skip_reinit = 0,
  204. .lock_output = STV0229_LOCKOUTPUT_LK,
  205. .volt13_op0_op1 = STV0299_VOLT13_OP1,
  206. .min_delay_ms = 100,
  207. .set_symbol_rate = samsung_tbmu24112_set_symbol_rate,
  208. .pll_set = samsung_tbmu24112_pll_set,
  209. };
  210. /* dvb-t mt352 */
  211. static int samsung_tdtc9251dh0_demod_init(struct dvb_frontend* fe)
  212. {
  213. static u8 mt352_clock_config [] = { 0x89, 0x18, 0x2d };
  214. static u8 mt352_reset [] = { 0x50, 0x80 };
  215. static u8 mt352_adc_ctl_1_cfg [] = { 0x8E, 0x40 };
  216. static u8 mt352_agc_cfg [] = { 0x67, 0x28, 0xa1 };
  217. static u8 mt352_capt_range_cfg[] = { 0x75, 0x32 };
  218. mt352_write(fe, mt352_clock_config, sizeof(mt352_clock_config));
  219. udelay(2000);
  220. mt352_write(fe, mt352_reset, sizeof(mt352_reset));
  221. mt352_write(fe, mt352_adc_ctl_1_cfg, sizeof(mt352_adc_ctl_1_cfg));
  222. mt352_write(fe, mt352_agc_cfg, sizeof(mt352_agc_cfg));
  223. mt352_write(fe, mt352_capt_range_cfg, sizeof(mt352_capt_range_cfg));
  224. return 0;
  225. }
  226. static int samsung_tdtc9251dh0_pll_set(struct dvb_frontend* fe, struct dvb_frontend_parameters* params, u8* pllbuf)
  227. {
  228. u32 div;
  229. unsigned char bs = 0;
  230. #define IF_FREQUENCYx6 217 /* 6 * 36.16666666667MHz */
  231. div = (((params->frequency + 83333) * 3) / 500000) + IF_FREQUENCYx6;
  232. if (params->frequency >= 48000000 && params->frequency <= 154000000) bs = 0x09;
  233. if (params->frequency >= 161000000 && params->frequency <= 439000000) bs = 0x0a;
  234. if (params->frequency >= 447000000 && params->frequency <= 863000000) bs = 0x08;
  235. pllbuf[0] = 0xc2; /* Note: non-linux standard PLL i2c address */
  236. pllbuf[1] = div >> 8;
  237. pllbuf[2] = div & 0xff;
  238. pllbuf[3] = 0xcc;
  239. pllbuf[4] = bs;
  240. return 0;
  241. }
  242. static struct mt352_config samsung_tdtc9251dh0_config = {
  243. .demod_address = 0x0f,
  244. .demod_init = samsung_tdtc9251dh0_demod_init,
  245. .pll_set = samsung_tdtc9251dh0_pll_set,
  246. };
  247. static int flexcop_fe_request_firmware(struct dvb_frontend* fe, const struct firmware **fw, char* name)
  248. {
  249. struct flexcop_device *fc = fe->dvb->priv;
  250. return request_firmware(fw, name, fc->dev);
  251. }
  252. static int lgdt3303_pll_set(struct dvb_frontend* fe,
  253. struct dvb_frontend_parameters* params)
  254. {
  255. struct flexcop_device *fc = fe->dvb->priv;
  256. u8 buf[4];
  257. struct i2c_msg msg =
  258. { .addr = 0x61, .flags = 0, .buf = buf, .len = 4 };
  259. int err;
  260. dvb_pll_configure(&dvb_pll_tdvs_tua6034,buf, params->frequency, 0);
  261. dprintk(1, "%s: tuner at 0x%02x bytes: 0x%02x 0x%02x 0x%02x 0x%02x\n",
  262. __FUNCTION__, msg.addr, buf[0],buf[1],buf[2],buf[3]);
  263. if ((err = i2c_transfer(&fc->i2c_adap, &msg, 1)) != 1) {
  264. printk(KERN_WARNING "lgdt3303: %s error "
  265. "(addr %02x <- %02x, err = %i)\n",
  266. __FUNCTION__, buf[0], buf[1], err);
  267. if (err < 0)
  268. return err;
  269. else
  270. return -EREMOTEIO;
  271. }
  272. buf[0] = 0x86 | 0x18;
  273. buf[1] = 0x50;
  274. msg.len = 2;
  275. if ((err = i2c_transfer(&fc->i2c_adap, &msg, 1)) != 1) {
  276. printk(KERN_WARNING "lgdt3303: %s error "
  277. "(addr %02x <- %02x, err = %i)\n",
  278. __FUNCTION__, buf[0], buf[1], err);
  279. if (err < 0)
  280. return err;
  281. else
  282. return -EREMOTEIO;
  283. }
  284. return 0;
  285. }
  286. static struct lgdt330x_config air2pc_atsc_hd5000_config = {
  287. .demod_address = 0x59,
  288. .demod_chip = LGDT3303,
  289. .serial_mpeg = 0x04,
  290. .pll_set = lgdt3303_pll_set,
  291. .clock_polarity_flip = 1,
  292. };
  293. static struct nxt200x_config samsung_tbmv_config = {
  294. .demod_address = 0x0a,
  295. .pll_address = 0xc2,
  296. .pll_desc = &dvb_pll_samsung_tbmv,
  297. };
  298. static struct bcm3510_config air2pc_atsc_first_gen_config = {
  299. .demod_address = 0x0f,
  300. .request_firmware = flexcop_fe_request_firmware,
  301. };
  302. static int skystar23_samsung_tbdu18132_pll_set(struct dvb_frontend* fe, struct dvb_frontend_parameters* params)
  303. {
  304. u8 buf[4];
  305. u32 div;
  306. struct i2c_msg msg = { .addr = 0x61, .flags = 0, .buf = buf, .len = sizeof(buf) };
  307. struct flexcop_device *fc = fe->dvb->priv;
  308. div = (params->frequency + (125/2)) / 125;
  309. buf[0] = (div >> 8) & 0x7f;
  310. buf[1] = (div >> 0) & 0xff;
  311. buf[2] = 0x84 | ((div >> 10) & 0x60);
  312. buf[3] = 0x80;
  313. if (params->frequency < 1550000)
  314. buf[3] |= 0x02;
  315. if (i2c_transfer(&fc->i2c_adap, &msg, 1) != 1)
  316. return -EIO;
  317. return 0;
  318. }
  319. static struct mt312_config skystar23_samsung_tbdu18132_config = {
  320. .demod_address = 0x0e,
  321. .pll_set = skystar23_samsung_tbdu18132_pll_set,
  322. };
  323. static u8 alps_tdee4_stv0297_inittab[] = {
  324. 0x80, 0x01,
  325. 0x80, 0x00,
  326. 0x81, 0x01,
  327. 0x81, 0x00,
  328. 0x00, 0x09,
  329. 0x01, 0x69,
  330. 0x03, 0x00,
  331. 0x04, 0x00,
  332. 0x07, 0x00,
  333. 0x08, 0x00,
  334. 0x20, 0x00,
  335. 0x21, 0x40,
  336. 0x22, 0x00,
  337. 0x23, 0x00,
  338. 0x24, 0x40,
  339. 0x25, 0x88,
  340. 0x30, 0xff,
  341. 0x31, 0x00,
  342. 0x32, 0xff,
  343. 0x33, 0x00,
  344. 0x34, 0x50,
  345. 0x35, 0x7f,
  346. 0x36, 0x00,
  347. 0x37, 0x20,
  348. 0x38, 0x00,
  349. 0x40, 0x1c,
  350. 0x41, 0xff,
  351. 0x42, 0x29,
  352. 0x43, 0x00,
  353. 0x44, 0xff,
  354. 0x45, 0x00,
  355. 0x46, 0x00,
  356. 0x49, 0x04,
  357. 0x4a, 0x00,
  358. 0x4b, 0xf8,
  359. 0x52, 0x30,
  360. 0x55, 0xae,
  361. 0x56, 0x47,
  362. 0x57, 0xe1,
  363. 0x58, 0x3a,
  364. 0x5a, 0x1e,
  365. 0x5b, 0x34,
  366. 0x60, 0x00,
  367. 0x63, 0x00,
  368. 0x64, 0x00,
  369. 0x65, 0x00,
  370. 0x66, 0x00,
  371. 0x67, 0x00,
  372. 0x68, 0x00,
  373. 0x69, 0x00,
  374. 0x6a, 0x02,
  375. 0x6b, 0x00,
  376. 0x70, 0xff,
  377. 0x71, 0x00,
  378. 0x72, 0x00,
  379. 0x73, 0x00,
  380. 0x74, 0x0c,
  381. 0x80, 0x00,
  382. 0x81, 0x00,
  383. 0x82, 0x00,
  384. 0x83, 0x00,
  385. 0x84, 0x04,
  386. 0x85, 0x80,
  387. 0x86, 0x24,
  388. 0x87, 0x78,
  389. 0x88, 0x10,
  390. 0x89, 0x00,
  391. 0x90, 0x01,
  392. 0x91, 0x01,
  393. 0xa0, 0x04,
  394. 0xa1, 0x00,
  395. 0xa2, 0x00,
  396. 0xb0, 0x91,
  397. 0xb1, 0x0b,
  398. 0xc0, 0x53,
  399. 0xc1, 0x70,
  400. 0xc2, 0x12,
  401. 0xd0, 0x00,
  402. 0xd1, 0x00,
  403. 0xd2, 0x00,
  404. 0xd3, 0x00,
  405. 0xd4, 0x00,
  406. 0xd5, 0x00,
  407. 0xde, 0x00,
  408. 0xdf, 0x00,
  409. 0x61, 0x49,
  410. 0x62, 0x0b,
  411. 0x53, 0x08,
  412. 0x59, 0x08,
  413. 0xff, 0xff,
  414. };
  415. static struct stv0297_config alps_tdee4_stv0297_config = {
  416. .demod_address = 0x1c,
  417. .inittab = alps_tdee4_stv0297_inittab,
  418. // .invert = 1,
  419. // .pll_set = alps_tdee4_stv0297_pll_set,
  420. };
  421. /* try to figure out the frontend, each card/box can have on of the following list */
  422. int flexcop_frontend_init(struct flexcop_device *fc)
  423. {
  424. struct dvb_frontend_ops *ops;
  425. /* try the sky v2.6 (stv0299/Samsung tbmu24112(sl1935)) */
  426. if ((fc->fe = stv0299_attach(&samsung_tbmu24112_config, &fc->i2c_adap)) != NULL) {
  427. ops = fc->fe->ops;
  428. ops->set_voltage = flexcop_set_voltage;
  429. fc->fe_sleep = ops->sleep;
  430. ops->sleep = flexcop_sleep;
  431. fc->dev_type = FC_SKY;
  432. info("found the stv0299 at i2c address: 0x%02x",samsung_tbmu24112_config.demod_address);
  433. } else
  434. /* try the air dvb-t (mt352/Samsung tdtc9251dh0(??)) */
  435. if ((fc->fe = mt352_attach(&samsung_tdtc9251dh0_config, &fc->i2c_adap)) != NULL ) {
  436. fc->dev_type = FC_AIR_DVB;
  437. info("found the mt352 at i2c address: 0x%02x",samsung_tdtc9251dh0_config.demod_address);
  438. } else
  439. /* try the air atsc 2nd generation (nxt2002) */
  440. if ((fc->fe = nxt200x_attach(&samsung_tbmv_config, &fc->i2c_adap)) != NULL) {
  441. fc->dev_type = FC_AIR_ATSC2;
  442. info("found the nxt2002 at i2c address: 0x%02x",samsung_tbmv_config.demod_address);
  443. } else
  444. /* try the air atsc 3nd generation (lgdt3303) */
  445. if ((fc->fe = lgdt330x_attach(&air2pc_atsc_hd5000_config, &fc->i2c_adap)) != NULL) {
  446. fc->dev_type = FC_AIR_ATSC3;
  447. info("found the lgdt3303 at i2c address: 0x%02x",air2pc_atsc_hd5000_config.demod_address);
  448. } else
  449. /* try the air atsc 1nd generation (bcm3510)/panasonic ct10s */
  450. if ((fc->fe = bcm3510_attach(&air2pc_atsc_first_gen_config, &fc->i2c_adap)) != NULL) {
  451. fc->dev_type = FC_AIR_ATSC1;
  452. info("found the bcm3510 at i2c address: 0x%02x",air2pc_atsc_first_gen_config.demod_address);
  453. } else
  454. /* try the cable dvb (stv0297) */
  455. if ((fc->fe = stv0297_attach(&alps_tdee4_stv0297_config, &fc->i2c_adap)) != NULL) {
  456. fc->dev_type = FC_CABLE;
  457. info("found the stv0297 at i2c address: 0x%02x",alps_tdee4_stv0297_config.demod_address);
  458. } else
  459. /* try the sky v2.3 (vp310/Samsung tbdu18132(tsa5059)) */
  460. if ((fc->fe = vp310_mt312_attach(&skystar23_samsung_tbdu18132_config, &fc->i2c_adap)) != NULL) {
  461. ops = fc->fe->ops;
  462. ops->diseqc_send_master_cmd = flexcop_diseqc_send_master_cmd;
  463. ops->diseqc_send_burst = flexcop_diseqc_send_burst;
  464. ops->set_tone = flexcop_set_tone;
  465. ops->set_voltage = flexcop_set_voltage;
  466. fc->fe_sleep = ops->sleep;
  467. ops->sleep = flexcop_sleep;
  468. fc->dev_type = FC_SKY_OLD;
  469. info("found the vp310 (aka mt312) at i2c address: 0x%02x",skystar23_samsung_tbdu18132_config.demod_address);
  470. }
  471. if (fc->fe == NULL) {
  472. err("no frontend driver found for this B2C2/FlexCop adapter");
  473. return -ENODEV;
  474. } else {
  475. if (dvb_register_frontend(&fc->dvb_adapter, fc->fe)) {
  476. err("frontend registration failed!");
  477. ops = fc->fe->ops;
  478. if (ops->release != NULL)
  479. ops->release(fc->fe);
  480. fc->fe = NULL;
  481. return -EINVAL;
  482. }
  483. }
  484. fc->init_state |= FC_STATE_FE_INIT;
  485. return 0;
  486. }
  487. void flexcop_frontend_exit(struct flexcop_device *fc)
  488. {
  489. if (fc->init_state & FC_STATE_FE_INIT)
  490. dvb_unregister_frontend(fc->fe);
  491. fc->init_state &= ~FC_STATE_FE_INIT;
  492. }