freebsd-nq/sys/dev/p2sb/p2sb.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

12 lines
319 B
C

#ifndef __P2SB_H__
#define __P2SB_H__
void p2sb_lock(device_t dev);
void p2sb_unlock(device_t dev);
uint32_t p2sb_port_read_4(device_t dev, uint8_t port, uint32_t reg);
void p2sb_port_write_4(device_t dev, uint8_t port, uint32_t reg, uint32_t val);
int p2sb_get_port(device_t dev, int unit);
#endif /* __P2SB_H__ */