brintos

brintos / linux-shallow public Read only

0
0
Text · 19.8 KiB · f7cb8ae Raw
535 lines · c
1/* SPDX-License-Identifier: GPL-2.0-only WITH Linux-syscall-note */2/*3 * <linux/gpio.h> - userspace ABI for the GPIO character devices4 *5 * Copyright (C) 2016 Linus Walleij6 *7 * This program is free software; you can redistribute it and/or modify it8 * under the terms of the GNU General Public License version 2 as published by9 * the Free Software Foundation.10 */11#ifndef _UAPI_GPIO_H_12#define _UAPI_GPIO_H_13 14#include <linux/const.h>15#include <linux/ioctl.h>16#include <linux/types.h>17 18/*19 * The maximum size of name and label arrays.20 *21 * Must be a multiple of 8 to ensure 32/64-bit alignment of structs.22 */23#define GPIO_MAX_NAME_SIZE 3224 25/**26 * struct gpiochip_info - Information about a certain GPIO chip27 * @name: the Linux kernel name of this GPIO chip28 * @label: a functional name for this GPIO chip, such as a product29 * number, may be empty (i.e. label[0] == '\0')30 * @lines: number of GPIO lines on this chip31 */32struct gpiochip_info {33	char name[GPIO_MAX_NAME_SIZE];34	char label[GPIO_MAX_NAME_SIZE];35	__u32 lines;36};37 38/*39 * Maximum number of requested lines.40 *41 * Must be no greater than 64, as bitmaps are restricted here to 64-bits42 * for simplicity, and a multiple of 2 to ensure 32/64-bit alignment of43 * structs.44 */45#define GPIO_V2_LINES_MAX 6446 47/*48 * The maximum number of configuration attributes associated with a line49 * request.50 */51#define GPIO_V2_LINE_NUM_ATTRS_MAX 1052 53/**54 * enum gpio_v2_line_flag - &struct gpio_v2_line_attribute.flags values55 * @GPIO_V2_LINE_FLAG_USED: line is not available for request56 * @GPIO_V2_LINE_FLAG_ACTIVE_LOW: line active state is physical low57 * @GPIO_V2_LINE_FLAG_INPUT: line is an input58 * @GPIO_V2_LINE_FLAG_OUTPUT: line is an output59 * @GPIO_V2_LINE_FLAG_EDGE_RISING: line detects rising (inactive to active)60 * edges61 * @GPIO_V2_LINE_FLAG_EDGE_FALLING: line detects falling (active to62 * inactive) edges63 * @GPIO_V2_LINE_FLAG_OPEN_DRAIN: line is an open drain output64 * @GPIO_V2_LINE_FLAG_OPEN_SOURCE: line is an open source output65 * @GPIO_V2_LINE_FLAG_BIAS_PULL_UP: line has pull-up bias enabled66 * @GPIO_V2_LINE_FLAG_BIAS_PULL_DOWN: line has pull-down bias enabled67 * @GPIO_V2_LINE_FLAG_BIAS_DISABLED: line has bias disabled68 * @GPIO_V2_LINE_FLAG_EVENT_CLOCK_REALTIME: line events contain REALTIME timestamps69 * @GPIO_V2_LINE_FLAG_EVENT_CLOCK_HTE: line events contain timestamps from70 * the hardware timestamping engine (HTE) subsystem71 */72enum gpio_v2_line_flag {73	GPIO_V2_LINE_FLAG_USED			= _BITULL(0),74	GPIO_V2_LINE_FLAG_ACTIVE_LOW		= _BITULL(1),75	GPIO_V2_LINE_FLAG_INPUT			= _BITULL(2),76	GPIO_V2_LINE_FLAG_OUTPUT		= _BITULL(3),77	GPIO_V2_LINE_FLAG_EDGE_RISING		= _BITULL(4),78	GPIO_V2_LINE_FLAG_EDGE_FALLING		= _BITULL(5),79	GPIO_V2_LINE_FLAG_OPEN_DRAIN		= _BITULL(6),80	GPIO_V2_LINE_FLAG_OPEN_SOURCE		= _BITULL(7),81	GPIO_V2_LINE_FLAG_BIAS_PULL_UP		= _BITULL(8),82	GPIO_V2_LINE_FLAG_BIAS_PULL_DOWN	= _BITULL(9),83	GPIO_V2_LINE_FLAG_BIAS_DISABLED		= _BITULL(10),84	GPIO_V2_LINE_FLAG_EVENT_CLOCK_REALTIME	= _BITULL(11),85	GPIO_V2_LINE_FLAG_EVENT_CLOCK_HTE	= _BITULL(12),86};87 88/**89 * struct gpio_v2_line_values - Values of GPIO lines90 * @bits: a bitmap containing the value of the lines, set to 1 for active91 * and 0 for inactive92 * @mask: a bitmap identifying the lines to get or set, with each bit93 * number corresponding to the index into &struct94 * gpio_v2_line_request.offsets95 */96struct gpio_v2_line_values {97	__aligned_u64 bits;98	__aligned_u64 mask;99};100 101/**102 * enum gpio_v2_line_attr_id - &struct gpio_v2_line_attribute.id values103 * identifying which field of the attribute union is in use.104 * @GPIO_V2_LINE_ATTR_ID_FLAGS: flags field is in use105 * @GPIO_V2_LINE_ATTR_ID_OUTPUT_VALUES: values field is in use106 * @GPIO_V2_LINE_ATTR_ID_DEBOUNCE: debounce_period_us field is in use107 */108enum gpio_v2_line_attr_id {109	GPIO_V2_LINE_ATTR_ID_FLAGS		= 1,110	GPIO_V2_LINE_ATTR_ID_OUTPUT_VALUES	= 2,111	GPIO_V2_LINE_ATTR_ID_DEBOUNCE		= 3,112};113 114/**115 * struct gpio_v2_line_attribute - a configurable attribute of a line116 * @id: attribute identifier with value from &enum gpio_v2_line_attr_id117 * @padding: reserved for future use and must be zero filled118 * @flags: if id is %GPIO_V2_LINE_ATTR_ID_FLAGS, the flags for the GPIO119 * line, with values from &enum gpio_v2_line_flag, such as120 * %GPIO_V2_LINE_FLAG_ACTIVE_LOW, %GPIO_V2_LINE_FLAG_OUTPUT etc, added121 * together.  This overrides the default flags contained in the &struct122 * gpio_v2_line_config for the associated line.123 * @values: if id is %GPIO_V2_LINE_ATTR_ID_OUTPUT_VALUES, a bitmap124 * containing the values to which the lines will be set, with each bit125 * number corresponding to the index into &struct126 * gpio_v2_line_request.offsets127 * @debounce_period_us: if id is %GPIO_V2_LINE_ATTR_ID_DEBOUNCE, the128 * desired debounce period, in microseconds129 */130struct gpio_v2_line_attribute {131	__u32 id;132	__u32 padding;133	union {134		__aligned_u64 flags;135		__aligned_u64 values;136		__u32 debounce_period_us;137	};138};139 140/**141 * struct gpio_v2_line_config_attribute - a configuration attribute142 * associated with one or more of the requested lines.143 * @attr: the configurable attribute144 * @mask: a bitmap identifying the lines to which the attribute applies,145 * with each bit number corresponding to the index into &struct146 * gpio_v2_line_request.offsets147 */148struct gpio_v2_line_config_attribute {149	struct gpio_v2_line_attribute attr;150	__aligned_u64 mask;151};152 153/**154 * struct gpio_v2_line_config - Configuration for GPIO lines155 * @flags: flags for the GPIO lines, with values from &enum156 * gpio_v2_line_flag, such as %GPIO_V2_LINE_FLAG_ACTIVE_LOW,157 * %GPIO_V2_LINE_FLAG_OUTPUT etc, added together.  This is the default for158 * all requested lines but may be overridden for particular lines using159 * @attrs.160 * @num_attrs: the number of attributes in @attrs161 * @padding: reserved for future use and must be zero filled162 * @attrs: the configuration attributes associated with the requested163 * lines.  Any attribute should only be associated with a particular line164 * once.  If an attribute is associated with a line multiple times then the165 * first occurrence (i.e. lowest index) has precedence.166 */167struct gpio_v2_line_config {168	__aligned_u64 flags;169	__u32 num_attrs;170	/* Pad to fill implicit padding and reserve space for future use. */171	__u32 padding[5];172	struct gpio_v2_line_config_attribute attrs[GPIO_V2_LINE_NUM_ATTRS_MAX];173};174 175/**176 * struct gpio_v2_line_request - Information about a request for GPIO lines177 * @offsets: an array of desired lines, specified by offset index for the178 * associated GPIO chip179 * @consumer: a desired consumer label for the selected GPIO lines such as180 * "my-bitbanged-relay"181 * @config: requested configuration for the lines182 * @num_lines: number of lines requested in this request, i.e. the number183 * of valid fields in the %GPIO_V2_LINES_MAX sized arrays, set to 1 to184 * request a single line185 * @event_buffer_size: a suggested minimum number of line events that the186 * kernel should buffer.  This is only relevant if edge detection is187 * enabled in the configuration. Note that this is only a suggested value188 * and the kernel may allocate a larger buffer or cap the size of the189 * buffer. If this field is zero then the buffer size defaults to a minimum190 * of @num_lines * 16.191 * @padding: reserved for future use and must be zero filled192 * @fd: after a successful %GPIO_V2_GET_LINE_IOCTL operation, contains193 * a valid anonymous file descriptor representing the request194 */195struct gpio_v2_line_request {196	__u32 offsets[GPIO_V2_LINES_MAX];197	char consumer[GPIO_MAX_NAME_SIZE];198	struct gpio_v2_line_config config;199	__u32 num_lines;200	__u32 event_buffer_size;201	/* Pad to fill implicit padding and reserve space for future use. */202	__u32 padding[5];203	__s32 fd;204};205 206/**207 * struct gpio_v2_line_info - Information about a certain GPIO line208 * @name: the name of this GPIO line, such as the output pin of the line on209 * the chip, a rail or a pin header name on a board, as specified by the210 * GPIO chip, may be empty (i.e. name[0] == '\0')211 * @consumer: a functional name for the consumer of this GPIO line as set212 * by whatever is using it, will be empty if there is no current user but213 * may also be empty if the consumer doesn't set this up214 * @offset: the local offset on this GPIO chip, fill this in when215 * requesting the line information from the kernel216 * @num_attrs: the number of attributes in @attrs217 * @flags: flags for this GPIO line, with values from &enum218 * gpio_v2_line_flag, such as %GPIO_V2_LINE_FLAG_ACTIVE_LOW,219 * %GPIO_V2_LINE_FLAG_OUTPUT etc, added together220 * @attrs: the configuration attributes associated with the line221 * @padding: reserved for future use222 */223struct gpio_v2_line_info {224	char name[GPIO_MAX_NAME_SIZE];225	char consumer[GPIO_MAX_NAME_SIZE];226	__u32 offset;227	__u32 num_attrs;228	__aligned_u64 flags;229	struct gpio_v2_line_attribute attrs[GPIO_V2_LINE_NUM_ATTRS_MAX];230	/* Space reserved for future use. */231	__u32 padding[4];232};233 234/**235 * enum gpio_v2_line_changed_type - &struct gpio_v2_line_changed.event_type236 * values237 * @GPIO_V2_LINE_CHANGED_REQUESTED: line has been requested238 * @GPIO_V2_LINE_CHANGED_RELEASED: line has been released239 * @GPIO_V2_LINE_CHANGED_CONFIG: line has been reconfigured240 */241enum gpio_v2_line_changed_type {242	GPIO_V2_LINE_CHANGED_REQUESTED	= 1,243	GPIO_V2_LINE_CHANGED_RELEASED	= 2,244	GPIO_V2_LINE_CHANGED_CONFIG	= 3,245};246 247/**248 * struct gpio_v2_line_info_changed - Information about a change in status249 * of a GPIO line250 * @info: updated line information251 * @timestamp_ns: estimate of time of status change occurrence, in nanoseconds252 * @event_type: the type of change with a value from &enum253 * gpio_v2_line_changed_type254 * @padding: reserved for future use255 */256struct gpio_v2_line_info_changed {257	struct gpio_v2_line_info info;258	__aligned_u64 timestamp_ns;259	__u32 event_type;260	/* Pad struct to 64-bit boundary and reserve space for future use. */261	__u32 padding[5];262};263 264/**265 * enum gpio_v2_line_event_id - &struct gpio_v2_line_event.id values266 * @GPIO_V2_LINE_EVENT_RISING_EDGE: event triggered by a rising edge267 * @GPIO_V2_LINE_EVENT_FALLING_EDGE: event triggered by a falling edge268 */269enum gpio_v2_line_event_id {270	GPIO_V2_LINE_EVENT_RISING_EDGE	= 1,271	GPIO_V2_LINE_EVENT_FALLING_EDGE	= 2,272};273 274/**275 * struct gpio_v2_line_event - The actual event being pushed to userspace276 * @timestamp_ns: best estimate of time of event occurrence, in nanoseconds277 * @id: event identifier with value from &enum gpio_v2_line_event_id278 * @offset: the offset of the line that triggered the event279 * @seqno: the sequence number for this event in the sequence of events for280 * all the lines in this line request281 * @line_seqno: the sequence number for this event in the sequence of282 * events on this particular line283 * @padding: reserved for future use284 *285 * By default the @timestamp_ns is read from %CLOCK_MONOTONIC and is286 * intended to allow the accurate measurement of the time between events.287 * It does not provide the wall-clock time.288 *289 * If the %GPIO_V2_LINE_FLAG_EVENT_CLOCK_REALTIME flag is set then the290 * @timestamp_ns is read from %CLOCK_REALTIME.291 *292 * If the %GPIO_V2_LINE_FLAG_EVENT_CLOCK_HTE flag is set then the293 * @timestamp_ns is provided by the hardware timestamping engine (HTE)294 * subsystem.295 */296struct gpio_v2_line_event {297	__aligned_u64 timestamp_ns;298	__u32 id;299	__u32 offset;300	__u32 seqno;301	__u32 line_seqno;302	/* Space reserved for future use. */303	__u32 padding[6];304};305 306/*307 * ABI v1308 *309 * This version of the ABI is deprecated.310 * Use the latest version of the ABI, defined above, instead.311 */312 313/* Informational flags */314#define GPIOLINE_FLAG_KERNEL		(1UL << 0) /* Line used by the kernel */315#define GPIOLINE_FLAG_IS_OUT		(1UL << 1)316#define GPIOLINE_FLAG_ACTIVE_LOW	(1UL << 2)317#define GPIOLINE_FLAG_OPEN_DRAIN	(1UL << 3)318#define GPIOLINE_FLAG_OPEN_SOURCE	(1UL << 4)319#define GPIOLINE_FLAG_BIAS_PULL_UP	(1UL << 5)320#define GPIOLINE_FLAG_BIAS_PULL_DOWN	(1UL << 6)321#define GPIOLINE_FLAG_BIAS_DISABLE	(1UL << 7)322 323/**324 * struct gpioline_info - Information about a certain GPIO line325 * @line_offset: the local offset on this GPIO device, fill this in when326 * requesting the line information from the kernel327 * @flags: various flags for this line328 * @name: the name of this GPIO line, such as the output pin of the line on the329 * chip, a rail or a pin header name on a board, as specified by the gpio330 * chip, may be empty (i.e. name[0] == '\0')331 * @consumer: a functional name for the consumer of this GPIO line as set by332 * whatever is using it, will be empty if there is no current user but may333 * also be empty if the consumer doesn't set this up334 *335 * Note: This struct is part of ABI v1 and is deprecated.336 * Use ABI v2 and &struct gpio_v2_line_info instead.337 */338struct gpioline_info {339	__u32 line_offset;340	__u32 flags;341	char name[GPIO_MAX_NAME_SIZE];342	char consumer[GPIO_MAX_NAME_SIZE];343};344 345/* Maximum number of requested handles */346#define GPIOHANDLES_MAX 64347 348/* Possible line status change events */349enum {350	GPIOLINE_CHANGED_REQUESTED = 1,351	GPIOLINE_CHANGED_RELEASED,352	GPIOLINE_CHANGED_CONFIG,353};354 355/**356 * struct gpioline_info_changed - Information about a change in status357 * of a GPIO line358 * @info: updated line information359 * @timestamp: estimate of time of status change occurrence, in nanoseconds360 * @event_type: one of %GPIOLINE_CHANGED_REQUESTED,361 * %GPIOLINE_CHANGED_RELEASED and %GPIOLINE_CHANGED_CONFIG362 * @padding: reserved for future use363 *364 * The &struct gpioline_info embedded here has 32-bit alignment on its own,365 * but it works fine with 64-bit alignment too. With its 72 byte size, we can366 * guarantee there are no implicit holes between it and subsequent members.367 * The 20-byte padding at the end makes sure we don't add any implicit padding368 * at the end of the structure on 64-bit architectures.369 *370 * Note: This struct is part of ABI v1 and is deprecated.371 * Use ABI v2 and &struct gpio_v2_line_info_changed instead.372 */373struct gpioline_info_changed {374	struct gpioline_info info;375	__u64 timestamp;376	__u32 event_type;377	__u32 padding[5]; /* for future use */378};379 380/* Linerequest flags */381#define GPIOHANDLE_REQUEST_INPUT	(1UL << 0)382#define GPIOHANDLE_REQUEST_OUTPUT	(1UL << 1)383#define GPIOHANDLE_REQUEST_ACTIVE_LOW	(1UL << 2)384#define GPIOHANDLE_REQUEST_OPEN_DRAIN	(1UL << 3)385#define GPIOHANDLE_REQUEST_OPEN_SOURCE	(1UL << 4)386#define GPIOHANDLE_REQUEST_BIAS_PULL_UP	(1UL << 5)387#define GPIOHANDLE_REQUEST_BIAS_PULL_DOWN	(1UL << 6)388#define GPIOHANDLE_REQUEST_BIAS_DISABLE	(1UL << 7)389 390/**391 * struct gpiohandle_request - Information about a GPIO handle request392 * @lineoffsets: an array of desired lines, specified by offset index for the393 * associated GPIO device394 * @flags: desired flags for the desired GPIO lines, such as395 * %GPIOHANDLE_REQUEST_OUTPUT, %GPIOHANDLE_REQUEST_ACTIVE_LOW etc, added396 * together. Note that even if multiple lines are requested, the same flags397 * must be applicable to all of them, if you want lines with individual398 * flags set, request them one by one. It is possible to select399 * a batch of input or output lines, but they must all have the same400 * characteristics, i.e. all inputs or all outputs, all active low etc401 * @default_values: if the %GPIOHANDLE_REQUEST_OUTPUT is set for a requested402 * line, this specifies the default output value, should be 0 (inactive) or403 * 1 (active).  Anything other than 0 or 1 will be interpreted as active.404 * @consumer_label: a desired consumer label for the selected GPIO line(s)405 * such as "my-bitbanged-relay"406 * @lines: number of lines requested in this request, i.e. the number of407 * valid fields in the above arrays, set to 1 to request a single line408 * @fd: after a successful %GPIO_GET_LINEHANDLE_IOCTL operation, contains409 * a valid anonymous file descriptor representing the request410 *411 * Note: This struct is part of ABI v1 and is deprecated.412 * Use ABI v2 and &struct gpio_v2_line_request instead.413 */414struct gpiohandle_request {415	__u32 lineoffsets[GPIOHANDLES_MAX];416	__u32 flags;417	__u8 default_values[GPIOHANDLES_MAX];418	char consumer_label[GPIO_MAX_NAME_SIZE];419	__u32 lines;420	int fd;421};422 423/**424 * struct gpiohandle_config - Configuration for a GPIO handle request425 * @flags: updated flags for the requested GPIO lines, such as426 * %GPIOHANDLE_REQUEST_OUTPUT, %GPIOHANDLE_REQUEST_ACTIVE_LOW etc, added427 * together428 * @default_values: if the %GPIOHANDLE_REQUEST_OUTPUT is set in flags,429 * this specifies the default output value, should be 0 (inactive) or430 * 1 (active).  Anything other than 0 or 1 will be interpreted as active.431 * @padding: reserved for future use and should be zero filled432 *433 * Note: This struct is part of ABI v1 and is deprecated.434 * Use ABI v2 and &struct gpio_v2_line_config instead.435 */436struct gpiohandle_config {437	__u32 flags;438	__u8 default_values[GPIOHANDLES_MAX];439	__u32 padding[4]; /* padding for future use */440};441 442/**443 * struct gpiohandle_data - Information of values on a GPIO handle444 * @values: when getting the state of lines this contains the current445 * state of a line, when setting the state of lines these should contain446 * the desired target state.  States are 0 (inactive) or 1 (active).447 * When setting, anything other than 0 or 1 will be interpreted as active.448 *449 * Note: This struct is part of ABI v1 and is deprecated.450 * Use ABI v2 and &struct gpio_v2_line_values instead.451 */452struct gpiohandle_data {453	__u8 values[GPIOHANDLES_MAX];454};455 456/* Eventrequest flags */457#define GPIOEVENT_REQUEST_RISING_EDGE	(1UL << 0)458#define GPIOEVENT_REQUEST_FALLING_EDGE	(1UL << 1)459#define GPIOEVENT_REQUEST_BOTH_EDGES	((1UL << 0) | (1UL << 1))460 461/**462 * struct gpioevent_request - Information about a GPIO event request463 * @lineoffset: the desired line to subscribe to events from, specified by464 * offset index for the associated GPIO device465 * @handleflags: desired handle flags for the desired GPIO line, such as466 * %GPIOHANDLE_REQUEST_ACTIVE_LOW or %GPIOHANDLE_REQUEST_OPEN_DRAIN467 * @eventflags: desired flags for the desired GPIO event line, such as468 * %GPIOEVENT_REQUEST_RISING_EDGE or %GPIOEVENT_REQUEST_FALLING_EDGE469 * @consumer_label: a desired consumer label for the selected GPIO line(s)470 * such as "my-listener"471 * @fd: after a successful %GPIO_GET_LINEEVENT_IOCTL operation, contains a472 * valid anonymous file descriptor representing the request473 *474 * Note: This struct is part of ABI v1 and is deprecated.475 * Use ABI v2 and &struct gpio_v2_line_request instead.476 */477struct gpioevent_request {478	__u32 lineoffset;479	__u32 handleflags;480	__u32 eventflags;481	char consumer_label[GPIO_MAX_NAME_SIZE];482	int fd;483};484 485/*486 * GPIO event types487 */488#define GPIOEVENT_EVENT_RISING_EDGE 0x01489#define GPIOEVENT_EVENT_FALLING_EDGE 0x02490 491/**492 * struct gpioevent_data - The actual event being pushed to userspace493 * @timestamp: best estimate of time of event occurrence, in nanoseconds494 * @id: event identifier, one of %GPIOEVENT_EVENT_RISING_EDGE or495 *  %GPIOEVENT_EVENT_FALLING_EDGE496 *497 * Note: This struct is part of ABI v1 and is deprecated.498 * Use ABI v2 and &struct gpio_v2_line_event instead.499 */500struct gpioevent_data {501	__u64 timestamp;502	__u32 id;503};504 505/*506 * v1 and v2 ioctl()s507 */508#define GPIO_GET_CHIPINFO_IOCTL _IOR(0xB4, 0x01, struct gpiochip_info)509#define GPIO_GET_LINEINFO_UNWATCH_IOCTL _IOWR(0xB4, 0x0C, __u32)510 511/*512 * v2 ioctl()s513 */514#define GPIO_V2_GET_LINEINFO_IOCTL _IOWR(0xB4, 0x05, struct gpio_v2_line_info)515#define GPIO_V2_GET_LINEINFO_WATCH_IOCTL _IOWR(0xB4, 0x06, struct gpio_v2_line_info)516#define GPIO_V2_GET_LINE_IOCTL _IOWR(0xB4, 0x07, struct gpio_v2_line_request)517#define GPIO_V2_LINE_SET_CONFIG_IOCTL _IOWR(0xB4, 0x0D, struct gpio_v2_line_config)518#define GPIO_V2_LINE_GET_VALUES_IOCTL _IOWR(0xB4, 0x0E, struct gpio_v2_line_values)519#define GPIO_V2_LINE_SET_VALUES_IOCTL _IOWR(0xB4, 0x0F, struct gpio_v2_line_values)520 521/*522 * v1 ioctl()s523 *524 * These ioctl()s are deprecated.  Use the v2 equivalent instead.525 */526#define GPIO_GET_LINEINFO_IOCTL _IOWR(0xB4, 0x02, struct gpioline_info)527#define GPIO_GET_LINEHANDLE_IOCTL _IOWR(0xB4, 0x03, struct gpiohandle_request)528#define GPIO_GET_LINEEVENT_IOCTL _IOWR(0xB4, 0x04, struct gpioevent_request)529#define GPIOHANDLE_GET_LINE_VALUES_IOCTL _IOWR(0xB4, 0x08, struct gpiohandle_data)530#define GPIOHANDLE_SET_LINE_VALUES_IOCTL _IOWR(0xB4, 0x09, struct gpiohandle_data)531#define GPIOHANDLE_SET_CONFIG_IOCTL _IOWR(0xB4, 0x0A, struct gpiohandle_config)532#define GPIO_GET_LINEINFO_WATCH_IOCTL _IOWR(0xB4, 0x0B, struct gpioline_info)533 534#endif /* _UAPI_GPIO_H_ */535