1 # $NetBSD: files.hpcio,v 1.5 2005/12/11 12:21:22 christos Exp $
5 # iochip: sepecify GPIO chip
6 # evtype: event tyep 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
14 # level: level sense interrupt
18 # edge: edge trriger interrupt
23 define hpcioif { [platform = -1], [iochip = -1], [id = -1], [port = -1], [active = 1], [level = -1], [edge = -1], [initvalue = -1], [addr=-1], [size=-1] }
25 device hpcioman { [iochip = -1], [evtype = -1], [id = -1], [port = -1], [active = 1], [level = -1], [edge = -1], [initvalue = -1], [hold = -1], [connect = 0] }
27 attach hpcioman at hpcioif
28 file dev/hpc/hpcioman.c hpcioman
31 attach hpcin at hpcioman
32 file dev/hpc/hpcin.c hpcin
35 attach hpcout at hpcioman
36 file dev/hpc/hpcout.c hpcout
39 attach pwctl at hpcioif
40 file dev/hpc/pwctl.c pwctl
41 defflag opt_pwctl.h PWCTLDEBUG
42 defparam opt_pwctl.h PWCTLDEBUG_CONF
45 attach button at hpcioif
46 file dev/hpc/button.c button