ACIL FM
Dark
Refresh
Current DIR:
/usr/src/kernels/5.14.0-611.27.1.el9_7.x86_64/include/linux/iio
/
usr
src
kernels
5.14.0-611.27.1.el9_7.x86_64
include
linux
iio
Upload
Zip Selected
Delete Selected
Pilih semua
Nama
Ukuran
Permission
Aksi
accel
-
chmod
Open
Rename
Delete
adc
-
chmod
Open
Rename
Delete
afe
-
chmod
Open
Rename
Delete
common
-
chmod
Open
Rename
Delete
dac
-
chmod
Open
Rename
Delete
frequency
-
chmod
Open
Rename
Delete
gyro
-
chmod
Open
Rename
Delete
imu
-
chmod
Open
Rename
Delete
timer
-
chmod
Open
Rename
Delete
buffer-dma.h
4.58 MB
chmod
View
DL
Edit
Rename
Delete
buffer-dmaengine.h
366 B
chmod
View
DL
Edit
Rename
Delete
buffer.h
1.77 MB
chmod
View
DL
Edit
Rename
Delete
buffer_impl.h
5.57 MB
chmod
View
DL
Edit
Rename
Delete
configfs.h
259 B
chmod
View
DL
Edit
Rename
Delete
consumer.h
14.99 MB
chmod
View
DL
Edit
Rename
Delete
driver.h
1.34 MB
chmod
View
DL
Edit
Rename
Delete
events.h
2.1 MB
chmod
View
DL
Edit
Rename
Delete
hw-consumer.h
602 B
chmod
View
DL
Edit
Rename
Delete
iio-opaque.h
2.87 MB
chmod
View
DL
Edit
Rename
Delete
iio.h
25.45 MB
chmod
View
DL
Edit
Rename
Delete
kfifo_buf.h
666 B
chmod
View
DL
Edit
Rename
Delete
machine.h
1.06 MB
chmod
View
DL
Edit
Rename
Delete
sw_device.h
1.7 MB
chmod
View
DL
Edit
Rename
Delete
sw_trigger.h
1.73 MB
chmod
View
DL
Edit
Rename
Delete
sysfs.h
4.7 MB
chmod
View
DL
Edit
Rename
Delete
trigger.h
5.25 MB
chmod
View
DL
Edit
Rename
Delete
triggered_buffer.h
1.27 MB
chmod
View
DL
Edit
Rename
Delete
triggered_event.h
352 B
chmod
View
DL
Edit
Rename
Delete
trigger_consumer.h
1.42 MB
chmod
View
DL
Edit
Rename
Delete
types.h
1.65 MB
chmod
View
DL
Edit
Rename
Delete
Edit file: /usr/src/kernels/5.14.0-611.27.1.el9_7.x86_64/include/linux/iio/sysfs.h
/* SPDX-License-Identifier: GPL-2.0-only */ /* The industrial I/O core * *Copyright (c) 2008 Jonathan Cameron * * General attributes */ #ifndef _INDUSTRIAL_IO_SYSFS_H_ #define _INDUSTRIAL_IO_SYSFS_H_ struct iio_buffer; struct iio_chan_spec; /** * struct iio_dev_attr - iio specific device attribute * @dev_attr: underlying device attribute * @address: associated register address * @l: list head for maintaining list of dynamically created attrs * @c: specification for the underlying channel * @buffer: the IIO buffer to which this attribute belongs to (if any) */ struct iio_dev_attr { struct device_attribute dev_attr; u64 address; struct list_head l; struct iio_chan_spec const *c; struct iio_buffer *buffer; }; #define to_iio_dev_attr(_dev_attr) \ container_of(_dev_attr, struct iio_dev_attr, dev_attr) ssize_t iio_read_const_attr(struct device *dev, struct device_attribute *attr, char *len); /** * struct iio_const_attr - constant device specific attribute * often used for things like available modes * @string: attribute string * @dev_attr: underlying device attribute */ struct iio_const_attr { const char *string; struct device_attribute dev_attr; }; #define to_iio_const_attr(_dev_attr) \ container_of(_dev_attr, struct iio_const_attr, dev_attr) /* Some attributes will be hard coded (device dependent) and not require an address, in these cases pass a negative */ #define IIO_ATTR(_name, _mode, _show, _store, _addr) \ { .dev_attr = __ATTR(_name, _mode, _show, _store), \ .address = _addr } #define IIO_ATTR_RO(_name, _addr) \ { .dev_attr = __ATTR_RO(_name), \ .address = _addr } #define IIO_ATTR_WO(_name, _addr) \ { .dev_attr = __ATTR_WO(_name), \ .address = _addr } #define IIO_ATTR_RW(_name, _addr) \ { .dev_attr = __ATTR_RW(_name), \ .address = _addr } #define IIO_DEVICE_ATTR(_name, _mode, _show, _store, _addr) \ struct iio_dev_attr iio_dev_attr_##_name \ = IIO_ATTR(_name, _mode, _show, _store, _addr) #define IIO_DEVICE_ATTR_RO(_name, _addr) \ struct iio_dev_attr iio_dev_attr_##_name \ = IIO_ATTR_RO(_name, _addr) #define IIO_DEVICE_ATTR_WO(_name, _addr) \ struct iio_dev_attr iio_dev_attr_##_name \ = IIO_ATTR_WO(_name, _addr) #define IIO_DEVICE_ATTR_RW(_name, _addr) \ struct iio_dev_attr iio_dev_attr_##_name \ = IIO_ATTR_RW(_name, _addr) #define IIO_DEVICE_ATTR_NAMED(_vname, _name, _mode, _show, _store, _addr) \ struct iio_dev_attr iio_dev_attr_##_vname \ = IIO_ATTR(_name, _mode, _show, _store, _addr) #define IIO_CONST_ATTR(_name, _string) \ struct iio_const_attr iio_const_attr_##_name \ = { .string = _string, \ .dev_attr = __ATTR(_name, S_IRUGO, iio_read_const_attr, NULL)} #define IIO_CONST_ATTR_NAMED(_vname, _name, _string) \ struct iio_const_attr iio_const_attr_##_vname \ = { .string = _string, \ .dev_attr = __ATTR(_name, S_IRUGO, iio_read_const_attr, NULL)} /* Generic attributes of onetype or another */ /** * IIO_DEV_ATTR_SAMP_FREQ - sets any internal clock frequency * @_mode: sysfs file mode/permissions * @_show: output method for the attribute * @_store: input method for the attribute **/ #define IIO_DEV_ATTR_SAMP_FREQ(_mode, _show, _store) \ IIO_DEVICE_ATTR(sampling_frequency, _mode, _show, _store, 0) /** * IIO_DEV_ATTR_SAMP_FREQ_AVAIL - list available sampling frequencies * @_show: output method for the attribute * * May be mode dependent on some devices **/ #define IIO_DEV_ATTR_SAMP_FREQ_AVAIL(_show) \ IIO_DEVICE_ATTR(sampling_frequency_available, S_IRUGO, _show, NULL, 0) /** * IIO_CONST_ATTR_SAMP_FREQ_AVAIL - list available sampling frequencies * @_string: frequency string for the attribute * * Constant version **/ #define IIO_CONST_ATTR_SAMP_FREQ_AVAIL(_string) \ IIO_CONST_ATTR(sampling_frequency_available, _string) /** * IIO_DEV_ATTR_INT_TIME_AVAIL - list available integration times * @_show: output method for the attribute **/ #define IIO_DEV_ATTR_INT_TIME_AVAIL(_show) \ IIO_DEVICE_ATTR(integration_time_available, S_IRUGO, _show, NULL, 0) /** * IIO_CONST_ATTR_INT_TIME_AVAIL - list available integration times * @_string: frequency string for the attribute * * Constant version **/ #define IIO_CONST_ATTR_INT_TIME_AVAIL(_string) \ IIO_CONST_ATTR(integration_time_available, _string) #define IIO_DEV_ATTR_TEMP_RAW(_show) \ IIO_DEVICE_ATTR(in_temp_raw, S_IRUGO, _show, NULL, 0) #define IIO_CONST_ATTR_TEMP_OFFSET(_string) \ IIO_CONST_ATTR(in_temp_offset, _string) #define IIO_CONST_ATTR_TEMP_SCALE(_string) \ IIO_CONST_ATTR(in_temp_scale, _string) #endif /* _INDUSTRIAL_IO_SYSFS_H_ */
Simpan
Batal
Isi Zip:
Unzip
Create
Buat Folder
Buat File
Terminal / Execute
Run
Chmod Bulk
All File
All Folder
All File dan Folder
Apply