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/devices | |
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/devices')
-rw-r--r-- | slof/fs/devices/pci-class_0c.fs | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/slof/fs/devices/pci-class_0c.fs b/slof/fs/devices/pci-class_0c.fs index 89a9f0d..07da226 100644 --- a/slof/fs/devices/pci-class_0c.fs +++ b/slof/fs/devices/pci-class_0c.fs @@ -14,23 +14,31 @@ s" serial bus [ " type my-space pci-class-name type s" ]" type cr my-space pci-device-generic-setup - \ Handle USB OHCI controllers: -: handle-usb-ohci-class ( -- ) +: handle-usb-class ( -- ) \ set Memory Write and Invalidate Enable, SERR# Enable \ (see PCI 3.0 Spec Chapter 6.2.2 device control): 4 config-w@ 110 or 4 config-w! pci-master-enable \ set PCI Bus master bit and pci-mem-enable \ memory space enable for USB scan - \ Create an alias for this controller: - set-ohci-alias ; \ Check PCI sub-class and interface type of Serial Bus Controller \ to include the appropriate driver: : handle-sbc-subclass ( -- ) - my-space pci-class@ ffff and CASE \ get PCI sub-class and interface - 0310 OF handle-usb-ohci-class ENDOF \ USB OHCI controller + my-space pci-class@ ffff and CASE \ get PCI sub-class and interface + 0310 OF \ OHCI controller + handle-usb-class + set-ohci-alias + ENDOF + 0320 OF \ EHCI controller + handle-usb-class + set-ehci-alias + ENDOF + 0330 OF \ XHCI controller + handle-usb-class + set-xhci-alias + ENDOF ENDCASE ; |