1 # $NetBSD: files.hpcio,v 1.3 2002/01/13 14:00:38 takemura Exp $
2 # H/PC GPIO interface
3
4 # platform:
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
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
23 define hpcioif { [platform = -1], [iochip = -1], [id = -1], [port = -1], [active = 1], [level = -1], [edge = -1], [initvalue = -1], [addr=-1], [size=-1] }
24
25 device hpcioman { [iochip = -1], [evtype = -1], [id = -1], [port = -1], [active = 1], [level = -1], [edge = -1], [initvalue = -1], [hold = -1], [connect = 0] }
26
27 attach hpcioman at hpcioif
28 file dev/hpc/hpcioman.c hpcioman
29
30 device hpcin
31 attach hpcin at hpcioman
32 file dev/hpc/hpcin.c hpcin
33
34 device hpcout
35 attach hpcout at hpcioman
36 file dev/hpc/hpcout.c hpcout
37
38 device pwctl
39 attach pwctl at hpcioif
40 file dev/hpc/pwctl.c pwctl
41
42 device button
43 attach button at hpcioif
44 file dev/hpc/button.c button
Cache object: 350515381228bc6d4c13037ece72f8fd
|