Add gpio devices to template.

This commit is contained in:
jmcneill 2005-09-27 02:44:12 +00:00
parent 777503501e
commit d94618bd3e

View File

@ -1,5 +1,5 @@
#!/bin/sh -
# $NetBSD: MAKEDEV.tmpl,v 1.47 2005/07/30 06:14:49 skrll Exp $
# $NetBSD: MAKEDEV.tmpl,v 1.48 2005/09/27 02:44:12 jmcneill Exp $
#
# Copyright (c) 2003 The NetBSD Foundation, Inc.
# All rights reserved.
@ -466,6 +466,7 @@ all)
makedev local
makedev atabus0 atabus1 atabus2 atabus3
makedev tap tap0 tap1 tap2 tap3
makedev gpio gpio0 gpio1 gpio2 gpio3
;;
init)
@ -482,6 +483,11 @@ audio)
lndev audioctl0 audioctl
;;
gpio)
makedev gpio0 gpio1 gpio2 gpio3
lndev gpio0 gpio
;;
radio)
makedev radio0 radio1
lndev radio0 radio
@ -961,6 +967,11 @@ audio*)
mkdev $audioctl c %audio_chr% $(($unit + 192)) 666
;;
gpio*)
unit=${i#gpio}
mkdev gpio$unit c %gpio_chr% $unit 644
;;
rmidi*)
unit=${i#rmidi}
mkdev rmidi$unit c %midi_chr% $unit 666