mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-14 10:09:48 +00:00
Added devfs nodes for other devices.. (didn't read the docs correctly)
This commit is contained in:
parent
c3b7c5b702
commit
5116eb02e2
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=10635
@ -34,7 +34,7 @@
|
||||
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
/*
|
||||
* $Id:$
|
||||
* $Id: asc.c,v 1.4 1995/09/08 18:30:33 julian Exp $
|
||||
*/
|
||||
|
||||
#include "asc.h"
|
||||
@ -473,6 +473,15 @@ ascattach(struct isa_device *isdp)
|
||||
sprintf(buf,"asc%d",unit);
|
||||
/* path name devsw minor type uid gid perm*/
|
||||
x=dev_add("/misc", buf, ascopen, unit<<6, DV_CHR, 0, 0, 0666);
|
||||
sprintf(buf,"asc%dp",unit);
|
||||
x=dev_add("/misc", buf, ascopen, ((unit<<6) + FRMT_PBM),
|
||||
DV_CHR, 0, 0, 0666);
|
||||
sprintf(buf,"asc%dd",unit);
|
||||
x=dev_add("/misc", buf, ascopen, ((unit<<6) + DBUG_MASK),
|
||||
DV_CHR, 0, 0, 0666);
|
||||
sprintf(buf,"asc%dpd",unit);
|
||||
x=dev_add("/misc", buf, ascopen, ((unit<<6) + DBUG_MASK + FRMT_PBM),
|
||||
DV_CHR, 0, 0, 0666);
|
||||
#endif /*DEVFS*/
|
||||
return 1; /* attach must not fail */
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user