add bmd, memory disk driver for Nereid bank memory.

This commit is contained in:
isaki 2002-12-01 09:01:07 +00:00
parent 14096cb14e
commit 0875e475a6

View File

@ -1,6 +1,6 @@
#!/bin/sh -
#
# $NetBSD: MAKEDEV,v 1.58 2002/10/21 04:15:03 lukem Exp $
# $NetBSD: MAKEDEV,v 1.59 2002/12/01 09:01:07 isaki Exp $
#
# Copyright (c) 1990 The Regents of the University of California.
# All rights reserved.
@ -64,6 +64,7 @@
# cgd* cryptographic disk driver
# raid* RAIDframe disk driver
# md* memory pseudo-disk devices
# bmd* Nereid bank memory disks
#
# Console ports:
# ttye* ite bitmapped consoles
@ -145,7 +146,7 @@ all)
makedev ccd0 ccd1 ccd2 ccd3 tun0 tun1 par0 lkm ipl
makedev cgd0 cgd1 cgd2 cgd3
makedev sram audio pow0 pow1 bell random local
makedev md0 md1 ch0 uk0 uk1 ss0
makedev md0 md1 bmd0 bmd1 ch0 uk0 uk1 ss0
makedev scsibus0 scsibus1 scsibus2 scsibus3
makedev isdns
makedev clockctl
@ -332,6 +333,17 @@ md*)
chmod 640 md${unit}? #rmd${unit}?
;;
bmd*)
unit=${i#bmd}; blk=18; chr=53
rm -f bmd${unit}? rbmd${unit}?
mknod bmd${unit}a b $blk $(($unit * 8 + 0))
mknod bmd${unit}c b $blk $(($unit * 8 + 2))
mknod rbmd${unit}a c $chr $(($unit * 8 + 0))
mknod rbmd${unit}c c $chr $(($unit * 8 + 2))
chgrp operator bmd${unit}? rbmd${unit}?
chmod 640 bmd${unit}? rbmd${unit}?
;;
ss*)
case $i in
ss*) name=ss; unit=${i#ss} chr=35;;