Home | History | Annotate | Line # | Download | only in hpc
      1 #	$NetBSD: files.hpcio,v 1.8 2024/09/01 20:11:09 andvar Exp $
      2 #	H/PC GPIO interface
      3 
      4 #  platform:
      5 #    iochip: specify GPIO chip
      6 #    evtype: event type 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 trigger 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 defflag	opt_pwctl.h	PWCTLDEBUG
     42 defparam opt_pwctl.h	PWCTLDEBUG_CONF
     43 
     44 device button
     45 attach button at hpcioif
     46 file dev/hpc/button.c		button
     47