summaryrefslogtreecommitdiffstats
path: root/include/linux/stm.h
diff options
context:
space:
mode:
authorAlexander Shishkin <alexander.shishkin@linux.intel.com>2016-05-03 13:33:37 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-05-03 17:59:30 -0400
commit8e996a2874bbbed30e8dfe881453825fc6b7654e (patch)
tree3dd50be8cc4462eba2b1a87dc682258cfd986043 /include/linux/stm.h
parent6327a454a8ab0dcab24a647367d216c1b84020c6 (diff)
stm class: Support devices that override software assigned masters
Some STM devices adjust software assigned master numbers depending on the trace source and its runtime state and whatnot. This patch adds a sysfs attribute to inform the trace-side software that master numbers assigned to software sources will not match those in the STP stream, so that, for example, master/channel allocation policy can be adjusted accordingly. Signed-off-by: Alexander Shishkin <alexander.shishkin@linux.intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/stm.h')
-rw-r--r--include/linux/stm.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/stm.h b/include/linux/stm.h
index 1a79ed8e43da..8369d8a8cabd 100644
--- a/include/linux/stm.h
+++ b/include/linux/stm.h
@@ -50,6 +50,8 @@ struct stm_device;
50 * @sw_end: last STP master available to software 50 * @sw_end: last STP master available to software
51 * @sw_nchannels: number of STP channels per master 51 * @sw_nchannels: number of STP channels per master
52 * @sw_mmiosz: size of one channel's IO space, for mmap, optional 52 * @sw_mmiosz: size of one channel's IO space, for mmap, optional
53 * @hw_override: masters in the STP stream will not match the ones
54 * assigned by software, but are up to the STM hardware
53 * @packet: callback that sends an STP packet 55 * @packet: callback that sends an STP packet
54 * @mmio_addr: mmap callback, optional 56 * @mmio_addr: mmap callback, optional
55 * @link: called when a new stm_source gets linked to us, optional 57 * @link: called when a new stm_source gets linked to us, optional
@@ -85,6 +87,7 @@ struct stm_data {
85 unsigned int sw_end; 87 unsigned int sw_end;
86 unsigned int sw_nchannels; 88 unsigned int sw_nchannels;
87 unsigned int sw_mmiosz; 89 unsigned int sw_mmiosz;
90 unsigned int hw_override;
88 ssize_t (*packet)(struct stm_data *, unsigned int, 91 ssize_t (*packet)(struct stm_data *, unsigned int,
89 unsigned int, unsigned int, 92 unsigned int, unsigned int,
90 unsigned int, unsigned int, 93 unsigned int, unsigned int,