NetBSD/sys/dev/hpc/files.hpcio
takemura 3d94c421cc Added new config hook type PCIINTR (handling PCI interrupt).
Added config hook APIs, config_connect, config_disconnect and
config_connected_call.
Supported PCIINTR type event in hpcio.
2002-01-13 14:00:38 +00:00

45 lines
1.1 KiB
Plaintext

# $NetBSD: files.hpcio,v 1.3 2002/01/13 14:00:38 takemura Exp $
# H/PC GPIO interface
# platform:
# iochip: sepecify GPIO chip
# evtype: event tyep of config_hook
# id: event id of config_hook
# port: port number on GPIO
# active: which value is 'ON', 0 or 1.
# initvalue: initial value
# 0: low
# 1: high
# default: do nothing
# level: level sense interrupt
# 0: low
# 1: high
# default: edge
# edge: edge trriger interrupt
# 1: positive edge
# 2: negative edge
# other: both
define hpcioif { [platform = -1], [iochip = -1], [id = -1], [port = -1], [active = 1], [level = -1], [edge = -1], [initvalue = -1], [addr=-1], [size=-1] }
device hpcioman { [iochip = -1], [evtype = -1], [id = -1], [port = -1], [active = 1], [level = -1], [edge = -1], [initvalue = -1], [hold = -1], [connect = 0] }
attach hpcioman at hpcioif
file dev/hpc/hpcioman.c hpcioman
device hpcin
attach hpcin at hpcioman
file dev/hpc/hpcin.c hpcin
device hpcout
attach hpcout at hpcioman
file dev/hpc/hpcout.c hpcout
device pwctl
attach pwctl at hpcioif
file dev/hpc/pwctl.c pwctl
device button
attach button at hpcioif
file dev/hpc/button.c button