files.hpcio revision 1.1 1 1.1 takemura # $NetBSD: files.hpcio,v 1.1 2001/04/30 11:42:17 takemura Exp $
2 1.1 takemura # H/PC GPIO interface
3 1.1 takemura
4 1.1 takemura # platform:
5 1.1 takemura # iochip: sepecify GPIO chip
6 1.1 takemura # evtype: event tyep 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.1 takemura # edge: edge trriger 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.1 takemura define hpcioif { [platform = -1], [iochip = -1], [id = -1], [port = -1], [active = 1], [level = -1], [edge = -1], [initvalue = -1] }
24 1.1 takemura
25 1.1 takemura device hpcioman { [iochip = -1], [evtype = -1], [id = -1], [port = -1], [active = 1], [level = -1], [edge = -1], [initvalue = -1] }
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.1 takemura
42 1.1 takemura device button
43 1.1 takemura attach button at hpcioif
44 1.1 takemura file dev/hpc/button.c button
45