freebsd-dev/sys/dev/p2sb/lewisburg_gpiocm.h
Arnaud Ysmal 3706af423f Add support for Lewisburg GPIO through P2SB
Obtained from:		Semihalf
Sponsored by:		Stormshield
Differential revision:	https://reviews.freebsd.org/D31269
2021-08-26 11:00:39 +02:00

13 lines
475 B
C

#ifndef __LEWISBURG_GPIOCM_H__
#define __LEWISBURG_GPIOCM_H__
int lbggpiocm_get_group_npins(device_t dev, device_t child);
char lbggpiocm_get_group_name(device_t dev, device_t child);
int lbggpiocm_pin_setflags(device_t, device_t, uint32_t, uint32_t);
int lbggpiocm_pin_get(device_t, device_t, uint32_t, uint32_t *);
int lbggpiocm_pin_set(device_t, device_t, uint32_t, uint32_t);
int lbggpiocm_pin_toggle(device_t, device_t, uint32_t);
#endif /* __LEWISBURG_GPIOCM_H__ */