Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/etc create /dev/dvb/adapterN/* devices for dtv
details: https://anonhg.NetBSD.org/src/rev/8b836a3e9093
branches: trunk
changeset: 767105:8b836a3e9093
user: jmcneill <jmcneill%NetBSD.org@localhost>
date: Sat Jul 09 14:49:28 2011 +0000
description:
create /dev/dvb/adapterN/* devices for dtv
diffstat:
etc/MAKEDEV.tmpl | 17 ++++++++++++++++-
1 files changed, 16 insertions(+), 1 deletions(-)
diffs (53 lines):
diff -r 490d576da57b -r 8b836a3e9093 etc/MAKEDEV.tmpl
--- a/etc/MAKEDEV.tmpl Sat Jul 09 14:48:12 2011 +0000
+++ b/etc/MAKEDEV.tmpl Sat Jul 09 14:49:28 2011 +0000
@@ -1,5 +1,5 @@
#!/bin/sh -
-# $NetBSD: MAKEDEV.tmpl,v 1.138 2011/02/26 18:07:16 ahoka Exp $
+# $NetBSD: MAKEDEV.tmpl,v 1.139 2011/07/09 14:49:28 jmcneill Exp $
#
# Copyright (c) 2003,2007,2008 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -235,6 +235,7 @@
# dpt* DPT/Adaptec EATA RAID management interface
# dpti* DPT/Adaptec I2O RAID management interface
# drm* Direct Rendering Manager interface
+# dtv* Digital TV interface
# fb* PMAX generic framebuffer pseudo-device
# fd file descriptors
# grf* graphics frame buffer device
@@ -745,6 +746,7 @@
makedev putter
makedev drvctl
makedev video
+ makedev dtv
makedev drm0
makedev altmem
makedev zfs
@@ -785,6 +787,10 @@
makedev video0 video1 video2 video3
;;
+dtv)
+ makedev dtv0 dtv1 dtv2 dtv3
+ ;;
+
altmem)
makedev altmem0 altmem1
;;
@@ -1378,6 +1384,15 @@
mkdev video$unit c %video_chr% $unit 666
;;
+dtv*)
+ unit=${i#dtv}
+ makedir dvb 755
+ makedir dvb/adapter$unit 755
+ mkdev dvb/adapter$unit/frontend0 c %dtv_chr% $(($unit + 0)) 666
+ mkdev dvb/adapter$unit/demux0 c %dtv_chr% $(($unit + 16)) 666
+ mkdev dvb/adapter$unit/dvr0 c %dtv_chr% $(($unit + 32)) 666
+ ;;
+
amr*)
unit=${i#amr}
mkdev amr$unit c %amr_chr% $unit
Home |
Main Index |
Thread Index |
Old Index