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