1 \ *****************************************************************************
2 \ * Copyright (c) 2011 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 ." Populating " pwd cr
15 " network" device-type
17 INSTANCE VARIABLE obp-tftp-package
23 my-unit 1 rtas-set-tce-bypass
24 s" local-mac-address" get-node get-property not
25 s" reg" get-node get-property not 3 pick and IF
27 libveth-open dup not IF ." libveth-open failed" EXIT THEN
31 my-args s" obp-tftp" $open-package obp-tftp-package !
32 open-count 1 + to open-count
38 open-count 1 - dup to open-count
40 veth-priv libveth-close
41 my-unit 0 rtas-set-tce-bypass
44 s" close" obp-tftp-package @ $call-method
47 : read ( buf len -- actual )
49 veth-priv libveth-read
55 : write ( buf len -- actual )
57 veth-priv libveth-write
63 : load ( addr -- len )
64 s" load" obp-tftp-package @ $call-method
68 s" ping" obp-tftp-package @ $call-method
72 " net" get-next-alias ?dup IF
73 get-node node>path set-alias