|
@@ -1731,6 +1731,18 @@ int fman_port_get_hash_result_offset(struct fman_port *port, u32 *offset)
|
|
|
}
|
|
|
EXPORT_SYMBOL(fman_port_get_hash_result_offset);
|
|
|
|
|
|
+int fman_port_get_tstamp(struct fman_port *port, const void *data, u64 *tstamp)
|
|
|
+{
|
|
|
+ if (port->buffer_offsets.time_stamp_offset == ILLEGAL_BASE)
|
|
|
+ return -EINVAL;
|
|
|
+
|
|
|
+ *tstamp = be64_to_cpu(*(__be64 *)(data +
|
|
|
+ port->buffer_offsets.time_stamp_offset));
|
|
|
+
|
|
|
+ return 0;
|
|
|
+}
|
|
|
+EXPORT_SYMBOL(fman_port_get_tstamp);
|
|
|
+
|
|
|
static int fman_port_probe(struct platform_device *of_dev)
|
|
|
{
|
|
|
struct fman_port *port;
|