Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ExeBy/smexe_ro.../usr/include/linux
File: mmtimer.h
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
[0] Fix | Delete
/*
[1] Fix | Delete
* Intel Multimedia Timer device interface
[2] Fix | Delete
*
[3] Fix | Delete
* This file is subject to the terms and conditions of the GNU General Public
[4] Fix | Delete
* License. See the file "COPYING" in the main directory of this archive
[5] Fix | Delete
* for more details.
[6] Fix | Delete
*
[7] Fix | Delete
* Copyright (c) 2001-2004 Silicon Graphics, Inc. All rights reserved.
[8] Fix | Delete
*
[9] Fix | Delete
* This file should define an interface compatible with the IA-PC Multimedia
[10] Fix | Delete
* Timers Draft Specification (rev. 0.97) from Intel. Note that some
[11] Fix | Delete
* hardware may not be able to safely export its registers to userspace,
[12] Fix | Delete
* so the ioctl interface should support all necessary functionality.
[13] Fix | Delete
*
[14] Fix | Delete
* 11/01/01 - jbarnes - initial revision
[15] Fix | Delete
* 9/10/04 - Christoph Lameter - remove interrupt support
[16] Fix | Delete
* 9/17/04 - jbarnes - remove test program, move some #defines to the driver
[17] Fix | Delete
*/
[18] Fix | Delete
[19] Fix | Delete
#ifndef _LINUX_MMTIMER_H
[20] Fix | Delete
#define _LINUX_MMTIMER_H
[21] Fix | Delete
[22] Fix | Delete
/*
[23] Fix | Delete
* Breakdown of the ioctl's available. An 'optional' next to the command
[24] Fix | Delete
* indicates that supporting this command is optional, while 'required'
[25] Fix | Delete
* commands must be implemented if conformance is desired.
[26] Fix | Delete
*
[27] Fix | Delete
* MMTIMER_GETOFFSET - optional
[28] Fix | Delete
* Should return the offset (relative to the start of the page where the
[29] Fix | Delete
* registers are mapped) for the counter in question.
[30] Fix | Delete
*
[31] Fix | Delete
* MMTIMER_GETRES - required
[32] Fix | Delete
* The resolution of the clock in femto (10^-15) seconds
[33] Fix | Delete
*
[34] Fix | Delete
* MMTIMER_GETFREQ - required
[35] Fix | Delete
* Frequency of the clock in Hz
[36] Fix | Delete
*
[37] Fix | Delete
* MMTIMER_GETBITS - required
[38] Fix | Delete
* Number of bits in the clock's counter
[39] Fix | Delete
*
[40] Fix | Delete
* MMTIMER_MMAPAVAIL - required
[41] Fix | Delete
* Returns nonzero if the registers can be mmap'd into userspace, 0 otherwise
[42] Fix | Delete
*
[43] Fix | Delete
* MMTIMER_GETCOUNTER - required
[44] Fix | Delete
* Gets the current value in the counter
[45] Fix | Delete
*/
[46] Fix | Delete
#define MMTIMER_IOCTL_BASE 'm'
[47] Fix | Delete
[48] Fix | Delete
#define MMTIMER_GETOFFSET _IO(MMTIMER_IOCTL_BASE, 0)
[49] Fix | Delete
#define MMTIMER_GETRES _IOR(MMTIMER_IOCTL_BASE, 1, unsigned long)
[50] Fix | Delete
#define MMTIMER_GETFREQ _IOR(MMTIMER_IOCTL_BASE, 2, unsigned long)
[51] Fix | Delete
#define MMTIMER_GETBITS _IO(MMTIMER_IOCTL_BASE, 4)
[52] Fix | Delete
#define MMTIMER_MMAPAVAIL _IO(MMTIMER_IOCTL_BASE, 6)
[53] Fix | Delete
#define MMTIMER_GETCOUNTER _IOR(MMTIMER_IOCTL_BASE, 9, unsigned long)
[54] Fix | Delete
[55] Fix | Delete
#endif /* _LINUX_MMTIMER_H */
[56] Fix | Delete
[57] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function