Changeset 3038
- Timestamp:
- Jul 4, 2012 6:18:52 PM (11 months ago)
- Files:
-
- 2 edited
-
dev/pcibus.fth (modified) (2 diffs)
-
ofw/core/ofwcore.fth (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
dev/pcibus.fth
r2384 r3038 1049 1049 ; 1050 1050 1051 \ XXX In order to implement put-package-property with standard words,1052 \ we would have to:1053 \ a) Save my-self and set it to 01054 \ b) Get the package's "reg" property value with get-package-property1055 \ c) Convert the first entry therein to a string of the form "@D,F"1056 \ d) Pass that string to find-device to make that package the active package1057 \ e) Create the property1058 \ f) Restore my-self1059 1060 : put-package-property ( value$ name$ phandle -- )1061 current token@ >r context token@ >r execute ( value$ name$ )1062 (property)1063 r> context token! r> current token!1064 ;1065 1066 1051 0 value aa-adr 1067 1052 0 value aa-len … … 1069 1054 : finish-aa-property ( phandle -- ) 1070 1055 aa-len if 1071 >r aa-adr aa-len " assigned-addresses" r> put-package-property1056 >r aa-adr aa-len " assigned-addresses" r> set-package-property 1072 1057 else 1073 1058 drop -
ofw/core/ofwcore.fth
r3021 r3038 2161 2161 : get-package-property ( adr len phandle -- true | adr' len' false ) 2162 2162 (push-package) get-property (pop-package) 2163 ; 2164 2165 : set-package-property ( value$ name$ phandle -- ) 2166 current token@ >r context token@ >r (select-package) ( value$ name$ ) 2167 (property) 2168 r> context token! r> current token! 2163 2169 ; 2164 2170
Note: See TracChangeset
for help on using the changeset viewer.
