1# $NetBSD: files.hpcio,v 1.7 2021/07/24 21:31:37 andvar Exp $ 2# H/PC GPIO interface 3 4# platform: 5# iochip: sepecify GPIO chip 6# evtype: event type of config_hook 7# id: event id of config_hook 8# port: port number on GPIO 9# active: which value is 'ON', 0 or 1. 10# initvalue: initial value 11# 0: low 12# 1: high 13# default: do nothing 14# level: level sense interrupt 15# 0: low 16# 1: high 17# default: edge 18# edge: edge trriger interrupt 19# 1: positive edge 20# 2: negative edge 21# other: both 22 23define hpcioif { [platform = -1], [iochip = -1], [id = -1], [port = -1], [active = 1], [level = -1], [edge = -1], [initvalue = -1], [addr=-1], [size=-1] } 24 25device hpcioman { [iochip = -1], [evtype = -1], [id = -1], [port = -1], [active = 1], [level = -1], [edge = -1], [initvalue = -1], [hold = -1], [connect = 0] } 26 27attach hpcioman at hpcioif 28file dev/hpc/hpcioman.c hpcioman 29 30device hpcin 31attach hpcin at hpcioman 32file dev/hpc/hpcin.c hpcin 33 34device hpcout 35attach hpcout at hpcioman 36file dev/hpc/hpcout.c hpcout 37 38device pwctl 39attach pwctl at hpcioif 40file dev/hpc/pwctl.c pwctl 41defflag opt_pwctl.h PWCTLDEBUG 42defparam opt_pwctl.h PWCTLDEBUG_CONF 43 44device button 45attach button at hpcioif 46file dev/hpc/button.c button 47