Changeset 2235


Ignore:
Timestamp:
May 31, 2011, 9:33:27 PM (4 years ago)
Author:
wmb
Message:

USB - moved some functions from an EHCI-specific file to a common file to fix compilation errors for other host controllers.

Location:
dev/usb2/hcd
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • dev/usb2/hcd/device.fth

    r2208 r2235  
    492492;
    493493
     494: probe-setup  ( -- )
     495   \ Set active-package so device nodes can be added and removed
     496   my-self ihandle>phandle push-package
     497
     498   alloc-pkt-buf
     499;
     500: probe-teardown  ( -- )
     501   free-pkt-buf
     502   pop-package
     503;
     504
    494505headers
    495506
  • dev/usb2/hcd/ehci/probe.fth

    r2233 r2235  
    4141   then                           ( port# )
    4242   dup portsc@ swap portsc!       ( )           \ Clear connection change bit
    43 ;
    44 
    45 : probe-setup  ( -- )
    46    \ Set active-package so device nodes can be added and removed
    47    my-self ihandle>phandle push-package
    48 
    49    alloc-pkt-buf
    50 ;
    51 : probe-teardown  ( -- )
    52    free-pkt-buf
    53    pop-package
    5443;
    5544
  • dev/usb2/hcd/probehub.fth

    r2233 r2235  
    194194      -1                                        ( mask )
    195195   else                                         ( propval$ )
    196       get-encoded-int                           ( mask )
     196      decode-int nip nip                        ( mask )
    197197   then                                         ( mask )
    198198   to hub-test-mask                             ( )
Note: See TracChangeset for help on using the changeset viewer.