home *** CD-ROM | disk | FTP | other *** search
/ H4CK3R 4 / hacker04 / 04_HACK04.ISO / darwin / darwinx86.iso / usr / share / nvram / Gossamer < prev    next >
Encoding:
Text File  |  2000-12-14  |  2.8 KB  |  94 lines

  1. ##
  2. # Copyright (c) 1999 Apple Computer, Inc. All rights reserved.
  3. #
  4. # @APPLE_LICENSE_HEADER_START@
  5. # "Portions Copyright (c) 1999 Apple Computer, Inc.  All Rights
  6. # Reserved.  This file contains Original Code and/or Modifications of
  7. # Original Code as defined in and that are subject to the Apple Public
  8. # Source License Version 1.0 (the 'License').  You may not use this file
  9. # except in compliance with the License.  Please obtain a copy of the
  10. # License at http://www.apple.com/publicsource and read it before using
  11. # this file.
  12. # The Original Code and all software distributed under the License are
  13. # distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  14. # EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  15. # INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  16. # FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT.  Please see the
  17. # License for the specific language governing rights and limitations
  18. # under the License."
  19. # @APPLE_LICENSE_HEADER_END@
  20. ##
  21. # Version: 1.2.0  Date: 8-17-2000
  22. use-nvramrc? true
  23. load-base 600000
  24. diag-device 
  25. nvramrc hex\
  26. : $D find-device ;\
  27. : $E device-end ;\
  28. : $L BLpatch ; : $R BRpatch ;\
  29. : $X execute ;\
  30. : $p 0 to my-self property ;\
  31. : $a " /chosen" $D $p $E ;\
  32. : &c " ata-enable" $call-parent ;\
  33. 10 buffer: km\
  34. dev kbd\
  35. get-key-map km swap move\
  36. $E\
  37. : ck 0 do swap dup 3 >> km + c@ 1 rot 7 and << and or loop ;\
  38. : bootr 0d word count encode-string " machargs" $a\
  39. 0 0 1 ck if 0 and else dup 1 = if 3d 0 1 else f 3d 0 2 then ck if 40 or then then\
  40. 40 and if bye else 1e 0 do ['] boot catch drop 1f4 ms loop then bye ;\
  41. : myboot boot-command eval ;\
  42. dev enet\
  43. ' open constant $M\
  44. : $M2 $M 710 - $X ;\
  45. : rl@ -7D9D40 $X ;\
  46. : chstat begin $M2 $M 14f8 - $X -7D6C20 $X rl@ 400 and 0= until ;\
  47. : bmstat begin $M2 $M 13F0 - $X rl@ 100 and until ;\
  48. : xmt1 get-msecs $M 720 - ! chstat $M A00 - $X bmstat chstat ;\
  49. ' xmt1 ' WRITE 10 + l!\
  50. 62 ' READ 7 - c!\
  51. : READ { _p _n ; _a } begin _p _n bead -> _a _a 2+\
  52. if _p c@ 80 and 0= else 1 then until _a ;\
  53. $E\
  54. dev /packages/obp-tftp\
  55. : $M over + ['] noop $L ;\
  56. : $O ['] open + ;\
  57. : $M1 dup 24 - -1720 $O $X 6 move 14 + ;\
  58. -5BC $O ' $M1 $L\
  59. 0 $O E8 $M EC $M F0 $M F4 $M F8 + ' true $L\
  60. $E\
  61. dev /packages/mac-parts\
  62. : $M -7E89E0 $X 8000 alloc-mem 7F00 + 4 -7E89E0 $X ;\
  63. ' load 268 - ' $M $L\
  64. ' load 160 + ' 0 $L\
  65. $E\
  66. dev ide0\
  67. : open use-ata-interface 0 &c -1 ;\
  68. : set-device-ID set-drive-select ;\
  69. : reset-atapi-bus reset-ata-bus ;\
  70. ' reset-ata-bus 2c + ' 2 $L\
  71. $E\
  72. dev ide1\
  73. : open use-ata-interface 0 &c -1 ;\
  74. : set-device-ID set-drive-select ;\
  75. : reset-atapi-bus reset-ata-bus ;\
  76. ' reset-ata-bus 2c + ' 2 $L\
  77. $E\
  78. dev scsi\
  79. : $M ['] do-cmd + ;\
  80. : $M2 5 us -5f0 $M $X ;\
  81. : $M3 -710 $M f over $X $X ;\
  82. : $M4 1 ms ;\
  83. -1AC $M ' $M2 $L\
  84. 100 $M ' $M3 $L\
  85. 120 $M ' $M4 $L\
  86. 124 $M ' 1 $L\
  87. $E\
  88. ff000000 dup dup 400 28 do-map 4+ w@ 10 and 0=\
  89. if 90b7 f3000032 w! then\
  90. unselect-dev
  91.