Source code pulled from OpenBSD for OpenNTPD. The place to contribute to this code is via the OpenBSD CVS tree.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

111 lines
2.5 KiB

23 years ago
  1. vers(__file__,
  2. {-$OpenBSD: MAKEDEV.md,v 1.1 2002/01/08 01:33:19 todd Exp $-},
  3. etc.MACHINE)dnl
  4. dnl
  5. dnl Copyright (c) 2001 Todd T. Fries <todd@OpenBSD.org>
  6. dnl All rights reserved.
  7. dnl
  8. dnl Redistribution and use in source and binary forms, with or without
  9. dnl modification, are permitted provided that the following conditions
  10. dnl are met:
  11. dnl 1. Redistributions of source code must retain the above copyright
  12. dnl notice, this list of conditions and the following disclaimer.
  13. dnl 2. The name of the author may not be used to endorse or promote products
  14. dnl derived from this software without specific prior written permission.
  15. dnl
  16. dnl THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
  17. dnl INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
  18. dnl AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
  19. dnl THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
  20. dnl EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
  21. dnl PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
  22. dnl OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
  23. dnl WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
  24. dnl OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
  25. dnl ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  26. dnl
  27. dnl
  28. _TITLE(make)
  29. _DEV(all)
  30. _DEV(floppy)
  31. _DEV(std)
  32. _DEV(loc)
  33. _TITLE(tap)
  34. _DEV(st,12,2)
  35. _TITLE(dis)
  36. _DEV(sd,8,8)
  37. _DEV(cd,13,3)
  38. _DEV(vnd,9,9)
  39. _DEV(ccd,27,7)
  40. _DEV(wd,36,0)
  41. _DEV(rd,28,6)
  42. _DEV(raid,43,16)
  43. _DEV(flo,37,4)
  44. _TITLE(term)
  45. _DEV(ttyB)
  46. _DEV(wscons)
  47. _DEV(wsdisp,25)
  48. _DEV(wskbd,29)
  49. _DEV(wsmux,56)
  50. _DEV(com,26)
  51. _DEV(ttyc,38)
  52. _TITLE(point)
  53. _DEV(wsmouse,30)
  54. _TITLE(pty)
  55. _DEV(tty,4)
  56. _DEV(pty,5)
  57. _TITLE(prn)
  58. _DEV(lpt,31)
  59. _DEV(lpa)
  60. _TITLE(usb)
  61. _DEV(usb,45)
  62. _DEV(uhid,46)
  63. _DEV(ulpt,47)
  64. _DEV(ugen,48)
  65. _DEV(utty,49)
  66. _TITLE(spec)
  67. _DEV(ch,14)
  68. _DEV(pf,35)
  69. _DEV(bpf,11)
  70. _DEV(altq,53)
  71. _DEV(iop,54)
  72. _DEV(pci,52)
  73. _DEV(usbs)
  74. _DEV(fdesc,10)
  75. _DEV(lkm,16)
  76. _DEV(tun,7)
  77. _DEV(mmcl)
  78. _DEV(kbd)
  79. _DEV(mouse)
  80. _DEV(rnd,34)
  81. _DEV(uk,33)
  82. _DEV(ss,32)
  83. _DEV(xfs,51)
  84. _DEV(au,24)
  85. dnl
  86. divert(7)dnl
  87. dnl
  88. raminst)
  89. _recurse std random
  90. _recurse sd0 sd1 sd2 wd0 st0
  91. _recurse cd0
  92. _recurse rd0 bpf0
  93. _recurse ttyB0 ttyB1 ttyE0 ttyE1 pty0
  94. ;;
  95. _std(1,2,39,3,6)
  96. ;;
  97. ttyB*|ttyc*)
  98. U=${i##tty?}
  99. case $i in
  100. ttyB*) type=B major=15 minor=Mult($U,2);;
  101. ttyc*) type=c major=38 minor=$U;;
  102. esac
  103. M tty$type$U c $major $minor 660 dialer uucp
  104. M cua$type$U c $major Add($minor,128) 660 dialer uucp
  105. ;;
  106. mmclock)
  107. M mmclock c 28 0 444
  108. ;;