|
|
1.1 ! root 1: \ ***************************************************************************** ! 2: \ * Copyright (c) 2004, 2008 IBM Corporation ! 3: \ * All rights reserved. ! 4: \ * This program and the accompanying materials ! 5: \ * are made available under the terms of the BSD License ! 6: \ * which accompanies this distribution, and is available at ! 7: \ * http://www.opensource.org/licenses/bsd-license.php ! 8: \ * ! 9: \ * Contributors: ! 10: \ * IBM Corporation - initial implementation ! 11: \ ****************************************************************************/ ! 12: ! 13: s" network [ " type my-space pci-class-name type s" ]" type ! 14: ! 15: my-space pci-device-generic-setup ! 16: my-space pci-alias-net ! 17: ! 18: s" network" device-type ! 19: ! 20: cr ! 21: ! 22: INSTANCE VARIABLE obp-tftp-package ! 23: : open ( -- okay? ) ! 24: open IF \ enables PCI mem, io and Bus master and returns TRUE ! 25: my-args s" obp-tftp" $open-package obp-tftp-package ! true ! 26: ELSE ! 27: false ! 28: THEN ; ! 29: : close ( -- ) ! 30: s" close" obp-tftp-package @ $call-method ! 31: close ; \ disables PCI mem, io and Bus master ! 32: : load ( addr -- len ) ! 33: s" load" obp-tftp-package @ $call-method ; ! 34: ! 35: : ping ( -- ) s" ping" obp-tftp-package @ $call-method ;
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.