gpio.h 771 字节
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
/*
 * <linux/gpio.h> - userspace ABI for the GPIO character devices
 *
 * Copyright (C) 2015 Linus Walleij
 *
 * This program is free software; you can redistribute it and/or modify it
 * under the terms of the GNU General Public License version 2 as published by
 * the Free Software Foundation.
 */
#ifndef _UAPI_GPIO_H_
#define _UAPI_GPIO_H_

#include <linux/ioctl.h>
#include <linux/types.h>

/**
 * struct gpiochip_info - Information about a certain GPIO chip
 * @name: the name of this GPIO chip
19
 * @label: a functional name for this GPIO chip
20 21 22 23
 * @lines: number of GPIO lines on this chip
 */
struct gpiochip_info {
	char name[32];
24
	char label[32];
25 26 27 28 29 30
	__u32 lines;
};

#define GPIO_GET_CHIPINFO_IOCTL _IOR('o', 0x01, struct gpiochip_info)

#endif /* _UAPI_GPIO_H_ */