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
10 \ * IBM Corporation - initial implementation
11 \ ****************************************************************************/
13 s" network [ " type my-space pci-class-name type s" ]" type
15 my-space pci-device-generic-setup
16 my-space pci-alias-net
18 s" network" device-type
22 INSTANCE VARIABLE obp-tftp-package
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
31 obp-tftp-package @ close-package
32 close ; \ disables PCI mem, io and Bus master
34 : load ( addr -- len )
35 s" load" obp-tftp-package @ $call-method ;
37 : ping ( -- ) s" ping" obp-tftp-package @ $call-method ;