intel_crt.c 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580
  1. /*
  2. * Copyright © 2006-2007 Intel Corporation
  3. *
  4. * Permission is hereby granted, free of charge, to any person obtaining a
  5. * copy of this software and associated documentation files (the "Software"),
  6. * to deal in the Software without restriction, including without limitation
  7. * the rights to use, copy, modify, merge, publish, distribute, sublicense,
  8. * and/or sell copies of the Software, and to permit persons to whom the
  9. * Software is furnished to do so, subject to the following conditions:
  10. *
  11. * The above copyright notice and this permission notice (including the next
  12. * paragraph) shall be included in all copies or substantial portions of the
  13. * Software.
  14. *
  15. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  16. * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  17. * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
  18. * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  19. * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  20. * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
  21. * DEALINGS IN THE SOFTWARE.
  22. *
  23. * Authors:
  24. * Eric Anholt <eric@anholt.net>
  25. */
  26. #include <linux/i2c.h>
  27. #include <linux/slab.h>
  28. #include "drmP.h"
  29. #include "drm.h"
  30. #include "drm_crtc.h"
  31. #include "drm_crtc_helper.h"
  32. #include "intel_drv.h"
  33. #include "i915_drm.h"
  34. #include "i915_drv.h"
  35. static void intel_crt_dpms(struct drm_encoder *encoder, int mode)
  36. {
  37. struct drm_device *dev = encoder->dev;
  38. struct drm_i915_private *dev_priv = dev->dev_private;
  39. u32 temp, reg;
  40. if (HAS_PCH_SPLIT(dev))
  41. reg = PCH_ADPA;
  42. else
  43. reg = ADPA;
  44. temp = I915_READ(reg);
  45. temp &= ~(ADPA_HSYNC_CNTL_DISABLE | ADPA_VSYNC_CNTL_DISABLE);
  46. temp &= ~ADPA_DAC_ENABLE;
  47. switch(mode) {
  48. case DRM_MODE_DPMS_ON:
  49. temp |= ADPA_DAC_ENABLE;
  50. break;
  51. case DRM_MODE_DPMS_STANDBY:
  52. temp |= ADPA_DAC_ENABLE | ADPA_HSYNC_CNTL_DISABLE;
  53. break;
  54. case DRM_MODE_DPMS_SUSPEND:
  55. temp |= ADPA_DAC_ENABLE | ADPA_VSYNC_CNTL_DISABLE;
  56. break;
  57. case DRM_MODE_DPMS_OFF:
  58. temp |= ADPA_HSYNC_CNTL_DISABLE | ADPA_VSYNC_CNTL_DISABLE;
  59. break;
  60. }
  61. I915_WRITE(reg, temp);
  62. }
  63. static int intel_crt_mode_valid(struct drm_connector *connector,
  64. struct drm_display_mode *mode)
  65. {
  66. struct drm_device *dev = connector->dev;
  67. int max_clock = 0;
  68. if (mode->flags & DRM_MODE_FLAG_DBLSCAN)
  69. return MODE_NO_DBLESCAN;
  70. if (mode->clock < 25000)
  71. return MODE_CLOCK_LOW;
  72. if (!IS_I9XX(dev))
  73. max_clock = 350000;
  74. else
  75. max_clock = 400000;
  76. if (mode->clock > max_clock)
  77. return MODE_CLOCK_HIGH;
  78. return MODE_OK;
  79. }
  80. static bool intel_crt_mode_fixup(struct drm_encoder *encoder,
  81. struct drm_display_mode *mode,
  82. struct drm_display_mode *adjusted_mode)
  83. {
  84. return true;
  85. }
  86. static void intel_crt_mode_set(struct drm_encoder *encoder,
  87. struct drm_display_mode *mode,
  88. struct drm_display_mode *adjusted_mode)
  89. {
  90. struct drm_device *dev = encoder->dev;
  91. struct drm_crtc *crtc = encoder->crtc;
  92. struct intel_crtc *intel_crtc = to_intel_crtc(crtc);
  93. struct drm_i915_private *dev_priv = dev->dev_private;
  94. int dpll_md_reg;
  95. u32 adpa, dpll_md;
  96. u32 adpa_reg;
  97. if (intel_crtc->pipe == 0)
  98. dpll_md_reg = DPLL_A_MD;
  99. else
  100. dpll_md_reg = DPLL_B_MD;
  101. if (HAS_PCH_SPLIT(dev))
  102. adpa_reg = PCH_ADPA;
  103. else
  104. adpa_reg = ADPA;
  105. /*
  106. * Disable separate mode multiplier used when cloning SDVO to CRT
  107. * XXX this needs to be adjusted when we really are cloning
  108. */
  109. if (IS_I965G(dev) && !HAS_PCH_SPLIT(dev)) {
  110. dpll_md = I915_READ(dpll_md_reg);
  111. I915_WRITE(dpll_md_reg,
  112. dpll_md & ~DPLL_MD_UDI_MULTIPLIER_MASK);
  113. }
  114. adpa = 0;
  115. if (adjusted_mode->flags & DRM_MODE_FLAG_PHSYNC)
  116. adpa |= ADPA_HSYNC_ACTIVE_HIGH;
  117. if (adjusted_mode->flags & DRM_MODE_FLAG_PVSYNC)
  118. adpa |= ADPA_VSYNC_ACTIVE_HIGH;
  119. if (intel_crtc->pipe == 0) {
  120. if (HAS_PCH_CPT(dev))
  121. adpa |= PORT_TRANS_A_SEL_CPT;
  122. else
  123. adpa |= ADPA_PIPE_A_SELECT;
  124. if (!HAS_PCH_SPLIT(dev))
  125. I915_WRITE(BCLRPAT_A, 0);
  126. } else {
  127. if (HAS_PCH_CPT(dev))
  128. adpa |= PORT_TRANS_B_SEL_CPT;
  129. else
  130. adpa |= ADPA_PIPE_B_SELECT;
  131. if (!HAS_PCH_SPLIT(dev))
  132. I915_WRITE(BCLRPAT_B, 0);
  133. }
  134. I915_WRITE(adpa_reg, adpa);
  135. }
  136. static bool intel_ironlake_crt_detect_hotplug(struct drm_connector *connector)
  137. {
  138. struct drm_device *dev = connector->dev;
  139. struct drm_i915_private *dev_priv = dev->dev_private;
  140. u32 adpa, temp;
  141. bool ret;
  142. bool turn_off_dac = false;
  143. temp = adpa = I915_READ(PCH_ADPA);
  144. if (HAS_PCH_SPLIT(dev))
  145. turn_off_dac = true;
  146. adpa &= ~ADPA_CRT_HOTPLUG_MASK;
  147. if (turn_off_dac)
  148. adpa &= ~ADPA_DAC_ENABLE;
  149. /* disable HPD first */
  150. I915_WRITE(PCH_ADPA, adpa);
  151. (void)I915_READ(PCH_ADPA);
  152. adpa |= (ADPA_CRT_HOTPLUG_PERIOD_128 |
  153. ADPA_CRT_HOTPLUG_WARMUP_10MS |
  154. ADPA_CRT_HOTPLUG_SAMPLE_4S |
  155. ADPA_CRT_HOTPLUG_VOLTAGE_50 | /* default */
  156. ADPA_CRT_HOTPLUG_VOLREF_325MV |
  157. ADPA_CRT_HOTPLUG_ENABLE |
  158. ADPA_CRT_HOTPLUG_FORCE_TRIGGER);
  159. DRM_DEBUG_KMS("pch crt adpa 0x%x", adpa);
  160. I915_WRITE(PCH_ADPA, adpa);
  161. if (wait_for((I915_READ(PCH_ADPA) & ADPA_CRT_HOTPLUG_FORCE_TRIGGER) == 0,
  162. 1000, 1))
  163. DRM_ERROR("timed out waiting for FORCE_TRIGGER");
  164. if (turn_off_dac) {
  165. I915_WRITE(PCH_ADPA, temp);
  166. (void)I915_READ(PCH_ADPA);
  167. }
  168. /* Check the status to see if both blue and green are on now */
  169. adpa = I915_READ(PCH_ADPA);
  170. adpa &= ADPA_CRT_HOTPLUG_MONITOR_MASK;
  171. if ((adpa == ADPA_CRT_HOTPLUG_MONITOR_COLOR) ||
  172. (adpa == ADPA_CRT_HOTPLUG_MONITOR_MONO))
  173. ret = true;
  174. else
  175. ret = false;
  176. return ret;
  177. }
  178. /**
  179. * Uses CRT_HOTPLUG_EN and CRT_HOTPLUG_STAT to detect CRT presence.
  180. *
  181. * Not for i915G/i915GM
  182. *
  183. * \return true if CRT is connected.
  184. * \return false if CRT is disconnected.
  185. */
  186. static bool intel_crt_detect_hotplug(struct drm_connector *connector)
  187. {
  188. struct drm_device *dev = connector->dev;
  189. struct drm_i915_private *dev_priv = dev->dev_private;
  190. u32 hotplug_en, orig, stat;
  191. bool ret = false;
  192. int i, tries = 0;
  193. if (HAS_PCH_SPLIT(dev))
  194. return intel_ironlake_crt_detect_hotplug(connector);
  195. /*
  196. * On 4 series desktop, CRT detect sequence need to be done twice
  197. * to get a reliable result.
  198. */
  199. if (IS_G4X(dev) && !IS_GM45(dev))
  200. tries = 2;
  201. else
  202. tries = 1;
  203. hotplug_en = orig = I915_READ(PORT_HOTPLUG_EN);
  204. hotplug_en |= CRT_HOTPLUG_FORCE_DETECT;
  205. for (i = 0; i < tries ; i++) {
  206. /* turn on the FORCE_DETECT */
  207. I915_WRITE(PORT_HOTPLUG_EN, hotplug_en);
  208. /* wait for FORCE_DETECT to go off */
  209. if (wait_for((I915_READ(PORT_HOTPLUG_EN) &
  210. CRT_HOTPLUG_FORCE_DETECT) == 0,
  211. 1000, 1))
  212. DRM_ERROR("timed out waiting for FORCE_DETECT to go off");
  213. }
  214. stat = I915_READ(PORT_HOTPLUG_STAT);
  215. if ((stat & CRT_HOTPLUG_MONITOR_MASK) != CRT_HOTPLUG_MONITOR_NONE)
  216. ret = true;
  217. /* clear the interrupt we just generated, if any */
  218. I915_WRITE(PORT_HOTPLUG_STAT, CRT_HOTPLUG_INT_STATUS);
  219. /* and put the bits back */
  220. I915_WRITE(PORT_HOTPLUG_EN, orig);
  221. return ret;
  222. }
  223. static bool intel_crt_detect_ddc(struct drm_encoder *encoder)
  224. {
  225. struct intel_encoder *intel_encoder = enc_to_intel_encoder(encoder);
  226. /* CRT should always be at 0, but check anyway */
  227. if (intel_encoder->type != INTEL_OUTPUT_ANALOG)
  228. return false;
  229. return intel_ddc_probe(intel_encoder);
  230. }
  231. static enum drm_connector_status
  232. intel_crt_load_detect(struct drm_crtc *crtc, struct intel_encoder *intel_encoder)
  233. {
  234. struct drm_encoder *encoder = &intel_encoder->enc;
  235. struct drm_device *dev = encoder->dev;
  236. struct drm_i915_private *dev_priv = dev->dev_private;
  237. struct intel_crtc *intel_crtc = to_intel_crtc(crtc);
  238. uint32_t pipe = intel_crtc->pipe;
  239. uint32_t save_bclrpat;
  240. uint32_t save_vtotal;
  241. uint32_t vtotal, vactive;
  242. uint32_t vsample;
  243. uint32_t vblank, vblank_start, vblank_end;
  244. uint32_t dsl;
  245. uint32_t bclrpat_reg;
  246. uint32_t vtotal_reg;
  247. uint32_t vblank_reg;
  248. uint32_t vsync_reg;
  249. uint32_t pipeconf_reg;
  250. uint32_t pipe_dsl_reg;
  251. uint8_t st00;
  252. enum drm_connector_status status;
  253. if (pipe == 0) {
  254. bclrpat_reg = BCLRPAT_A;
  255. vtotal_reg = VTOTAL_A;
  256. vblank_reg = VBLANK_A;
  257. vsync_reg = VSYNC_A;
  258. pipeconf_reg = PIPEACONF;
  259. pipe_dsl_reg = PIPEADSL;
  260. } else {
  261. bclrpat_reg = BCLRPAT_B;
  262. vtotal_reg = VTOTAL_B;
  263. vblank_reg = VBLANK_B;
  264. vsync_reg = VSYNC_B;
  265. pipeconf_reg = PIPEBCONF;
  266. pipe_dsl_reg = PIPEBDSL;
  267. }
  268. save_bclrpat = I915_READ(bclrpat_reg);
  269. save_vtotal = I915_READ(vtotal_reg);
  270. vblank = I915_READ(vblank_reg);
  271. vtotal = ((save_vtotal >> 16) & 0xfff) + 1;
  272. vactive = (save_vtotal & 0x7ff) + 1;
  273. vblank_start = (vblank & 0xfff) + 1;
  274. vblank_end = ((vblank >> 16) & 0xfff) + 1;
  275. /* Set the border color to purple. */
  276. I915_WRITE(bclrpat_reg, 0x500050);
  277. if (IS_I9XX(dev)) {
  278. uint32_t pipeconf = I915_READ(pipeconf_reg);
  279. I915_WRITE(pipeconf_reg, pipeconf | PIPECONF_FORCE_BORDER);
  280. /* Wait for next Vblank to substitue
  281. * border color for Color info */
  282. intel_wait_for_vblank(dev, pipe);
  283. st00 = I915_READ8(VGA_MSR_WRITE);
  284. status = ((st00 & (1 << 4)) != 0) ?
  285. connector_status_connected :
  286. connector_status_disconnected;
  287. I915_WRITE(pipeconf_reg, pipeconf);
  288. } else {
  289. bool restore_vblank = false;
  290. int count, detect;
  291. /*
  292. * If there isn't any border, add some.
  293. * Yes, this will flicker
  294. */
  295. if (vblank_start <= vactive && vblank_end >= vtotal) {
  296. uint32_t vsync = I915_READ(vsync_reg);
  297. uint32_t vsync_start = (vsync & 0xffff) + 1;
  298. vblank_start = vsync_start;
  299. I915_WRITE(vblank_reg,
  300. (vblank_start - 1) |
  301. ((vblank_end - 1) << 16));
  302. restore_vblank = true;
  303. }
  304. /* sample in the vertical border, selecting the larger one */
  305. if (vblank_start - vactive >= vtotal - vblank_end)
  306. vsample = (vblank_start + vactive) >> 1;
  307. else
  308. vsample = (vtotal + vblank_end) >> 1;
  309. /*
  310. * Wait for the border to be displayed
  311. */
  312. while (I915_READ(pipe_dsl_reg) >= vactive)
  313. ;
  314. while ((dsl = I915_READ(pipe_dsl_reg)) <= vsample)
  315. ;
  316. /*
  317. * Watch ST00 for an entire scanline
  318. */
  319. detect = 0;
  320. count = 0;
  321. do {
  322. count++;
  323. /* Read the ST00 VGA status register */
  324. st00 = I915_READ8(VGA_MSR_WRITE);
  325. if (st00 & (1 << 4))
  326. detect++;
  327. } while ((I915_READ(pipe_dsl_reg) == dsl));
  328. /* restore vblank if necessary */
  329. if (restore_vblank)
  330. I915_WRITE(vblank_reg, vblank);
  331. /*
  332. * If more than 3/4 of the scanline detected a monitor,
  333. * then it is assumed to be present. This works even on i830,
  334. * where there isn't any way to force the border color across
  335. * the screen
  336. */
  337. status = detect * 4 > count * 3 ?
  338. connector_status_connected :
  339. connector_status_disconnected;
  340. }
  341. /* Restore previous settings */
  342. I915_WRITE(bclrpat_reg, save_bclrpat);
  343. return status;
  344. }
  345. static enum drm_connector_status
  346. intel_crt_detect(struct drm_connector *connector, bool force)
  347. {
  348. struct drm_device *dev = connector->dev;
  349. struct drm_encoder *encoder = intel_attached_encoder(connector);
  350. struct intel_encoder *intel_encoder = enc_to_intel_encoder(encoder);
  351. struct drm_crtc *crtc;
  352. int dpms_mode;
  353. enum drm_connector_status status;
  354. if (IS_I9XX(dev) && !IS_I915G(dev) && !IS_I915GM(dev)) {
  355. if (intel_crt_detect_hotplug(connector))
  356. return connector_status_connected;
  357. else
  358. return connector_status_disconnected;
  359. }
  360. if (intel_crt_detect_ddc(encoder))
  361. return connector_status_connected;
  362. if (!force)
  363. return connector->status;
  364. /* for pre-945g platforms use load detect */
  365. if (encoder->crtc && encoder->crtc->enabled) {
  366. status = intel_crt_load_detect(encoder->crtc, intel_encoder);
  367. } else {
  368. crtc = intel_get_load_detect_pipe(intel_encoder, connector,
  369. NULL, &dpms_mode);
  370. if (crtc) {
  371. status = intel_crt_load_detect(crtc, intel_encoder);
  372. intel_release_load_detect_pipe(intel_encoder,
  373. connector, dpms_mode);
  374. } else
  375. status = connector_status_unknown;
  376. }
  377. return status;
  378. }
  379. static void intel_crt_destroy(struct drm_connector *connector)
  380. {
  381. drm_sysfs_connector_remove(connector);
  382. drm_connector_cleanup(connector);
  383. kfree(connector);
  384. }
  385. static int intel_crt_get_modes(struct drm_connector *connector)
  386. {
  387. int ret;
  388. struct drm_encoder *encoder = intel_attached_encoder(connector);
  389. struct intel_encoder *intel_encoder = enc_to_intel_encoder(encoder);
  390. struct i2c_adapter *ddc_bus;
  391. struct drm_device *dev = connector->dev;
  392. ret = intel_ddc_get_modes(connector, intel_encoder->ddc_bus);
  393. if (ret || !IS_G4X(dev))
  394. goto end;
  395. /* Try to probe digital port for output in DVI-I -> VGA mode. */
  396. ddc_bus = intel_i2c_create(connector->dev, GPIOD, "CRTDDC_D");
  397. if (!ddc_bus) {
  398. dev_printk(KERN_ERR, &connector->dev->pdev->dev,
  399. "DDC bus registration failed for CRTDDC_D.\n");
  400. goto end;
  401. }
  402. /* Try to get modes by GPIOD port */
  403. ret = intel_ddc_get_modes(connector, ddc_bus);
  404. intel_i2c_destroy(ddc_bus);
  405. end:
  406. return ret;
  407. }
  408. static int intel_crt_set_property(struct drm_connector *connector,
  409. struct drm_property *property,
  410. uint64_t value)
  411. {
  412. return 0;
  413. }
  414. /*
  415. * Routines for controlling stuff on the analog port
  416. */
  417. static const struct drm_encoder_helper_funcs intel_crt_helper_funcs = {
  418. .dpms = intel_crt_dpms,
  419. .mode_fixup = intel_crt_mode_fixup,
  420. .prepare = intel_encoder_prepare,
  421. .commit = intel_encoder_commit,
  422. .mode_set = intel_crt_mode_set,
  423. };
  424. static const struct drm_connector_funcs intel_crt_connector_funcs = {
  425. .dpms = drm_helper_connector_dpms,
  426. .detect = intel_crt_detect,
  427. .fill_modes = drm_helper_probe_single_connector_modes,
  428. .destroy = intel_crt_destroy,
  429. .set_property = intel_crt_set_property,
  430. };
  431. static const struct drm_connector_helper_funcs intel_crt_connector_helper_funcs = {
  432. .mode_valid = intel_crt_mode_valid,
  433. .get_modes = intel_crt_get_modes,
  434. .best_encoder = intel_attached_encoder,
  435. };
  436. static const struct drm_encoder_funcs intel_crt_enc_funcs = {
  437. .destroy = intel_encoder_destroy,
  438. };
  439. void intel_crt_init(struct drm_device *dev)
  440. {
  441. struct drm_connector *connector;
  442. struct intel_encoder *intel_encoder;
  443. struct intel_connector *intel_connector;
  444. struct drm_i915_private *dev_priv = dev->dev_private;
  445. u32 i2c_reg;
  446. intel_encoder = kzalloc(sizeof(struct intel_encoder), GFP_KERNEL);
  447. if (!intel_encoder)
  448. return;
  449. intel_connector = kzalloc(sizeof(struct intel_connector), GFP_KERNEL);
  450. if (!intel_connector) {
  451. kfree(intel_encoder);
  452. return;
  453. }
  454. connector = &intel_connector->base;
  455. drm_connector_init(dev, &intel_connector->base,
  456. &intel_crt_connector_funcs, DRM_MODE_CONNECTOR_VGA);
  457. drm_encoder_init(dev, &intel_encoder->enc, &intel_crt_enc_funcs,
  458. DRM_MODE_ENCODER_DAC);
  459. drm_mode_connector_attach_encoder(&intel_connector->base,
  460. &intel_encoder->enc);
  461. /* Set up the DDC bus. */
  462. if (HAS_PCH_SPLIT(dev))
  463. i2c_reg = PCH_GPIOA;
  464. else {
  465. i2c_reg = GPIOA;
  466. /* Use VBT information for CRT DDC if available */
  467. if (dev_priv->crt_ddc_bus != 0)
  468. i2c_reg = dev_priv->crt_ddc_bus;
  469. }
  470. intel_encoder->ddc_bus = intel_i2c_create(dev, i2c_reg, "CRTDDC_A");
  471. if (!intel_encoder->ddc_bus) {
  472. dev_printk(KERN_ERR, &dev->pdev->dev, "DDC bus registration "
  473. "failed.\n");
  474. return;
  475. }
  476. intel_encoder->type = INTEL_OUTPUT_ANALOG;
  477. intel_encoder->clone_mask = (1 << INTEL_SDVO_NON_TV_CLONE_BIT) |
  478. (1 << INTEL_ANALOG_CLONE_BIT) |
  479. (1 << INTEL_SDVO_LVDS_CLONE_BIT);
  480. intel_encoder->crtc_mask = (1 << 0) | (1 << 1);
  481. connector->interlace_allowed = 1;
  482. connector->doublescan_allowed = 0;
  483. drm_encoder_helper_add(&intel_encoder->enc, &intel_crt_helper_funcs);
  484. drm_connector_helper_add(connector, &intel_crt_connector_helper_funcs);
  485. drm_sysfs_connector_add(connector);
  486. if (I915_HAS_HOTPLUG(dev))
  487. connector->polled = DRM_CONNECTOR_POLL_HPD;
  488. else
  489. connector->polled = DRM_CONNECTOR_POLL_CONNECT;
  490. dev_priv->hotplug_supported_mask |= CRT_HOTPLUG_INT_STATUS;
  491. }