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.

142 lines
3.6 KiB

  1. vers(__file__,
  2. {-$OpenBSD: MAKEDEV.md,v 1.14 2004/04/11 18:05:23 millert Exp $-},
  3. etc.MACHINE)dnl
  4. dnl
  5. dnl Copyright (c) 2001-2004 Todd T. Fries <todd@OpenBSD.org>
  6. dnl
  7. dnl Permission to use, copy, modify, and distribute this software for any
  8. dnl purpose with or without fee is hereby granted, provided that the above
  9. dnl copyright notice and this permission notice appear in all copies.
  10. dnl
  11. dnl THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
  12. dnl WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
  13. dnl MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
  14. dnl ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
  15. dnl WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
  16. dnl ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
  17. dnl OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  18. dnl
  19. dnl
  20. dnl *** mvme88k-specific devices
  21. dnl
  22. __devitem(dart, ttya-b, MVME188 serial ports)dnl
  23. _mkdev(dart, {-tty[a-z]-}, {-u=${i#tty*}
  24. case $u in
  25. a) n=0 ;;
  26. b) n=1 ;;
  27. *) echo unknown tty device $i ;;
  28. esac
  29. case $u in
  30. a|b|c|d)
  31. M tty$u c major_dart_c $n 660 dialer uucp
  32. M cua$u c major_dart_c Add($n, 128) 660 dialer uucp
  33. ;;
  34. esac-})dnl
  35. __devitem(cl, tty0*, MVME1x7 CL-CD2400 serial ports)dnl
  36. _mkdev(cl, {-tty0*-}, {-u=${i#tty0*}
  37. case $u in
  38. 0|1|2|3|4|5|6|7)
  39. M tty0$u c major_cl_c $u 660 dialer uucp
  40. M cua0$u c major_cl_c Add($u, 128) 660 dialer uucp
  41. ;;
  42. *) echo unknown tty device $i ;;
  43. esac-})dnl
  44. __devitem(vx, ttyv*, MVME332XT serial ports)dnl
  45. _mkdev(vx, {-ttyv*-}, {-u=${i#ttyv*}
  46. case $u in
  47. 0|1|2|3|4|5|6|7)
  48. M ttyv$u c major_vx_c $u 660 dialer uucp
  49. M cuav$u c major_vx_c Add($u, 128) 660 dialer uucp
  50. ;;
  51. *) echo unknown tty device $i ;;
  52. esac-})dnl
  53. __devitem(sram, sram0, On-board static memory)dnl
  54. _mkdev(sram, sram0, {-M sram0 c major_sram_c 0 640 kmem-})dnl
  55. __devitem(nvram, nvram0, On-board non-volatile memory)dnl
  56. _mkdev(nvram, nvram0, {-M nvram0 c major_nvram_c 0 640 kmem-})dnl
  57. __devitem(vmes, vmes0, VMEbus D16 space)dnl
  58. _mkdev(vmes, vmes0, {-M vmes0 c major_vmes_c 0 640 kmem-})dnl
  59. __devitem(vmel, vmel0, VMEbus D32 space)dnl
  60. _mkdev(vmel, vmel0, {-M vmel0 c major_vmel_c 0 640 kmem-})dnl
  61. dnl
  62. dnl *** MAKEDEV itself
  63. dnl
  64. _TITLE(make)
  65. dnl
  66. dnl all)
  67. dnl
  68. target(all, sram, 0)dnl
  69. target(all, nvram, 0)dnl
  70. target(all, vmes, 0)dnl
  71. target(all, vmel, 0)dnl
  72. dnl
  73. target(all, ses, 0)dnl
  74. target(all, ch, 0)dnl
  75. target(all, ss, 0)dnl
  76. target(all, xfs, 0)dnl
  77. target(all, pty, 0)dnl
  78. target(all, bpf, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9)dnl
  79. target(all, tun, 0, 1, 2, 3)dnl
  80. target(all, rd, 0)dnl
  81. target(all, cd, 0, 1)dnl
  82. target(all, sd, 0, 1, 2, 3, 4)dnl
  83. target(all, uk, 0)dnl
  84. target(all, vnd, 0, 1, 2, 3)dnl
  85. target(all, ccd, 0, 1, 2, 3)dnl
  86. twrget(all, dart, tty, a, b)dnl
  87. twrget(all, cl, tty0, 0, 1, 2, 3, 4, 5, 6, 7)dnl
  88. twrget(all, vx, ttyv, 0, 1, 2, 3, 4, 5, 6, 7)dnl
  89. _DEV(all)
  90. dnl
  91. dnl ramdisk)
  92. dnl
  93. target(ramd, sd, 0, 1, 2, 3, 4)dnl
  94. target(ramd, st, 0, 1)dnl
  95. target(ramd, cd, 0, 1)dnl)dnl
  96. target(ramd, rd, 0)dnl
  97. twrget(ramd, dart, tty, a)dnl
  98. twrget(ramd, cl, tty0, 0)dnl
  99. target(ramd, pty, 0)dnl
  100. _DEV(ramd)
  101. dnl
  102. _DEV(std)
  103. _DEV(local)
  104. dnl
  105. _TITLE(dis)
  106. _DEV(ccd, 17, 9)
  107. _DEV(cd, 9, 6)
  108. _DEV(rd, 18, 7)
  109. _DEV(sd, 8, 4)
  110. _DEV(vnd, 19, 8)
  111. _TITLE(tap)
  112. _DEV(ch, 44)
  113. _DEV(st, 20, 5)
  114. _TITLE(term)
  115. _DEV(cl, 13)
  116. _DEV(dart, 12)
  117. _DEV(vx, 15)
  118. _TITLE(pty)
  119. _DEV(ptm, 52)
  120. _DEV(pty, 5)
  121. _DEV(tty, 4)
  122. _TITLE(spec)
  123. _DEV(bpf, 22)
  124. _DEV(fdesc, 21)
  125. _DEV(lkm, 24)
  126. _DEV(nvram, 10)
  127. _DEV(pf, 39)
  128. _DEV(rnd, 40)
  129. _DEV(sram, 7)
  130. _DEV(ss, 42)
  131. _DEV(systrace, 50)
  132. _DEV(tun, 23)
  133. _DEV(vmel, 31)
  134. _DEV(vmes, 32)
  135. _DEV(uk, 41)
  136. _DEV(xfs, 51)
  137. dnl
  138. divert(__mddivert)dnl
  139. dnl
  140. _std(1, 2, 43, 3, 6)
  141. ;;