1 \ *****************************************************************************
2 \ * Copyright (c) 2013 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 \ Handle bcm57xx device
15 s" network" device-type
17 my-space pci-alias-net
19 VARIABLE obp-tftp-package
27 bcm57xx-open dup not IF ." bcm57xx-open failed" EXIT THEN
28 drop dup TO bcm57xx-priv
29 6 encode-bytes s" local-mac-address" property
37 my-args s" obp-tftp" $open-package obp-tftp-package !
38 open-count 1 + to open-count
44 open-count 1 - dup to open-count
46 bcm57xx-priv bcm57xx-close
50 s" close" obp-tftp-package @ $call-method
53 : read ( buf len -- actual )
61 : write ( buf len -- actual )
69 : load ( addr -- len )
70 s" load" obp-tftp-package @ $call-method
74 s" ping" obp-tftp-package @ $call-method