drivers: pci: pcie_dw_common: add upper-limit to iATU
[platform/kernel/u-boot.git] / include / timer.h
index aa9d870..d33a26e 100644 (file)
@@ -6,6 +6,8 @@
 #ifndef _TIMER_H_
 #define _TIMER_H_
 
+#define timer_get_ops(dev)     ((struct timer_ops *)(dev)->driver->ops)
+
 /**
  * dm_timer_init() - initialize a timer for time keeping. On success
  * initializes gd->timer so that lib/timer can use it for future
@@ -67,11 +69,14 @@ struct timer_ops {
         *
         * @dev: The timer device
         *
-        * @count: pointer that returns the current 64-bit timer count
+        * This function may be called at any time after the driver is probed.
+        * All necessary initialization must be completed by the time probe()
+        * returns. The count returned by this functions should be monotonic.
+        * This function must succeed.
         *
-        * Return: 0 if OK, -ve on error
+        * Return: The current 64-bit timer count
         */
-       int (*get_count)(struct udevice *dev, u64 *count);
+       u64 (*get_count)(struct udevice *dev);
 };
 
 /**