diff options
author | Nikunj A Dadhania <nikunj@linux.vnet.ibm.com> | 2013-07-24 14:26:25 +0530 |
---|---|---|
committer | Nikunj A Dadhania <nikunj@linux.vnet.ibm.com> | 2013-07-24 14:46:22 +0530 |
commit | 3c7febb48f971621ac368807d6e2a2a60ab06ce4 (patch) | |
tree | 7e2da6deb5251c9d7d3614bd9187ef865a8a54fc /slof/fs/usb | |
parent | beb8512fecddd2fcc819d88b5ef5bc3d2264b867 (diff) | |
download | SLOF-3c7febb48f971621ac368807d6e2a2a60ab06ce4.zip SLOF-3c7febb48f971621ac368807d6e2a2a60ab06ce4.tar.gz SLOF-3c7febb48f971621ac368807d6e2a2a60ab06ce4.tar.bz2 |
Add new USB code
* Create usb directory
* Remove compilation of slof-usb code
* Generalize pci-class_0c.fs
* Add usb-static.fs with alias and dummy usb-scan
Signed-off-by: Nikunj A Dadhania <nikunj@linux.vnet.ibm.com>
Acked-by: Thomas Huth <thuth@linux.vnet.ibm.com>
Diffstat (limited to 'slof/fs/usb')
-rw-r--r-- | slof/fs/usb/usb-static.fs | 33 |
1 files changed, 32 insertions, 1 deletions
diff --git a/slof/fs/usb/usb-static.fs b/slof/fs/usb/usb-static.fs index 5a941e6..9d40fc0 100644 --- a/slof/fs/usb/usb-static.fs +++ b/slof/fs/usb/usb-static.fs @@ -9,5 +9,36 @@ \ * Contributors: \ * IBM Corporation - initial implementation \ ****************************************************************************/ -: usb-scan + +\ register device alias +: do-alias-setting ( num name-str name-len ) + rot $cathex strdup \ create alias name + get-node node>path \ get path string + set-alias \ and set the alias +; + +0 VALUE ohci-alias-num +0 VALUE ehci-alias-num +0 VALUE xhci-alias-num + +\ create a new ohci device alias for the current node +: set-ohci-alias ( -- ) + ohci-alias-num dup 1+ TO ohci-alias-num ( num ) + s" ohci" do-alias-setting +; + +\ create a new ehci device alias for the current node +: set-ehci-alias ( -- ) + ehci-alias-num dup 1+ TO ehci-alias-num ( num ) + s" ehci" do-alias-setting +; + +\ create a new xhci device alias for the current node +: set-xhci-alias ( -- ) + xhci-alias-num dup 1+ TO xhci-alias-num ( num ) + s" xhci" do-alias-setting +; + +: usb-scan ( -- ) + ." Scanning USB " cr ; |