phy.h 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592
  1. /*
  2. * include/linux/phy.h
  3. *
  4. * Framework and drivers for configuring and reading different PHYs
  5. * Based on code in sungem_phy.c and gianfar_phy.c
  6. *
  7. * Author: Andy Fleming
  8. *
  9. * Copyright (c) 2004 Freescale Semiconductor, Inc.
  10. *
  11. * This program is free software; you can redistribute it and/or modify it
  12. * under the terms of the GNU General Public License as published by the
  13. * Free Software Foundation; either version 2 of the License, or (at your
  14. * option) any later version.
  15. *
  16. */
  17. #ifndef __PHY_H
  18. #define __PHY_H
  19. #include <linux/spinlock.h>
  20. #include <linux/ethtool.h>
  21. #include <linux/mii.h>
  22. #include <linux/timer.h>
  23. #include <linux/workqueue.h>
  24. #include <linux/mod_devicetable.h>
  25. #include <linux/atomic.h>
  26. #define PHY_BASIC_FEATURES (SUPPORTED_10baseT_Half | \
  27. SUPPORTED_10baseT_Full | \
  28. SUPPORTED_100baseT_Half | \
  29. SUPPORTED_100baseT_Full | \
  30. SUPPORTED_Autoneg | \
  31. SUPPORTED_TP | \
  32. SUPPORTED_MII)
  33. #define PHY_GBIT_FEATURES (PHY_BASIC_FEATURES | \
  34. SUPPORTED_1000baseT_Half | \
  35. SUPPORTED_1000baseT_Full)
  36. /*
  37. * Set phydev->irq to PHY_POLL if interrupts are not supported,
  38. * or not desired for this PHY. Set to PHY_IGNORE_INTERRUPT if
  39. * the attached driver handles the interrupt
  40. */
  41. #define PHY_POLL -1
  42. #define PHY_IGNORE_INTERRUPT -2
  43. #define PHY_HAS_INTERRUPT 0x00000001
  44. #define PHY_HAS_MAGICANEG 0x00000002
  45. /* Interface Mode definitions */
  46. typedef enum {
  47. PHY_INTERFACE_MODE_NA,
  48. PHY_INTERFACE_MODE_MII,
  49. PHY_INTERFACE_MODE_GMII,
  50. PHY_INTERFACE_MODE_SGMII,
  51. PHY_INTERFACE_MODE_TBI,
  52. PHY_INTERFACE_MODE_RMII,
  53. PHY_INTERFACE_MODE_RGMII,
  54. PHY_INTERFACE_MODE_RGMII_ID,
  55. PHY_INTERFACE_MODE_RGMII_RXID,
  56. PHY_INTERFACE_MODE_RGMII_TXID,
  57. PHY_INTERFACE_MODE_RTBI,
  58. PHY_INTERFACE_MODE_SMII,
  59. } phy_interface_t;
  60. #define PHY_INIT_TIMEOUT 100000
  61. #define PHY_STATE_TIME 1
  62. #define PHY_FORCE_TIMEOUT 10
  63. #define PHY_AN_TIMEOUT 10
  64. #define PHY_MAX_ADDR 32
  65. /* Used when trying to connect to a specific phy (mii bus id:phy device id) */
  66. #define PHY_ID_FMT "%s:%02x"
  67. /*
  68. * Need to be a little smaller than phydev->dev.bus_id to leave room
  69. * for the ":%02x"
  70. */
  71. #define MII_BUS_ID_SIZE (20 - 3)
  72. /* Or MII_ADDR_C45 into regnum for read/write on mii_bus to enable the 21 bit
  73. IEEE 802.3ae clause 45 addressing mode used by 10GIGE phy chips. */
  74. #define MII_ADDR_C45 (1<<30)
  75. struct device;
  76. struct sk_buff;
  77. /*
  78. * The Bus class for PHYs. Devices which provide access to
  79. * PHYs should register using this structure
  80. */
  81. struct mii_bus {
  82. const char *name;
  83. char id[MII_BUS_ID_SIZE];
  84. void *priv;
  85. int (*read)(struct mii_bus *bus, int phy_id, int regnum);
  86. int (*write)(struct mii_bus *bus, int phy_id, int regnum, u16 val);
  87. int (*reset)(struct mii_bus *bus);
  88. /*
  89. * A lock to ensure that only one thing can read/write
  90. * the MDIO bus at a time
  91. */
  92. struct mutex mdio_lock;
  93. struct device *parent;
  94. enum {
  95. MDIOBUS_ALLOCATED = 1,
  96. MDIOBUS_REGISTERED,
  97. MDIOBUS_UNREGISTERED,
  98. MDIOBUS_RELEASED,
  99. } state;
  100. struct device dev;
  101. /* list of all PHYs on bus */
  102. struct phy_device *phy_map[PHY_MAX_ADDR];
  103. /* PHY addresses to be ignored when probing */
  104. u32 phy_mask;
  105. /*
  106. * Pointer to an array of interrupts, each PHY's
  107. * interrupt at the index matching its address
  108. */
  109. int *irq;
  110. };
  111. #define to_mii_bus(d) container_of(d, struct mii_bus, dev)
  112. struct mii_bus *mdiobus_alloc_size(size_t);
  113. static inline struct mii_bus *mdiobus_alloc(void)
  114. {
  115. return mdiobus_alloc_size(0);
  116. }
  117. int mdiobus_register(struct mii_bus *bus);
  118. void mdiobus_unregister(struct mii_bus *bus);
  119. void mdiobus_free(struct mii_bus *bus);
  120. struct phy_device *mdiobus_scan(struct mii_bus *bus, int addr);
  121. int mdiobus_read(struct mii_bus *bus, int addr, u32 regnum);
  122. int mdiobus_write(struct mii_bus *bus, int addr, u32 regnum, u16 val);
  123. #define PHY_INTERRUPT_DISABLED 0x0
  124. #define PHY_INTERRUPT_ENABLED 0x80000000
  125. /* PHY state machine states:
  126. *
  127. * DOWN: PHY device and driver are not ready for anything. probe
  128. * should be called if and only if the PHY is in this state,
  129. * given that the PHY device exists.
  130. * - PHY driver probe function will, depending on the PHY, set
  131. * the state to STARTING or READY
  132. *
  133. * STARTING: PHY device is coming up, and the ethernet driver is
  134. * not ready. PHY drivers may set this in the probe function.
  135. * If they do, they are responsible for making sure the state is
  136. * eventually set to indicate whether the PHY is UP or READY,
  137. * depending on the state when the PHY is done starting up.
  138. * - PHY driver will set the state to READY
  139. * - start will set the state to PENDING
  140. *
  141. * READY: PHY is ready to send and receive packets, but the
  142. * controller is not. By default, PHYs which do not implement
  143. * probe will be set to this state by phy_probe(). If the PHY
  144. * driver knows the PHY is ready, and the PHY state is STARTING,
  145. * then it sets this STATE.
  146. * - start will set the state to UP
  147. *
  148. * PENDING: PHY device is coming up, but the ethernet driver is
  149. * ready. phy_start will set this state if the PHY state is
  150. * STARTING.
  151. * - PHY driver will set the state to UP when the PHY is ready
  152. *
  153. * UP: The PHY and attached device are ready to do work.
  154. * Interrupts should be started here.
  155. * - timer moves to AN
  156. *
  157. * AN: The PHY is currently negotiating the link state. Link is
  158. * therefore down for now. phy_timer will set this state when it
  159. * detects the state is UP. config_aneg will set this state
  160. * whenever called with phydev->autoneg set to AUTONEG_ENABLE.
  161. * - If autonegotiation finishes, but there's no link, it sets
  162. * the state to NOLINK.
  163. * - If aneg finishes with link, it sets the state to RUNNING,
  164. * and calls adjust_link
  165. * - If autonegotiation did not finish after an arbitrary amount
  166. * of time, autonegotiation should be tried again if the PHY
  167. * supports "magic" autonegotiation (back to AN)
  168. * - If it didn't finish, and no magic_aneg, move to FORCING.
  169. *
  170. * NOLINK: PHY is up, but not currently plugged in.
  171. * - If the timer notes that the link comes back, we move to RUNNING
  172. * - config_aneg moves to AN
  173. * - phy_stop moves to HALTED
  174. *
  175. * FORCING: PHY is being configured with forced settings
  176. * - if link is up, move to RUNNING
  177. * - If link is down, we drop to the next highest setting, and
  178. * retry (FORCING) after a timeout
  179. * - phy_stop moves to HALTED
  180. *
  181. * RUNNING: PHY is currently up, running, and possibly sending
  182. * and/or receiving packets
  183. * - timer will set CHANGELINK if we're polling (this ensures the
  184. * link state is polled every other cycle of this state machine,
  185. * which makes it every other second)
  186. * - irq will set CHANGELINK
  187. * - config_aneg will set AN
  188. * - phy_stop moves to HALTED
  189. *
  190. * CHANGELINK: PHY experienced a change in link state
  191. * - timer moves to RUNNING if link
  192. * - timer moves to NOLINK if the link is down
  193. * - phy_stop moves to HALTED
  194. *
  195. * HALTED: PHY is up, but no polling or interrupts are done. Or
  196. * PHY is in an error state.
  197. *
  198. * - phy_start moves to RESUMING
  199. *
  200. * RESUMING: PHY was halted, but now wants to run again.
  201. * - If we are forcing, or aneg is done, timer moves to RUNNING
  202. * - If aneg is not done, timer moves to AN
  203. * - phy_stop moves to HALTED
  204. */
  205. enum phy_state {
  206. PHY_DOWN=0,
  207. PHY_STARTING,
  208. PHY_READY,
  209. PHY_PENDING,
  210. PHY_UP,
  211. PHY_AN,
  212. PHY_RUNNING,
  213. PHY_NOLINK,
  214. PHY_FORCING,
  215. PHY_CHANGELINK,
  216. PHY_HALTED,
  217. PHY_RESUMING
  218. };
  219. /**
  220. * struct phy_c45_device_ids - 802.3-c45 Device Identifiers
  221. * @devices_in_package: Bit vector of devices present.
  222. * @device_ids: The device identifer for each present device.
  223. */
  224. struct phy_c45_device_ids {
  225. u32 devices_in_package;
  226. u32 device_ids[8];
  227. };
  228. /* phy_device: An instance of a PHY
  229. *
  230. * drv: Pointer to the driver for this PHY instance
  231. * bus: Pointer to the bus this PHY is on
  232. * dev: driver model device structure for this PHY
  233. * phy_id: UID for this device found during discovery
  234. * c45_ids: 802.3-c45 Device Identifers if is_c45.
  235. * is_c45: Set to true if this phy uses clause 45 addressing.
  236. * state: state of the PHY for management purposes
  237. * dev_flags: Device-specific flags used by the PHY driver.
  238. * addr: Bus address of PHY
  239. * link_timeout: The number of timer firings to wait before the
  240. * giving up on the current attempt at acquiring a link
  241. * irq: IRQ number of the PHY's interrupt (-1 if none)
  242. * phy_timer: The timer for handling the state machine
  243. * phy_queue: A work_queue for the interrupt
  244. * attached_dev: The attached enet driver's device instance ptr
  245. * adjust_link: Callback for the enet controller to respond to
  246. * changes in the link state.
  247. * adjust_state: Callback for the enet driver to respond to
  248. * changes in the state machine.
  249. *
  250. * speed, duplex, pause, supported, advertising, and
  251. * autoneg are used like in mii_if_info
  252. *
  253. * interrupts currently only supports enabled or disabled,
  254. * but could be changed in the future to support enabling
  255. * and disabling specific interrupts
  256. *
  257. * Contains some infrastructure for polling and interrupt
  258. * handling, as well as handling shifts in PHY hardware state
  259. */
  260. struct phy_device {
  261. /* Information about the PHY type */
  262. /* And management functions */
  263. struct phy_driver *drv;
  264. struct mii_bus *bus;
  265. struct device dev;
  266. u32 phy_id;
  267. struct phy_c45_device_ids c45_ids;
  268. bool is_c45;
  269. enum phy_state state;
  270. u32 dev_flags;
  271. phy_interface_t interface;
  272. /* Bus address of the PHY (0-31) */
  273. int addr;
  274. /*
  275. * forced speed & duplex (no autoneg)
  276. * partner speed & duplex & pause (autoneg)
  277. */
  278. int speed;
  279. int duplex;
  280. int pause;
  281. int asym_pause;
  282. /* The most recently read link state */
  283. int link;
  284. /* Enabled Interrupts */
  285. u32 interrupts;
  286. /* Union of PHY and Attached devices' supported modes */
  287. /* See mii.h for more info */
  288. u32 supported;
  289. u32 advertising;
  290. int autoneg;
  291. int link_timeout;
  292. /*
  293. * Interrupt number for this PHY
  294. * -1 means no interrupt
  295. */
  296. int irq;
  297. /* private data pointer */
  298. /* For use by PHYs to maintain extra state */
  299. void *priv;
  300. /* Interrupt and Polling infrastructure */
  301. struct work_struct phy_queue;
  302. struct delayed_work state_queue;
  303. atomic_t irq_disable;
  304. struct mutex lock;
  305. struct net_device *attached_dev;
  306. void (*adjust_link)(struct net_device *dev);
  307. void (*adjust_state)(struct net_device *dev);
  308. };
  309. #define to_phy_device(d) container_of(d, struct phy_device, dev)
  310. /* struct phy_driver: Driver structure for a particular PHY type
  311. *
  312. * phy_id: The result of reading the UID registers of this PHY
  313. * type, and ANDing them with the phy_id_mask. This driver
  314. * only works for PHYs with IDs which match this field
  315. * name: The friendly name of this PHY type
  316. * phy_id_mask: Defines the important bits of the phy_id
  317. * features: A list of features (speed, duplex, etc) supported
  318. * by this PHY
  319. * flags: A bitfield defining certain other features this PHY
  320. * supports (like interrupts)
  321. *
  322. * The drivers must implement config_aneg and read_status. All
  323. * other functions are optional. Note that none of these
  324. * functions should be called from interrupt time. The goal is
  325. * for the bus read/write functions to be able to block when the
  326. * bus transaction is happening, and be freed up by an interrupt
  327. * (The MPC85xx has this ability, though it is not currently
  328. * supported in the driver).
  329. */
  330. struct phy_driver {
  331. u32 phy_id;
  332. char *name;
  333. unsigned int phy_id_mask;
  334. u32 features;
  335. u32 flags;
  336. /*
  337. * Called to initialize the PHY,
  338. * including after a reset
  339. */
  340. int (*config_init)(struct phy_device *phydev);
  341. /*
  342. * Called during discovery. Used to set
  343. * up device-specific structures, if any
  344. */
  345. int (*probe)(struct phy_device *phydev);
  346. /* PHY Power Management */
  347. int (*suspend)(struct phy_device *phydev);
  348. int (*resume)(struct phy_device *phydev);
  349. /*
  350. * Configures the advertisement and resets
  351. * autonegotiation if phydev->autoneg is on,
  352. * forces the speed to the current settings in phydev
  353. * if phydev->autoneg is off
  354. */
  355. int (*config_aneg)(struct phy_device *phydev);
  356. /* Determines the negotiated speed and duplex */
  357. int (*read_status)(struct phy_device *phydev);
  358. /* Clears any pending interrupts */
  359. int (*ack_interrupt)(struct phy_device *phydev);
  360. /* Enables or disables interrupts */
  361. int (*config_intr)(struct phy_device *phydev);
  362. /*
  363. * Checks if the PHY generated an interrupt.
  364. * For multi-PHY devices with shared PHY interrupt pin
  365. */
  366. int (*did_interrupt)(struct phy_device *phydev);
  367. /* Clears up any memory if needed */
  368. void (*remove)(struct phy_device *phydev);
  369. /* Returns true if this is a suitable driver for the given
  370. * phydev. If NULL, matching is based on phy_id and
  371. * phy_id_mask.
  372. */
  373. int (*match_phy_device)(struct phy_device *phydev);
  374. /* Handles ethtool queries for hardware time stamping. */
  375. int (*ts_info)(struct phy_device *phydev, struct ethtool_ts_info *ti);
  376. /* Handles SIOCSHWTSTAMP ioctl for hardware time stamping. */
  377. int (*hwtstamp)(struct phy_device *phydev, struct ifreq *ifr);
  378. /*
  379. * Requests a Rx timestamp for 'skb'. If the skb is accepted,
  380. * the phy driver promises to deliver it using netif_rx() as
  381. * soon as a timestamp becomes available. One of the
  382. * PTP_CLASS_ values is passed in 'type'. The function must
  383. * return true if the skb is accepted for delivery.
  384. */
  385. bool (*rxtstamp)(struct phy_device *dev, struct sk_buff *skb, int type);
  386. /*
  387. * Requests a Tx timestamp for 'skb'. The phy driver promises
  388. * to deliver it using skb_complete_tx_timestamp() as soon as a
  389. * timestamp becomes available. One of the PTP_CLASS_ values
  390. * is passed in 'type'.
  391. */
  392. void (*txtstamp)(struct phy_device *dev, struct sk_buff *skb, int type);
  393. /* Some devices (e.g. qnap TS-119P II) require PHY register changes to
  394. * enable Wake on LAN, so set_wol is provided to be called in the
  395. * ethernet driver's set_wol function. */
  396. int (*set_wol)(struct phy_device *dev, struct ethtool_wolinfo *wol);
  397. /* See set_wol, but for checking whether Wake on LAN is enabled. */
  398. void (*get_wol)(struct phy_device *dev, struct ethtool_wolinfo *wol);
  399. struct device_driver driver;
  400. };
  401. #define to_phy_driver(d) container_of(d, struct phy_driver, driver)
  402. #define PHY_ANY_ID "MATCH ANY PHY"
  403. #define PHY_ANY_UID 0xffffffff
  404. /* A Structure for boards to register fixups with the PHY Lib */
  405. struct phy_fixup {
  406. struct list_head list;
  407. char bus_id[20];
  408. u32 phy_uid;
  409. u32 phy_uid_mask;
  410. int (*run)(struct phy_device *phydev);
  411. };
  412. /**
  413. * phy_read - Convenience function for reading a given PHY register
  414. * @phydev: the phy_device struct
  415. * @regnum: register number to read
  416. *
  417. * NOTE: MUST NOT be called from interrupt context,
  418. * because the bus read/write functions may wait for an interrupt
  419. * to conclude the operation.
  420. */
  421. static inline int phy_read(struct phy_device *phydev, u32 regnum)
  422. {
  423. return mdiobus_read(phydev->bus, phydev->addr, regnum);
  424. }
  425. /**
  426. * phy_write - Convenience function for writing a given PHY register
  427. * @phydev: the phy_device struct
  428. * @regnum: register number to write
  429. * @val: value to write to @regnum
  430. *
  431. * NOTE: MUST NOT be called from interrupt context,
  432. * because the bus read/write functions may wait for an interrupt
  433. * to conclude the operation.
  434. */
  435. static inline int phy_write(struct phy_device *phydev, u32 regnum, u16 val)
  436. {
  437. return mdiobus_write(phydev->bus, phydev->addr, regnum, val);
  438. }
  439. /**
  440. * phy_interrupt_is_valid - Convenience function for testing a given PHY irq
  441. * @phydev: the phy_device struct
  442. *
  443. * NOTE: must be kept in sync with addition/removal of PHY_POLL and
  444. * PHY_IGNORE_INTERRUPT
  445. */
  446. static inline bool phy_interrupt_is_valid(struct phy_device *phydev)
  447. {
  448. return phydev->irq != PHY_POLL && phydev->irq != PHY_IGNORE_INTERRUPT;
  449. }
  450. struct phy_device *phy_device_create(struct mii_bus *bus, int addr, int phy_id,
  451. bool is_c45, struct phy_c45_device_ids *c45_ids);
  452. struct phy_device *get_phy_device(struct mii_bus *bus, int addr, bool is_c45);
  453. int phy_device_register(struct phy_device *phy);
  454. int phy_init_hw(struct phy_device *phydev);
  455. struct phy_device * phy_attach(struct net_device *dev,
  456. const char *bus_id, phy_interface_t interface);
  457. struct phy_device *phy_find_first(struct mii_bus *bus);
  458. int phy_connect_direct(struct net_device *dev, struct phy_device *phydev,
  459. void (*handler)(struct net_device *),
  460. phy_interface_t interface);
  461. struct phy_device * phy_connect(struct net_device *dev, const char *bus_id,
  462. void (*handler)(struct net_device *),
  463. phy_interface_t interface);
  464. void phy_disconnect(struct phy_device *phydev);
  465. void phy_detach(struct phy_device *phydev);
  466. void phy_start(struct phy_device *phydev);
  467. void phy_stop(struct phy_device *phydev);
  468. int phy_start_aneg(struct phy_device *phydev);
  469. int phy_stop_interrupts(struct phy_device *phydev);
  470. static inline int phy_read_status(struct phy_device *phydev) {
  471. return phydev->drv->read_status(phydev);
  472. }
  473. int genphy_restart_aneg(struct phy_device *phydev);
  474. int genphy_config_aneg(struct phy_device *phydev);
  475. int genphy_update_link(struct phy_device *phydev);
  476. int genphy_read_status(struct phy_device *phydev);
  477. int genphy_suspend(struct phy_device *phydev);
  478. int genphy_resume(struct phy_device *phydev);
  479. void phy_driver_unregister(struct phy_driver *drv);
  480. void phy_drivers_unregister(struct phy_driver *drv, int n);
  481. int phy_driver_register(struct phy_driver *new_driver);
  482. int phy_drivers_register(struct phy_driver *new_driver, int n);
  483. void phy_state_machine(struct work_struct *work);
  484. void phy_change(struct work_struct *work);
  485. void phy_mac_interrupt(struct phy_device *phydev, int new_link);
  486. void phy_start_machine(struct phy_device *phydev,
  487. void (*handler)(struct net_device *));
  488. void phy_stop_machine(struct phy_device *phydev);
  489. int phy_ethtool_sset(struct phy_device *phydev, struct ethtool_cmd *cmd);
  490. int phy_ethtool_gset(struct phy_device *phydev, struct ethtool_cmd *cmd);
  491. int phy_mii_ioctl(struct phy_device *phydev,
  492. struct ifreq *ifr, int cmd);
  493. int phy_start_interrupts(struct phy_device *phydev);
  494. void phy_print_status(struct phy_device *phydev);
  495. void phy_device_free(struct phy_device *phydev);
  496. int phy_register_fixup(const char *bus_id, u32 phy_uid, u32 phy_uid_mask,
  497. int (*run)(struct phy_device *));
  498. int phy_register_fixup_for_id(const char *bus_id,
  499. int (*run)(struct phy_device *));
  500. int phy_register_fixup_for_uid(u32 phy_uid, u32 phy_uid_mask,
  501. int (*run)(struct phy_device *));
  502. int phy_scan_fixups(struct phy_device *phydev);
  503. int phy_init_eee(struct phy_device *phydev, bool clk_stop_enable);
  504. int phy_get_eee_err(struct phy_device *phydev);
  505. int phy_ethtool_set_eee(struct phy_device *phydev, struct ethtool_eee *data);
  506. int phy_ethtool_get_eee(struct phy_device *phydev, struct ethtool_eee *data);
  507. int phy_ethtool_set_wol(struct phy_device *phydev, struct ethtool_wolinfo *wol);
  508. void phy_ethtool_get_wol(struct phy_device *phydev, struct ethtool_wolinfo *wol);
  509. int __init mdio_bus_init(void);
  510. void mdio_bus_exit(void);
  511. extern struct bus_type mdio_bus_type;
  512. #endif /* __PHY_H */